Dear all,
I wish to export a processed RMark dataset to an .inp file. I order to learn about the export.chdata function, I wanted to play around with the example in ?export.chdata. However, I received an error message:
> ?export.chdata
> data(dipper)
> dipper$numeric.sex=as.numeric(dipper$sex)-1
> dipper.processed=process.data(dipper,group="sex")
> export.chdata(dipper.processed, filename="dipper", covariates="numeric.sex")
Error in if (inherits(X[[j]], "data.frame") && ncol(xj) > 1L) X[[j]] <- as.matrix(X[[j]]) :
missing value where TRUE/FALSE needed
The example on p C-103 in the RMark manual v.17/6/09 (without the argument covariates="numeric.sex") gives the same error message.
Thanks in advance for any advice!
Best regards,
Henrik
> sessionInfo()
R version 2.9.0 (2009-04-17)
i386-pc-mingw32
locale:
LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United Kingdom.1252;LC_MONETARY=English_United Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices datasets tcltk utils methods base
other attached packages:
[1] RMark_1.9.0 svSocket_0.9-43 svMisc_0.9-46 TinnR_1.0.3 R2HTML_1.59-1 Hmisc_3.5-2
loaded via a namespace (and not attached):
[1] cluster_1.11.13 grid_2.9.0 lattice_0.17-22 tools_2.9.0
>