Displaying 1 result from an estimated 1 matches for "examplesumry".
2012 Jan 10
1
Converting BY to a data.frame
...yObject),ncol=length(byObject[[1]]),byrow=TRUE,dimnames=list(NULL,names(byObject[[1]]))))
}
but when I run it:
convertByToDataFrame(exampleBY)
I either: (1) loose the types of the different values in the BY, or 2) get factors instead of the values
I tried the following but it doesn't scale:
exampleSUMRY <- data.frame(a = as.vector(unlist(lapply(strsplit(names(exampleBY),split="_"),function(x) x[1]))),
b = as.vector(unlist(lapply(strsplit(names(exampleBY),split="_"),function(x) x[2]))),
name=as.vector(unlist(lapply(example...