export.chdata(data, filename, covariates = NULL,
replace = FALSE)
export.chdata
to export models that can be
imported into the MARK interface. However note the
following: ***Warning*** Make sure that you use the .inp
created by export.chdata
with your
processed data to create the MARK .dbf file rather than
using a separate similar .inp file. It is essential that
the group structure and ordering of groups matches
between the .inp file and the exported models or you can
get erroneous results.import.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")
#
# Had sex been used in place of numeric.sex in the above command,
# MARK would have been unable to use it as a covariate
# because it is not a numeric field
Run the code above in your browser using DataLab