Find the complete assignment description on the course web site.
Character classes are not always automatically set correctly, see for example the picture below. These classes should be adjusted with functions as as_factor()
or as_numeric()
.
Some variables need to be computed into new variables, such as scale totals in the example below.
When 2 data sets need to be combined, you can simply bind them rbind(df1, df2)
for new observations (rows), or cbind(df1, df2)
when new variables can be added together (same observations).
If, however, only some observations are the same, you can join the two data frames (full_join(df1, df2, by = "identification_variable")
). This could be used for the 2 data frames shown below.