Learn R Programming

experDesign (version 0.4.0)

check_data: Check experiment data

Description

In order to run a successful experiment a good design is needed even before measuring the data. This functions checks several heuristics for a good experiment and warns if they are not found.

Usage

check_data(pheno, omit = NULL, na.omit = FALSE)

Value

A logical value indicating if everything is alright (TRUE or not (FALSE).

Arguments

pheno

Data.frame with the variables of each sample, one row one sample.

omit

Character vector with the names of the columns to omit.

na.omit

Check the effects of missing values too.

See Also

valid_followup().

Examples

Run this code
rdata <- expand.grid(sex = c("M", "F"), class = c("lower", "median", "high"))
rdata2 <- rbind(rdata, rdata)
check_data(rdata2)
# \donttest{
#Different warnings
check_data(rdata)
check_data(rdata[-c(1, 3), ])
data(survey, package = "MASS")
check_data(survey)
# }

Run the code above in your browser using DataLab