data_import {ShellChron} | R Documentation |
Function to import d18O data and process yearmarkers and calculation windows
Description
Takes the name of a file that is formatted according to the standard format and converts it to an object to be used later in the model. In doing so, the function also reads the user-provided yearmarkers in the file and uses them as a basis for the length of windows used throughout the model. This ensures that windows are not too short and by default contain at least one year of growth for modeling.
Usage
data_import(file_name)
Arguments
file_name |
Name of the file that contains sampling distance and d18O data. Note that sampling distance should be given in micrometers, because the SCEUA model underperforms when the growth rate figures are very small (<0.1 mm/day). |
Value
A list containing an object with the original data and details on the position and length of modeling windows
Examples
importlist <- data_import(file_name = system.file("extdata",
"Virtual_shell.csv", package = "ShellChron")) # Run function on attached
# dummy data
# Bad data file lacking YEARMARKER column
## Not run: importlist <- data_import(file_name = system.file("extdata",
"Bad_data.csv", package = "ShellChron"))
## End(Not run)
[Package ShellChron version 0.4.0 Index]