Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

test_data

A data.frame with random data of various classes


Description

A data.frame intended for testing the atable function with random data and missing values in various classes.

Usage

test_data

Format

A data frame with 129 rows and 11 variables:

Split1

A factor with 2 levels, drawn uniformly.

Split2

A factor with 3 levels, drawn uniformly.

Group

A factor with 2 levels, drawn uniformly.

Group2

A factor with 3 levels, drawn uniformly.

Numeric

A sample from the standard normal distribution.

Numeric2

A sample from the normal distribution with mean 4 and sd 3.

Logical

A Logical, drawn uniformly from TRUE, FALSE and NA.

Factor

A factor with 4 level drawn with weigths 1:1:2:2.

Ordered

Class Ordered with 3 levels, drawn uniformly.

Character

Class character drawn uniformly from c('a', 'b', '').

Date

Class Date, generated by adding 2001-05-25 to a sample of the Poisson distribution with lambda 42.

6 Missing values were randomly added to each of Numeric, Numeric2, Factor, Ordered, Character and Date.


atable

Create Tables for Reporting Clinical Trials

v0.1.10
GPL-3
Authors
Armin Ströbel [aut, cre] (<https://orcid.org/0000-0002-6873-5332>), Alan Haynes [aut] (<https://orcid.org/0000-0003-1374-081X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.