Description Usage Arguments Details Examples
Reads in Bacon output and formats it for inclusion in a download object.
1 2 3 |
x |
A folder path that contains a Bacon |
path |
The location of the |
add |
Should the results be added to an existing |
chron_name |
The name for the chronology if the Bacon file is being added to a |
as_default |
Should the chronology become the default? |
download |
The target |
sections |
If there are multiple Bacon runs in a folder, identify the file by the number of sections in the run. |
age_field |
Should the age be assigned to the |
interp |
If the depths don't match up, should we interpolate from the Bacon output? (default |
The function expects that you are in a working directory containing a "Cores" which would then contain output files from Bacon runs. The output can either be added to an existing record (for example, replacing the default age model returned by Neotoma), or it can be loaded on its own. If the depths for the loaded file do not match with the depths in the ‘download'’s 'sample.meta' then the user can use the 'interp' parameter to interpolate between depths. This method uses linear interpolation.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
# Download the record for Lake O' Pines:
lake_o_dl <- get_download(15925)
# This assumes that you have Bacon installed in a folder and have
# set it to your working directory.
write_agefile(lake_o_dl[[1]], path = ".", chronology = 1,
corename = "LAKEPINES", cal.prog = 'Bacon')
source("Bacon.R")
# These defaults just help the core run quickly, they're not
# neccesarily good parameters.
Bacon("LAKEPINES", acc.mean = 10,
thick = 50, depths.file = TRUE,
suggest = FALSE, ask = FALSE)
lake_o_dl <- read_bacon("LAKEPINES", add = TRUE,
download = download, sections = 17)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.