Learn R Programming

CRTspat (version 1.4.0)

readdata: Read example dataset

Description

readdata reads a file from the package library of example datasets

Usage

readdata(filename)

Value

R object corresponding to the text file

Arguments

filename

name of text file stored within the package

Details

The input file name should include the extension (either .csv or .txt). The resulting object is a data frame if the extension is .csv.

Examples

Run this code
exampleCRT <- readdata('exampleCRT.txt')

Run the code above in your browser using DataLab