[R] missing data in R

2015-08-01 Thread asena ayça özdemir
Hello Mr. FeldesmanI am a master student in biostatistic my thesis about missing values in microarray data, but � can't create any values. � want to create %10, %20,...%90 missing values for all colums in microarray data set . Can you help me any code? thank you for your attention. Asena Ay�a

Re: [R] missing data in R

2015-08-01 Thread Jim Lemon
Hi Asena, If you already have microarray data, you can simply change some of the existing values to NA (datum Not Available). Say you have a toy 10x10 array containing absolute (initial) values: array_values-matrix(sample(0:400,100,TRUE),nrow=10) # create a 10% missing array