cv_read: Load cyclic voltammogram

Description Usage Arguments See Also Examples

View source: R/electrochemistry.R

Description

Reads *.txt files from the CHI potentiostats. Automatically detects sweep- and cv-number, so these can later be used for colors in plots etc.

Usage

1
cv_read(file, skip, col_names = c("potential", "current"))

Arguments

skip

Number of lines to skip (where does metadata end and the data start?)

col_names

A vector containing the names to be used for the two loaded columms (Default: c("potential", "current"))

path

Path to the CV file (txt)

See Also

Other cyclic voltammetry, electrochemistry: electrolysis_read

Examples

1
2
3
4
5
6
file <- system.file('extdata/cv/cv_example.txt', package = 'osc')
df <- cv_read(file, skip = 41)

file <- system.file('extdata/cv/5cv_example.txt', package = 'osc')
df <- cv_read(file, skip = 70)
plot(df)

SPOMAN/osctools documentation built on May 24, 2019, 6:19 p.m.