Last active
November 23, 2015 14:58
-
-
Save juba/48f9f6b828b29e0257f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
d <- data.frame(x=rnorm(10), y=runif(10)) | |
tab <- t(sapply(d, function(v) return(list(min=min(v), | |
"1st q"=quantile(v, 0.25), | |
median=median(v), | |
max=max(v))))) | |
tab <- data.frame(tab) | |
tab$name <- rownames(tab) | |
tab <- select(tab, name, everything() ) | |
tab | |
write.csv(tab, file="foo.csv", row.names = FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment