Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Applying table() to each column of a matrix
#R version 3.3.2 df <- sapply(1:20, function(x1) sample(x = seq.int(x1), 200, TRUE)) colnames(df) <- paste("v", 1:20, sep="") rownames(df) <- 1:200 cat("head(df)\n") head(df) cat("\n\nhead(df)\n") table(df) cat("\n\napply(df, 2, table)") apply(df, 2, table)
run
|
edit
|
history
|
help
0
SampleDiscrFR.r
Quiz 2
TEST
Sensitivity to Escitalopram MACE count
Sample
Distribution stable under iteration
jessray
Peso hora
Grade.r
Paired t-test [Shear Strength of Girder]