Read data files intended for the original TRIM programme.
read_tdf(x, ...)# S3 method for character
read_tdf(
x,
missing = -1,
weight = FALSE,
ncovars = 0,
labels = character(0),
...
)
# S3 method for trimcommand
read_tdf(x, ...)
a filename or a trimcommand
object
(unused)
[integer]
missing value indicator.
Missing values are translated to NA
.
[logical]
indicate presence of a weight column
[logical]
The number of covariates in the file
[character]
(optional) specify labels for the covariates.
Defaults to cov<i>
(i=1,2,...,ncovars
) if none are specified.
A data.frame
.
TRIM input data is stored in a ASCII
encoded file where headerless columns
are separated by one or more spaces. Below are the columns as read_tdf
expects
them.
Variable | status | R type |
site |
requiered | integer |
time |
required | integer |
count |
required | numeric |
weight |
optional | numeric |
<covariate1> |
optional | integer |
... |
||
<covariateN> |
optional | integer |
Other modelspec:
check_observations()
,
read_tcf()
,
set_trim_verbose()
,
trimcommand()
,
trim()