switch | R Documentation |
A dataset from Field, A. P. (2023). Discovering statistics using R and RStudio (2nd ed.). London: Sage.
switch
A tibble with 120 rows and 5 variables.
Fictional data about injuries while playing video games on a console. There are reports of increases in injuries related to playing games consoles. These injuries were attributed mainly to muscle and tendon strains. A researcher hypothesized that a stretching warm-up before playing games would help lower injuries, and that athletes would be less susceptible to injuries because their regular activity makes them more flexible. She took 60 athletes and 60 non-athletes (athlete); half of them played on a Nintendo Switch and half watched others playing as a control (switch), and within these groups half did a 5-minute stretch routine before playing/watching whereas the other half did not (stretch). The outcome was a pain score out of 10 (where 0 is no pain, and 10 is severe pain) after playing for 4 hours (injury).
id: Participant's id
athlete: Whether the participant was an athlete or not
stretch: Whether the participant warmed up with stretching (or not)
switch: Whether the participant played Nintendo Switch games or watched someone else playing
injury: Injury severity (where 0 is no pain, and 10 is severe pain)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.