sampleCA {eChem}R Documentation

Create Subsample of a Simulated Chronoamperogram

Description

Used to create a reduced data file of times and currents for a chronoamperogram. When passed to plotCA, the resulting plot shows the data as discrete points instead of as a line.

Usage

sampleCA(filename, data.reduction = 1)

Arguments

filename

The filename that contains the result of a simulated chronoamperometry experiment (created using the caSim function).

data.reduction

A value that gives the percentage of the original data to keep, which then is spaced evenly across the full data set

Value

Returns a list with the following components

expt

type of experiment; CA for a chronoamperometry experiment

file_type

value that indicates whether the output includes all data (full) or a subset of data (reduced); defaults to reduced

current

vector giving the current as a function of time

potential

vector giving the potential as a function of time

Examples

ex_ca = simulateCA(e.start = 0.25, e.pulse = -0.25, e.form = 0,
  pulses = "double", t.2 = 20, x.units = 100, t.units = 1000)
ex_casample = sampleCA(ex_ca, data.reduction = 5)
str(ex_casample)

[Package eChem version 1.0.0 Index]