Hi,

How to add values to an array at any position.
Asking because of the following:
e.g.

y<-c(0.1,NaN,0.2,NaN) #or data frame


x<-na.omit(y)

take some columns from x and
do some computation with functions which do not allow NaN 's.

After the computing add NaN's at positions stored in
attr(x,"na.action")
of the result vector.


/E


-- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin tel: 0049-30-83875219 __("< _ http://www.molgen.mpg.de/~wolski \__/ 'v' http://r4proteomics.sourceforge.net || / \ mail: [EMAIL PROTECTED] ^^ m m [EMAIL PROTECTED]

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to