Learn R Programming

metRology (version 0.9-28-1)

methods.ilab: Methods for the 'ilab' class.

Description

Functions for printing and plotting interlaboratory study objects objects of class ‘ilab’.

Usage

# S3 method for ilab
print(x, …, digits = NULL, right = FALSE)

# S3 method for ilab plot(x, …)

Arguments

x

An object of class ‘ilab’

digits

Number of digits to display in budget and (if present) distribution parameter lists. Passed to format for distribution parameter list and to print.data.frame for output.

right

If TRUE, strings in uncertainty budget are right-justified. This differs from the default in print.data.frame.

Parameters passed to other functions

Value

The print and plot methods are called for their side effects.

Details

The print method uses print.data.frame to display the data after formatting the distrib and distrib.pars elements.

The plot method passes the object to kplot.

References

None, yet.

See Also

ilab-class, subset.ilab kplot.

Examples

Run this code
# NOT RUN {
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)

print(il.pb)

plot(il.pb)

# }

Run the code above in your browser using DataLab