Learn R Programming

readMLData (version 0.9-7)

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

Description

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

Usage

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.

See Also

readMLData.

Examples

Run this code
  pathData <- getPath("exampleData")
  pathDescription <- getPath("exampleDescription")
  dsList <- prepareDSList(pathData, pathDescription)
  dat <- dsRead(dsList, "annealing")
  getType(dat)

Run the code above in your browser using DataLab