Learn R Programming

neotoma2 (version 1.1.1)

set_sample: set Sample Information

Description

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

Usage

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_
)

Value

sample object

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

Author

Socorro Dominguez [email protected]

Examples

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

Run the code above in your browser using DataLab