View source: R/handling_dataset.R
hedo | R Documentation |
To show the first 10 lines of a table, head()
can be used. To show
the first 10 columns as well, head(x[,1:10])
can be used. The
"hedo()
" function
shortens this command to hedo(x,10)
. The number of
rows/columns shown can be changed to any value.
hedo(x, n = 10)
x |
Input data frame or matrix. |
n |
Show the first n rows and columns, defaults to 10. |
The first n rows and columns of a data frame or matrix.
m <- matrix(sample(seq(0,100),225, replace=T), 15, 150)
m
head(m)
hedo(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.