Displaying 1 result from an estimated 1 matches for "2495227".
2008 Dec 03
2
Speeding up casting a dataframe from long to wide format
Hi,
I am casting a dataframe from long to wide format. The same codes that works for a smaller dataframe would take a long time (more than two hours and still running) for a longer dataframe of 2495227 rows and ten different predictors. How to make it more efficient ?
wer <- data.frame(Name=c(1:5, 4:5), Type=c(letters[1:5], letters[4:5]), Predictor=c("A", "A", "A", "A", "A", "B", "B"))
> wer
Name Type Predictor
1 1...