# This file was produced by the vartors Package #
####################
# Clean the variable A.big.variable
####################
# explore the raw data
head(raw_data$A.big.variable)
str(raw_data$A.big.variable)
# Set it as a factor
clean_data$A.big.variable <- factor(
x = raw_data$A.big.variable,
levels = unique(raw_data$A.big.variable),
labels = unique(raw_data$A.big.variable),
ordered = FALSE
)
# set the label
attr(clean_data$A.big.variable, "label") <- "A big variable"
head(clean_data$A.big.variable)
str(clean_data$A.big.variable)
summary(clean_data$A.big.variable)
plot(clean_data$A.big.variable)
# number of NA
sum(is.na(clean_data$A.big.variable))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.