create_input | R Documentation |
Create input for age models, based on the file structure and input files organisation needed.
create_input(data, wdir, entity = NULL, am = "bacon")
data |
List with named data frames containing the input data.
|
wdir |
Working directory, absolute or relative path. |
entity |
Entity name. |
am |
Age model name. |
If only wdir
is passed, the value of entity
will be extracted
from the last portion of wdir
. For example, if
wdir = "/path/to/a"
, then entity = "a"
and
wdir = "/path/to"
. If entity = NULL
and wdir = "/"
the function will return an error message, because the path is too short.
To use the current working directory, wdir = "./"
.
Input files for the age model.
test_data <-list(sample_depths = data.frame(id = 1:100,
depth =
seq(0, 500, length = 100)),
core = data.frame(labID = "RDG",
age = c(720, 2700, 4660),
error = c(70, 50, 110),
depth = c(83, 212, 418)))
## Not run:
ageR::create_input(test_data, getwd(), "Reading")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.