Displaying 1 result from an estimated 1 matches for "sumbyn".
Did you mean:
sumby
2012 Apr 09
1
Summary Statistics Help
...SUMMARY STATS:
datpat <- read.csv(file="datpat.csv", header=TRUE, rownames = FALSE)
datpat <- datpat[,-1]
datpat[,c(1:3,718)]
colnames(datpat)
# -------------------
# PRELIMINARY ANALYSES
# --------------------
# Overall
summary(datpat$Patents)
# By Nation (using the Index No.)
sumbynation <- by(datpat$Patents, datpat$Nation, summary)
mode(sumbynation)
sumbynation <-
data.frame(cbind(levels(datpat[,3]),t(matrix(unlist(sumbynation),6,
length(unique(datpat[,1]))))))
dim(sumbynation)
# Adding column names
colnames(sumbynation) <- c("ID", "Min", "1...