import_ocp: Import open circuit potential vs state of charge

Description Usage Arguments Details Value Functions Author(s) See Also

Description

This function, given a set of open circuit potential measurement files from Gamry Framework, collects the last voltage data point from each file, and puts them into a data frame to make plotting open circuit potential versus state of charge straightforward

Usage

1
2
3
4
import_ocp(filepattern = "OCP_before_CV", state.of.charge = seq(from = 10,
  to = 100, by = 10), filepath = ".")

getocp(filename)

Arguments

filepattern

A unique tag which appears in the filename of each data file you wish to import

state.of.charge

A sequence of numbers which should be of the same length as the number of files you wish to import. Each number in the sequence should correspond to the state of charge at which you made each open circuit potential measurement.

filepath

Path where the open circuit potential vs state of charge data is stored. Defaults to working directory.

Details

The function requires all open circuit potential files to have a unique character string filepattern in their filenames. The function also currently requires the user to specify the state of charge at which each data file was collected. The function looks in the working directory for any files with the tag filepattern and then uses mixedsort to intelligently sort the files (so that, for example, #10 does not come between #1 and #2).

Value

Returns a data frame containing open circuit potential and state of charge.

Functions

Author(s)

Mike Gerhardt

See Also

mixedsort


mikegerhardt/echem documentation built on May 22, 2019, 10:51 p.m.