Function to create new collection unit objects for personal analysis. The new object will not be uploaded to the database.
set_collunit(
x = NA,
collectionunitid = NA_integer_,
notes = NA_character_,
handle = NA_character_,
colldate = as.Date(character(1)),
location = NA_character_,
waterdepth = NA_integer_,
gpslocation = st_as_sf(st_sfc()),
collunittype = NA_character_,
collectiondevice = NA_character_,
collectionunitname = NA_character_,
depositionalenvironment = NA_character_,
datasets = new("datasets"),
chronologies = new("chronologies"),
defaultchronology = NA_integer_
)
collunit
object
object to be set as collunit
collection unit identifier
notes
handle
collection date
location of the collection unit
depth at where the sample is taken
location with GPS
type of collection unit
device used to collect the sample
name of the collection unit
depositional environment
datasets that the collection unit has
chronologies taken from the collection unit
best chronology model identifier to be used with this collection unit
{
# Create a collunit
my_collunit <- set_collunit(notes = "my lake")
}
Run the code above in your browser using DataLab