read.arff: Read an ARFF file

View source: R/read.R

read.arffR Documentation

Read an ARFF file

Description

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

Usage

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:

  • attributes: a named vector indicating the type of each variable

  • relation: the original @relation of the dataset

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

Examples


library(yarr)

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


fdavidcl/yarr documentation built on June 3, 2022, 7:06 a.m.