[R] Co-occurrence

2010-04-05 Thread mailing-list
Hello together!

I was searching through and different R sites, however I did not find any 
useful site for my problem.

Is there any co-occurrence program in R which could work with text strings?

Thanks for any help or hint,
best regards,
Georg

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] as.environment Error

2010-04-30 Thread mailing-list

Dear R community,

I have a problem with assign:


  for ( iii in 1:dim(ref_df)[2] )
  {
ret <<- 
ref_df[,iii][names(single_string[ii])]*(single_count/sum(ref_df[,iii]))

assign(paste("expected_sing_ref",iii,sep=""),c(get(paste("expected_single_ref",iii,sep=""))),
 ret)
  }


The Error:
Error in as.environment(pos) : invalid argument

Has anybody an idea, how to solve this error ?

Thanks in advance,
Georg

______
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.