Learn R Programming

readMLData (version 0.9-7)

checkType: Compares the type of columns stored in dsList and in a data set itself.

Description

Compares types.

Usage

checkType(dsList, id, dat=NULL)

Arguments

dsList
Data frame describing the data sets as produced by prepareDSList().
id
Numeric or character of length one. Index or the identification of a data set.
dat
An optional data frame as read by dsRead(dsList, id, keepContents=TRUE).

Value

The name of the tested data set and the result of the test is printed. If errors are found, a more detailed message is printed. The output value is TRUE or FALSE invisibly according, whether the types are correct or not.

See Also

readMLData.

Examples

Run this code
  pathData <- getPath("exampleData")
  pathDescription <- getPath("exampleDescription")
  dsList <- prepareDSList(pathData, pathDescription)
  checkType(dsList, 1)

Run the code above in your browser using DataLab