Displaying 2 results from an estimated 2 matches for "mywide".
Did you mean:
myside
2010 Jul 12
1
long to wide on larger data set
...0084,A,A
rs999986,cv0084,C,B
rs9999883,cv0084,E,F
rs9999853,cv0085,G,H
rs999986,cv0085,I,J
rs9999883,cv0085,K,L"),header=FALSE,sep=",")
closeAllConnections()
mysamples <- unique(testData$V2)
for (one_ind in mysamples) {
one_sample <- testData[testData$V2==one_ind,]
mywide <- reshape(one_sample, timevar = "V1", idvar =
"V2",direction = "wide")
# write.table(mywide,file
="newdata.txt",append=TRUE,row.names=FALSE,col.names=FALSE,quote=FALSE)
}
2006 Jul 23
2
constructing a dataframe from a database of newspaper articles
I am hoping for some assistance with formatting a large text file which
consists of a series of individual records. Each record includes specific
labels/field names (a sample of 1 record (one of the longest ones) is
below - at end of post. What I want to do is reformat the data, so that
each individual record becomes a row (some cells will have a lot of text).
For example, the column