read.arff: Read an ARFF file

Description Usage Arguments Value Examples

View source: R/read.R

Description

Reads a dataset from an ARFF file, parsing each section and converting the data section into a data.frame.

Usage

1
read.arff(file, stringsAsFactors = FALSE)

Arguments

file

Name of the file to read the data from

stringsAsFactors

Logical: should string attributes be converted to factors? (nominal attributes are always converted to factors)

Value

A data.frame with some attributes:

Use attr.names(), attr.types() and relation() to consult attribute names, types and the name of the dataset, respectively.

Examples

1
2
3
library(yarr)

yeast <- read.arff("yeast.arff")

yarr documentation built on Aug. 10, 2019, 5:28 p.m.