mhead | R Documentation |
Show first n rows and columns of data.table/data.frame/matrix. Good for tables with many columns
mhead(data_df, n = 5)
data_df |
any data.table, data.frame, or matrix |
n |
number of rows and columns to subset by. Default is 5 |
prints to console data_df[1:n,1:n]
data_mat <- matrix(1:10000, nrow = 100)
mhead(data_mat)
mhead(data_mat, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.