View source: R/tab_functions.R
tab_types | R Documentation |
First unattr()
is being called on df. This should result
in a dataframe of only two types: numeric or character without attributes.
These 2 types are then returned.
tab_types(df)
df |
A dataframe. |
A dataframe consisting of 2 columns: The var
iable and its
type
.
df <- data.frame(fbnr = 1:10, sex = c(2, 1, 2, 1, 1, 2, 2, 1, 2, 1), age = c("24", "23", "23", "41", "23", "39", "30", "18", "31", "48")) tab_types(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.