Extract.ilab: The 'ilab' class.

Description Usage Arguments Details Value Warning Author(s) References See Also Examples

Description

Functions for manipulating interlaboratory study objects objects of class ‘ilab’.

Usage

1
2
3
4
5
## S3 method for class 'ilab'
subset(x, subset, drop=FALSE, ...)

## S3 method for class 'ilab'
x[i, j]

Arguments

x

An object of class ‘ilab’

subset

logical expression indicating elements or rows to keep: missing values are taken as false.

drop

passed on to '[' indexing operator.

...

Parameters passed to other functions

i, j

elements to extract. May be numeric or logical vectors.

Details

For the subset method, subset is an expression evaluated in the frame of ilab$data and in the parent environment if objects are not found in ilab$data. Note that since ilab$distrib and ilab$distrib.pars are not in ilab$data, any operation on these must be specified in full.

The indexing method '[' operates on both rows and columns of the object. However, only the $data element can be addressed with the j; the distrib and distrib.pars elements are unaffected by j and will always be included in the returned object.

Value

An object of class ‘ilab’ with fewer rows and (if j is present) fewer columns.

Warning

Removing the standard columns from ‘ilab’ objects using '[' may have unforeseen consequences for other functions; only the print method is likely to operate successfully.

Author(s)

S. L. R. Ellison s.ellison@lgc.co.uk

References

None, yet.

See Also

ilab-class.

Examples

1
2
3
4
5
6
7
data(Pb)
il.pb<-construct.ilab(org=Pb$lab, x=Pb$value, measurand="Pb", item="none", 
                u=Pb$u, k=Pb$k, U=Pb$U, title=c("CCQM K30", "Lead in wine"), method=Pb$method)

subset(il.pb, u < 0.03)

il.pb[1:6,]

metRology documentation built on Sept. 22, 2020, 3 a.m.