massStandard: Creates an object of class '"massStandard"'.

Description Usage Arguments Value unitsENV References See Also Examples

View source: R/massStandard.R

Description

The object of class "massStandard" contains the calibration information of a mass standard that is used in routine balance verification (e g. to calculate normalized error. See normalizedError()). A version to store information of several mass standards that belong to the same kit is massStandardKit().

Usage

1
2
3
4
5
6
massStandard(nominal, convMassCor, uncert, units = c("g", "mg", "mg"),
  serial = NULL, manufacturer = NULL, class = NULL, certificate = NULL,
  traceability = NULL, Temp = NULL, p = NULL, h = NULL,
  unitsENV = c("deg.C", "hPa", "%"), expanded = TRUE, k = 2, rho = 8,
  u_rho = 0.06, unitsrho = "g/cm^3", institution = NULL, date = NULL,
  add.info = NULL, partofakit = FALSE)

Arguments

nominal

nominal mass of the mass standard.

convMassCor

conventional mass correction for the mass standard.

uncert

standard uncertainty of the conventional mass correction.

units

character vector of length 3 with the units of nominal, convMass and uncert, respectively. Default is c('g', 'mg', 'mg').

serial

serial number of the mass standard or mass standards kit.

manufacturer

character with the manufacturer of the mass standard or mass standards kit.

class

character with the claimed class of the mass standard or mass standards kit, according to OIML (2004).

certificate

character with the calibration certificate number and date of issue.

traceability

character with information regarding the traceability of the calibration.

Temp

ambient temperature at the moment of the calibration.

p

barometric pressure at the moment of the calibration.

h

relative humidity at the moment of the calibration.

unitsENV

character vector of length three with the units of p, Temp and h. Default is c('deg.C', 'hPa', '%'). See unitsENV below for more options.

expanded

if TRUE (the default), uncertainties provided in indError are assumed to be expanded uncertainties, instead of standard uncertainties.

k

coverage factor for the expanded uncertainties when expanded = TRUE.

rho

density of the mass standard.

u_rho

Uncertainty in the density of the mass standard.

unitsrho

Units of the density of the mass standard. Default is 'g/cm^3'.

institution

character with the identification of the calibration laboratory.

date

character with the date of the measurements.

add.info

named list or vector with any additional details included in the calibration certificate.

partofakit

Logical. Is the mass standard part of kit?

Value

Object of class "massStandard" with the information of a calibrated mass standard.

unitsENV

Temperature units (Temp) can be either 'deg.C' (for Celsius degrees) or 'K'. Pressure units (p) can be any of 'mmHg', 'Pa', 'hPa' or 'kPa'. Relative humidity (h) can be expressed as fraction ('frac') or as percentage ('%'). A typical arrangement for the parameter unitsENV would be c('deg.C', 'hPa', '%').

References

OIML, (2004). ORGANISATION INTERNATIONALE DE MÉTROLOGIE LÉGALE. International Document OIML R 111: Weights of classes E1, E2, F1, F2, M1, M1–2, M2, M2–3 and M3.

See Also

massStandardKit(), normalizedError()

Examples

1
2
3
4
singleMS.E2.10g <- massStandard(nominal = 10, convMassCor = 0.001,
                                uncert = 0.1,
                                units = c('g', 'mg', 'mg'))
print(singleMS.E2.10g)

masscor documentation built on Sept. 13, 2021, 9:06 a.m.