IData: Interval Data objects

View source: R/IData.R

IDataR Documentation

Interval Data objects

Description

IData creates IData objects from data frames of interval bounds or MidPoint/LogRange values of the interval-valued observations.

Usage

IData(Data, 
Seq = c("LbUb_VarbyVar", "MidPLogR_VarbyVar", "AllLb_AllUb", "AllMidP_AllLogR"), 
VarNames=NULL, ObsNames=row.names(Data), NbMicroUnits=integer(0))

Arguments

Data

a data frame or matrix of interval bounds or MidPoint/LogRange values.

Seq

the format of ‘Data’ data frame. Available options are:
“LbUb_VarbyVar”: lower bounds followed by upper bounds, variable by variable.
“MidPLogR_VarbyVar”: MidPoints followed by LogRanges, variable by variable.
“AllLb_AllUb”: all lower bounds followed by all upper bounds, in the same variable order.
“AllMidP_AllLogR”: all MidPoints followed all LogRanges, in the same variable order.

VarNames

An optional vector of names to be assigned to the Interval-Valued Variables.

ObsNames

An optional vector of names assigned to the individual observations.

NbMicroUnits

An integer vector with the number of micro data units by interval-valued observation (or an empty vector, if not applicable)

Details

Objects of class IData describe a data set of ‘NObs’ observations on ‘NIVar’ Interval-valued variables. This function creates an interval-data object from a data-frame with either the lower and upper bounds of the observed intervals or by their midpoints and log-ranges.

See Also

IData, AgrMcDt

Examples

ChinaT <- IData(ChinaTemp[1:8],VarNames=c("T1","T2","T3","T4"))
cat("Summary of the ChinaT IData object:\n")  ; print(summary(ChinaT))
cat("ChinaT first ant last three observations:\n")  
print(head(ChinaT,n=3))
cat("\n...\n")
print(tail(ChinaT,n=3))

MAINT.Data documentation built on April 4, 2023, 9:09 a.m.