Use the function levels()
or str()
to look at the structure of the variable gender
(within the BEPAS
dataset).
Which statement is correct?
gender
is a factor variable within the data frame BEPAS
. The levels are “male” (first level) and “female” (second level).gender
is a factor variable within the data frame BEPAS
. The levels are “female” (first level) and “male” (second level).gender
is a character variable within the tibble BEPAS
.gender
is a character variable within the data frame BEPAS
.(Type the number of the correct statement)