12 Commits (0f936f1e627bb7f9b152ae1d27f41c5bcaccb823)

Author SHA1 Message Date
Taha Ahmed 0f936f1e62 Updated ocp2df() in CHI.R to put attributes in the dataframe columns. 13 years ago
Taha Ahmed bd2b1731fc Major update in CHI.R, function amperometry2df() improved, fixed.
There was an error in amperometry2df(), whereby the timediff calculated
was way too low. Was possibly related to the It2charge() function
used to calculate those values. That function (in common.R) is no longer
used by amperometry2df().
Also updated amperometry2df() so it now includes the data attributes
in the return dataframe itself, as columns (compare cv2df()).

common.R: do not use the It2charge() function in the future.
Do such calculations inline instead.
13 years ago
Taha Ahmed fd62a103c8 Created LEO1550.R: created tifftags2df() function.
In common.R: marked LinearBaseline() as deprecated.
13 years ago
Taha Ahmed 8e0733d03e Added function LinearBaseline(). 13 years ago
Taha Ahmed 2c48474584 Added the new function int2padstr().
Using a combination of format() and gsub().
The purpose is to simplify looping through many datafiles
in a single report using for-loops.
A way was needed to "convert" the for-loop's counting variable
into a string of set length padded with zeroes.
This function fills that need.
13 years ago
Taha Ahmed c810ef66ba Updated It2charge() and fixed the relevant parts of amperometry2df().
It2charge() is now explicitly meant to be used only from within
other functions, such as amperometry2df().
13 years ago
Taha Ahmed f8ad854bd7 New function It2charge() in common.R - amperometry2df() updated accordingly. 13 years ago
Taha Ahmed 6469feb7be Created the new function ProvideSampleId(). 13 years ago
Taha Ahmed 74450ff30c Most recent change: added working electrode area to electrochemical functions. 13 years ago
Taha Ahmed eb9d5d2dd7 Added function ConvertRefPot().
Function takes a potential and its reference electrode, and converts to a specified reference electrode scale, either another or the same.
I made it to simplify converting between different reference electrode scales in running text.
13 years ago
Taha Ahmed 5a5f3133d3 Two new functions in common.R
Celsius2Kelvin()
Kelvin2Celsius()

Including very crude error checks (checks that supplied temperature
is not below absolute zero, if so, sets it to absolute zero).
Idea: would be nice if function returned same number of significant
digits as it received.
13 years ago
Taha Ahmed 996a79787c Contains my own R functions. First commit. 14 years ago