Function to create new samples objects for analysis. The new object will not be uploaded to the database.

set_sample(
  x = NA,
  ages = list(),
  igsn = NA_character_,
  datum = data.frame(),
  depth = NA_integer_,
  sampleid = NA_integer_,
  thickness = NA_integer_,
  samplename = NA_character_,
  sampleanalyst = list(),
  analysisunitid = NA_integer_,
  analysisunitname = NA_character_,
  analysisunitnotes = NA_character_,
  analysisdate = as.Date(NA_character_),
  samplenotes = NA_character_
)

Arguments

x

Object to be set as a sample

ages

ages

igsn

IGSN character

datum

dataframe of datum

depth

integer representing depth

sampleid

ID for sample

thickness

thickness of core

samplename

sample's name

sampleanalyst

Analyst's contact name

analysisunitid

Which analysis unit it is

analysisunitname

Analysis Unit's name

analysisunitnotes

Notes about the analysis unit the sample belongs to

analysisdate

Date (class Date) on which the sample was analyzed

samplenotes

Notes about the sample

Value

sample object

Author

Socorro Dominguez dominguezvid@wisc.edu

Examples

{
  # Set an empty sample
  my_sample <- set_sample()
}