replacecol: Replace/rename a column in an object

Description Usage Arguments Value Examples

Description

Essentially a thin convenience wrapper around plyr::rename(x, list(...)), except qtag objects have their qualifiers/tags/values attributes properly modified

Usage

1
2
3
4
5
6
7
replacecol(x, ...)

## Default S3 method:
replacecol(x, ...)

## S3 method for class 'qtag'
replacecol(x, ...)

Arguments

...

Key/value pairs to replace in the form oldval="newval"

Value

A copy of the modified object

Examples

1
2
3
4
5
data(pocmaj)
renamecol(pocmaj, Ca="Calcium")
pocmaj2 <- as.qtag(pocmaj, qualifiers=c("core", "depth"))
pocmaj2 <- renamecol(pocmaj2, Ca="Calcium")
attr(pocmaj2, "values")

paleolimbot/ofcores documentation built on May 24, 2019, 6:13 p.m.