| et | R Documentation |
Creates a table for a variable, mimicking count() from 'dplyr'. ET stands for exploratory table or easy table.
et(data_frame, variable_name)
data_frame |
the data.frame |
variable_name |
the variable name |
a data frame
# load data
data(nhanes)
# define country
nhanes<-nhanes |> transform(
country=base_match(dmdborn4,'USA'=1,'Other'=2)
)
# examine variable, with native piping
nhanes |> et(country)
# examine variable, with dollar-sign notation
et(nhanes$country)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.