Description Usage Arguments Details Value Examples
View source: R/AllFunctions.R View source: R/data_functions.R View source: R/data_functions.R
Return the first N rows and columns of a data.frame or matrix
Return the first N rows and columns of a data.frame or matrix
1 2 3 |
data |
A data.frame, matrix or data type that has both rows and columns |
rows |
The number of rows to be returned, similar to head(). Default value is 6. |
cols |
The number of columns to be returned. Defaults to the same value as rows to maintain a square format. |
data |
A data.frame, matrix or data type that has both rows and columns |
rows |
The number of rows to be returned, similar to head(). Default value is 6. |
cols |
The number of columns to be returned. Defaults to the same value as rows to maintain a square format. |
A two dimensional version of head() that is useful for working with wide datasets. Unlike head() and tail() this is not a generic function and cannot be extended to other classes.
A two dimensional version of head() that is useful for working with wide datasets. Unlike head() and tail() this is not a generic function and cannot be extended to other classes.
An object (usually) like data but generally smaller.
An object (usually) like data but generally smaller.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.