search for: fataframe

Displaying 2 results from an estimated 2 matches for "fataframe".

Did you mean: dataframe
2012 Feb 24
1
syntaxe problem
Hello, I want to create 10 dataframe using a for loop. I don t know what to do to create 10 different dataframes whose name is parametrized with variable i. This syntaxe fails. It create a unique fataframe called dfn. Any input will help Thanks > for (i in 1:10){ + filename=paste("avail4",i,sep = "_") + dfn=read.table(filename) + } -- PhD candidate in Computer Science Address 3 avenue lamine, cité ezzahra, Sousse 4000 Tunisia tel: +216 97 246 706 (+33640302046 jusqu'au...
2009 Oct 15
1
calculating p-values by row for data frames
...log(10) P-Values",pch=20)} It takes around 3-5 minutes to generate the volcano plot this way. I will be running arrays which will look at 2.2 million sites >> this approach will then take way too long. I was wondering if there is a more elegant way to calculate the p-values for an array/fataframe/matrix in a row-by row fashion, which is similar to ?rowMeans?. I thought writing a function to get the p-value and then using apply(x,1,function) would be the best. I have the function which will give me the p-value p.value = function (x,y){ PV=as.numeric(t.test(x,y)[3]) } and I can get a resu...