search for: sorted_data

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

2005 Oct 22
0
Getting univariate information from a multivariate data set
...ing. I have a multivariate dataset, and would like to extract some simple univariate information from it grouped by treatments, etc. I am encountering two problems however Note: I am importing my data with my_data <- read.csv("/path/data.csv") 1) Scoping of unstack If I attempt sorted_data <- unstack(response, response ~ treatment, data=my_data) I get Error in unstack(response, response ~ treatment, data=my_data): Object response not found However, if I first use attatch(my_data) and drop the data statement in unstack, I'm fine. This is all well and good, but I often wor...
2008 Oct 08
0
issues with "write.table"
...frame create at each cycle of a loop; it can contain between 2000 and 3000 rows for each cycle. After each cycle the data frame is written out to a file with the "append=TRUE" option and then removed from memory. These are the couple of lines involved: > data2 <- format.data.frame(sorted_data) > write.table(data2,file="R_toscala.txt",append=TRUE,quote=FALSE,sep="\t",row.names=FALSE,col.names=FALSE) > rm(tmp,new_xyz,u0,u1,data,data0,data1,data2,data3,data4,templ0,templ1,f0,f1,frac,Xdet,Ydet,tthr,tth,tras_coef,sc,srs,sup,sdown,rs,lorentz,pola,rot,sorted_data) Yo...