[R] problems while correlating values

From: Ahamarshan jn <ashgene_at_yahoo.co.in>
Date: Mon 29 May 2006 - 05:14:37 EST


Hi,
 I am a newbie to the world of R.

I have a data converted in csv format. Few cells in some of the rows of the data are blank ( in the sense that there is no value available for the particular experiment). When i try to open the file in R. I get an warning message.

The specific warning message i get is
{Warning message:
NAs introduced by coercion }

My data more or less looks like this

{where '-' is blank spaces}

when I correlate this data using this
> round(cor(person.data,use="pairwise.complete.obs"))

correlation is done between experiments i.e. exp1, exp2, exp3 etc whereas I need correlation to be done row wise ie between fish,duck,swan,etc..

Another issue that I want to know of is, is there any way to calculate the number of column pair's fills (N) used in the correlation between data. ie for eg taking these two values fish and duck

it is in exp1 and exp3 that the values are available and thus correlation is done only for these two exp's hence we say N=2

like this between fish and swan N =4

is there any way in R which would give me this value of N between these Data used for correlation?

Also why is that an 'x' is introduced as a prefix to the variable names when i compute with R is there any way this can be removed?

Thank you
-ash#



R-help@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 Received on Mon May 29 05:20:18 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 29 May 2006 - 08:10:31 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.