IData | R Documentation |
IData creates IData objects from data frames of interval bounds or MidPoint/LogRange values of the interval-valued observations.
IData(Data,
Seq = c("LbUb_VarbyVar", "MidPLogR_VarbyVar", "AllLb_AllUb", "AllMidP_AllLogR"),
VarNames=NULL, ObsNames=row.names(Data), NbMicroUnits=integer(0))
Data |
a data frame or matrix of interval bounds or MidPoint/LogRange values. |
Seq |
the format of ‘Data’ data frame. Available options are: |
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) |
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.
IData
, AgrMcDt
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.