[R] comparison of arrays of strings

jim holtman jholtman at gmail.com
Fri Aug 17 07:38:17 CEST 2007


Read them into 2 different vectors and then use 'intersect'.

On 8/17/07, ramakanth reddy <ramakanth_99 at yahoo.co.in> wrote:
> Hi
>
> i have two arrays of genes names,one with180000 gene names and the other with 24000 gene names,I have to compare both of them for finding common names.
>
> I have both the arrays in .csv format.i loaded the files and tried to compare them using for and if loops
>
> but I got the error Error in Ops.factor(cgh[i, 1], cgh[j, 2]) :
>        level sets of factors are different
>
> Please suggest me how to solve this problem or any other alternative procedure
>
> Thanks
> ramakanth
>
>
>
>
>      Get the freedom to save as many mails as you wish. To know how, go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>


-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list