messy_data {ascentTraining}R Documentation

Messy clinical trial data

Description

Simulated dataset for examples of reshaping data

Usage

messy_data

messyData

Format

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

Details

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).

Source

Simulated data


[Package ascentTraining version 1.0.0 Index]