Description Usage Format Details Source
Simulated dataset for examples of reshaping data
1 2 3 |
A data frame with 33 observations on the following 7 variables. This data has been designed to show reshaping/tidying of data.
Subject
A numeric vector giving the subject ID
Placebo.1
A numeric vector giving the subjects observed value on treatment Placebo at time 1
Placebo.2
A numeric vector giving the subjects observed value on treatment Placebo at time 2
Drug1.1
A numeric vector giving the subjects observed value on treatment Drug1 at time 1
Drug1.2
A numeric vector giving the subjects observed value on treatment Drug1 at time 2
Drug2.1
A numeric vector giving the subjects observed value on treatment Drug2 at time 1
Drug2.2
A numeric vector giving the subjects observed value on treatment Drug2 at time 2
This dataset has be renamed using tidyverse-style snake_case naming conventions. However the original name of the dataset has been kept to ensure backwards compatibility with the book SAMS Teach Yourself R in 24 Hours (ISBN: 978-0-672-33848-9).
Simulated data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.