cbk.read.dflame: Read csvfile created by casteml convert with column 'unit'

Description Usage Arguments Details Value See Also Examples

View source: R/cbk.read.dflame.R

Description

Read csvfile with column ‘unit’ created by casteml convert --format dflame. This is low-level function and users are not encourage to call this but cbk.read.casteml().

Usage

1
2
cbk.read.dflame(dflame.csv, tableunit = "none", verbose = TRUE,
  force = TRUE)

Arguments

dflame.csv

A csvfile with columns of stone and rows of element. abundances, with 2nd column ‘unit’.

tableunit

Output unit that will be resolved by cbk.convector (default: "none").

verbose

Output debug info (default: TRUE).

force

Force read csvfile with duplicated acquisitions (default: TRUE).

Details

This internally calls read.csv(dflame.csv,row.names=1,header=T,stringsAsFactors=F), take out column of ‘unit’ and normalized by the ‘unit’ column.

Value

A pmlame with unit organized.

See Also

cbk.download.casteml, casteml convert, https://github.com/misasa/casteml, and cbk.convector.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
pmlfile    <- cbk.download.casteml("20081202172326.hkitagawa")
dflame.csv <- cbk.convert.casteml(pmlfile,category="trace")
pmlame     <- cbk.read.dflame(dflame.csv,"ppm",force=TRUE)

dflame.csv <- cbk.path("20081202172326.hkitagawa_trace.dflame")
message(sprintf("The dflame.csv is located at |%s|.",dflame.csv))
pmlame     <- cbk.read.dflame(dflame.csv,"ppm")

dflame.csv <- cbk.path("ref1-dflame0.csv")
message(sprintf("The dflame.csv is located at |%s|.",dflame.csv))
pmlame     <- cbk.read.dflame(dflame.csv,"ppm")

dflame.csv <- cbk.path("periodic-dflame0.csv")
message(sprintf("The dflame.csv is located at |%s|.",dflame.csv))
pmlame     <- cbk.read.dflame(dflame.csv)

misasa/chelyabinsk documentation built on Nov. 24, 2020, 5:47 a.m.