Displaying 1 result from an estimated 1 matches for "sumbyyear".
2012 Apr 09
1
Summary Statistics Help
...on) <- c("ID", "Min", "1st Qu", "Median", "Mean", "3rd
Qu", "Max")
# Export table to LaTex
install.packages("xtable")
library(xtable)
?xtable
xtable(sumbynation)
# By Year (using the second column Year variable)
sumbyyear <- by(datpat$Patents, datpat$Year, summary)
sumbyyear <- cbind(unique(datpat[,2]),t(matrix(unlist(sumbyyear),6,
length(unique(datpat[,2])))))
# Adding column names
colnames(sumbyyear) <- c("ID", "Min", "1st Qu", "Median", "Mean", "3rd...