Learn R Programming

sievetest (version 1.2.3)

read.std: Data input from file

Description

Reads std data from CSV file and creates std object.

Usage

read.std(file, sep = "\t", dec = ".")

Arguments

file

file path.

sep

field separator used in the file, defaults to "\t".

dec

the character used in the file for decimal points, defaults to ".".

Value

Returns a std object.

Details

The file format allows to have more test data within one file.

# Meta data --- --- ---
D1 names D1 values DN names DN values
# Data --- --- ---
aperture retained aperture retained
A1 R1 values An Rn values

Section D1 or DN is 5 rows of meta data. Commented lines must not be removed. Multi row columns A and R corresponds to a and r arguments of std function, D corresponds to desc.

The file must have at least two columns, then it is just for 1 sample data, or it can have Nx2 columns for N samples.

Data section allows for different number of A1 and AN rows.

See Also

std, c.std, summary.std

Examples

Run this code
# NOT RUN {
# provided example file
fi <- system.file("lignite.csv",package="sievetest")
# inspect the file
file.show(fi)
# read the file
# there will be warning, because the file is prepared the way
# to show them, they are OK
a <- read.std(fi)
plot(a)
# }

Run the code above in your browser using DataLab