View source: R/get_structure.R
| get_structure | R Documentation |
This function extracts the structure and content of a data.frame, storing
the following information:
get_structure(x, columns = TRUE)
x |
a |
columns |
the names or indices of columns to compare. Defaults to |
names and order of columns
class of the columns
values of the columns, for factors and characters
A list containing:
dim: the dimensions of the dataset (rows, columns)
names: the names of the dataset
classes: the corresponding classes (if a column has several classes, only
the first one is kept)
values: the list of sorted, unique values for each categorical column
(factor or character)
Thibaut Jombart
head(iris) get_structure(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.