objects: Package Objects

objectsR Documentation

Package Objects

Description

The objects contained in the stutils package. If known, the authorship of the object is attributed.

Usage

test_data

tree_data

Ri_data

InfectionByCounty

Format

test-data: An object of class tbl_df (inherits from tbl, data.frame) with 40 rows and 12 columns and defined as follows:

Variable Definition
pid sprintf("%02i", 1:40)
Pop rep(head(LETTERS, 10), 4)
Sample factor(sample(c("small", "medium", "large"), 20))
TimePoint factor(rep(c("baseline", "6 mths", "12 mths", "24 mths"), each = 10))
a round(rnorm(40, mean = 25, sd = 3.5), 0)
b sample(0:6, 40, replace = TRUE)
seq.1234.56 rnorm(40, mean = 25, sd = 3.5)
seq.6969.42 rnorm(40, mean = 25, sd = 1.5)
x rnorm(40, mean = 25, sd = 3)
y round(runif(40, 10, 20), 0)
z round(rnrom(40, mean = 1, sd = 0.5), 3)
Response factor(sample(c("control", "disease"), 40, replace = TRUE)))

tree_data: An object of class tbl_df (inherits from tbl, data.frame) with 20 rows and 10 columns.

Ri_data: An object of class data.frame with 13 rows and 4 columns.

InfectionByCounty: An object of class tbl_df (inherits from tbl, data.frame) with 3071 rows and 11 columns.

Functions

  • test_data: A sample tibble data frame for running examples and checking functions that act on data frames. See ?tibble.

  • tree_data: Data set containing tree characteristic metric data, that has been blinded and anonymized from its original source. Used heavily in the R tutorial and for general data frame usage (e.g. package testing). The format is tibble data

  • Ri_data: Coefficient Interclass Correlation Data Example from Sokal & Rohlf (Biometry; 3rd ed.), pages 210-214.

  • InfectionByCounty: Infection data describing the infections count data of an infectious disease by geographic position. Includes the following variables:

    • CountyNo

    • CountyNo

    • CountyName

    • State

    • Fips

    • Site

    • Lat

    • Long

    • Population

    • Area

    • Density

    • Infected

Source

test_data: Stu Field

tree_data: Sala et. al. http

Ri_data: Sokal & Rohlf (Biometry; 3rd ed.), p. 210-214.

InfectionByCounty: Dylan George

References

tree_data: originally from Sala et al., but heavily modified to obscure its original source data values.

InfectionByCounty: originally from Dylan George and used for an exercise data set in the 2010 EEID R tutorial.

Examples

test_data
summary(tree_data)
purrr::map_if(tree_data, is.numeric, mean)

Ri_data

InfectionByCounty


stufield/stuRpkg documentation built on April 2, 2022, 2:05 p.m.