createColumn: Create a column in a LiPD object

View source: R/lipdManipulation.R

createColumnR Documentation

Create a column in a LiPD object

Description

Create a column in a LiPD object

Usage

createColumn(
  L,
  paleo.or.chron = "paleo",
  paleo.or.chron.number = 1,
  table.type = "measurement",
  table.number = 1,
  variableName = NA,
  units = NA,
  values = NA,
  additional.metadata = NA
)

Arguments

L

a LiPD object

paleo.or.chron

is this column for a "paleo" or "chron" table?

paleo.or.chron.number

what number is this paleo or chron object (default = 1)

table.type

"measurement", "ensemble" or "summary" table? (default = "measurement")

table.number

what number is this table object (default = 1)

variableName

what is the variableName (e.g. "depth")

units

what are the units

values

a vector of the values for the column, must be the same length as other columns in the table

additional.metadata

an optional named list of additional metadata to add to the column

Value

updated Lipd object


nickmckay/lipdR documentation built on April 13, 2025, 5:58 p.m.