Learn R Programming

npde (version 3.5)

npdeSimData: Creates a NpdeSimData object

Description

This function is used to create a NpdeSimData object containing the simulated data corresponding to an NpdeData object

Usage

npdeSimData(npde.data, name.simdata, header=TRUE, sep="", na.strings=c("NA","."), 
detect=FALSE, verbose=FALSE)

Value

an object of class NpdeSimData

Arguments

npde.data

a NpdeData object

name.simdata

name of the file containing the simulated data, or a dataframe containing it

header

boolean indicating whether the file has a header (a header is mandatory if detect is TRUE)

sep

field separator (for files on disk)

na.strings

strings to be considered as indicating NA

detect

a boolean controlling whether automatic recognition of columns in the dataset is on, defaults to FALSE if FALSE, the first 3 columns of the simulated data file will will be used as simulated id, predictor and response respectively if TRUE, the function will look for columns named respectively idsim, xsim and ysim (it will fail with an error message if these columns are not present in the simulated data)

verbose

whether to print warning messages, defaults to FALSE (set to TRUE to check how data is being handled)

Author

Emmanuelle Comets <emmanuelle.comets@bichat.inserm.fr>

See Also

NpdeData, npde, autonpde