getType: Determines the type vector for an input data set.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utils.R

Description

The type information is derived from the contents of individual columns of an input data frame.

Usage

1
getType(dat)

Arguments

dat

A data frame.

Value

A character vector of length ncol(dat) containing "n" for numerical columns, the number of different values for character or factor columns, and "o" otherwise.

Author(s)

Petr Savicky

See Also

readMLData.

Examples

1
2
3
4
5
  pathData <- getPath("exampleData")
  pathDescription <- getPath("exampleDescription")
  dsList <- prepareDSList(pathData, pathDescription)
  dat <- dsRead(dsList, "annealing")
  getType(dat)

readMLData documentation built on May 2, 2019, 7:49 a.m.