read.std: Data input from file

Description Usage Arguments Details Value See Also Examples

Description

Reads std data from CSV file and creates std object.

Usage

1
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 ".".

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.

Value

Returns a std object.

See Also

std, c.std, summary.std

Examples

1
2
3
4
5
6
7
8
9
# 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)

sievetest documentation built on May 2, 2019, 8:13 a.m.