sampleCV: Create Subsample of a Simulated Cyclic Voltammogram

Description Usage Arguments Value Examples

Description

Used to create a reduced data file of potentials and currents for a cyclic voltammogram or a linear sweep voltammogram. When passed to plotCV, the resulting plot shows the data as discrete points instead of as a line.

Usage

1
sampleCV(filename, data.reduction = 1)

Arguments

filename

The filename that contains the result of a simulated cyclic voltammetry experiment (created using the cvSim 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; CV for a cyclic voltammetry simulation

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

1
2
3
4
ex_cv = simulateCV(e.start = 0.25, e.switch = -0.25, e.form = 0,
  x.units = 100, t.units = 1000)
ex_cvsample = sampleCV(ex_cv, data.reduction = 5)
str(ex_cvsample)

dtharvey/eChem documentation built on July 9, 2019, 1:35 a.m.