CheckData {morseDR}R Documentation

Checking object structure for analysis

Description

Checks if an object can be used to perform data analysis.

Usage

binaryDataCheck(data, quiet = FALSE)

continuousDataCheck(data, quiet = FALSE)

countDataCheck(data, quiet = FALSE)

Arguments

data

Any object, but usually a list or a data.frame.

quiet

Binary. Default is False. If True it returns messages of the checking function.

Value

The function returns a data.frame with message describing the error in the formatting of the data. When no error is detected the object is empty.

See Also

binaryData

countData

continuousData

Examples

data(chlordan_daphnia)
continuousDataCheck(chlordan_daphnia)


# Run the check data function
data(copper)
countDataCheck(copper)

# Now we insert an error in the data set, by setting a non-zero number of
# offspring at some time, although there is no surviving individual in the
# replicate from the previous time point.
copper[148, "Nrepro"] <- as.integer(1)
countDataCheck(copper)


[Package morseDR version 0.1.2 Index]