Displaying 1 result from an estimated 1 matches for "zcontent".
Did you mean:
content
2010 Jun 11
0
comparing reshape's
I thought I would share the following.
System: Mac Pro 2.26GHz, OSX, 8GB of memory (not a constraint), R
2.11.0, 64bit version.
Task: I have a long data set: 2.2 million long observations (factor
xid, factor yid, variable zcontent), which I want to map into a sparse
matrix of 948 columns and 16,350 rows. There are two commonly used
functions to accomplish this:
library(stats);
outcome = reshape( subset(mydataframe, select=c(yid,xid,zcontent),
timevar="yid", idvar="xid", direction="wide")...