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
Mtcars analysis
matrix
Ass2 q2
Exintegral-19-03-2021
%95 Confidence Interval
Ex-02-02-21n
Tournois Mount & Blade
AjusteLinearizado-11-01-21-pacotematriz
Ch. 4 Boxplot and Histogram Examples - Font size increased
Desktop-Sprite-image-Interval