Primary exercises

In the survey dataset:

  1. The variables span1 and span2 are of the same type representing the span of the writing hand and the non-writing hand respectively. We would like to analyse these values in groups. To do this we need to convert the variables span1 and span2 into variables span and size with span ranging over span1 and span2 and size over the values of span1 and span2 variables.

  2. Reproduce the following plot:

Extra exercises

  1. Produce the following count summary per gender from variables fold and clap.
# A tibble: 2 × 4
  gender  left neither right
  <chr>  <int>   <int> <int>
1 female    67      30   137
2 male      66      37   129
  1. Often reshaping of the variables are necessary to visualize the information with ggplot. From pulse dataset reproduce the boxplot shown below. Here level is the values of pulse1 and pulse2.



Copyright © 2023 Biomedical Data Sciences (BDS) | LUMC