Learn R Programming

pse (version 0.3.4)

get.data: Access the internal data and results data frames

Description

Instead of using the $ operator, using these accessor functions is the preferred method for accessing the data and result data frames from an LHS object, as the internal structure of the object may vary between versions of the package.

Usage

get.results(LHS, get.mean=TRUE)
get.data(LHS)
get.N(LHS)
get.ninputs(LHS)
get.noutputs(LHS)
get.repetitions(LHS)

Arguments

LHS
The LHS object
get.mean
In case of stochastic models, when several model runs are required for the same data point, the data slot of the LHS object contains all the model outputs. Use get.mean=TRUE to get the average values for each point, or

Value

  • get.data returns a data.frame consisting on the input data.

    get.results returns an array with the model results. See the vignette on multiple runs for details on the get.mean argument.

    get.N, get.ninputs, get.noutputs return a single number each, with the number of points in the hypercube, number of input factors and number of response variables.

    get.repetitions returns the number of model repetitions for each data point, created by LHS(model, factors, N, repetitions=X), or by telling several result sets to the same LHS object.