Learn R Programming

gen5helper

A Collection of Functions for Processing Gen5 2.06 Exported Data

Installation

You can install gen5helper from github with:

# install.packages("devtools")
devtools::install_github("yanxianucsb/gen5helper")

Example

After exporting tab-delim ascii files (named 'data.txt' for instance), this is a basic example for further cleaning and annotating:

## clean
df <- g5h.clean('data.txt')
## add time intervals
df <- g5h.set_time(df)
## add mean, standard deviation, treatment and dose.
df <- g5h.annotate(df)

Copy Link

Version

Install

install.packages('gen5helper')

Monthly Downloads

175

Version

1.0.1

License

MIT + file LICENSE

Maintainer

Yanxian Lin

Last Published

November 22nd, 2019

Functions in gen5helper (1.0.1)

ungroup_

Run ungroup() and as.data.frame()
normalize

Scale a vector to 0-1 by min and max
get.halftime

Get half time by linear fitting
range_

Return range of a vector
mapvalues_

Map the unique values of a vector
most.freq

Return most frequent numbers
write.csv_

write.csv without row.names
smooth.mean

Smooth a vector using moving average
saveRDS_

saveRDS and return .data
factor2num

this is a file for functions that are universally useful at common data manipulations Convert factor to numeric
g5h.set_time2

Add time intervals to cleaned dataset
Boltzmann

Boltzmann model for fitting time series data
gen5helper

gen5helper: A Collection of Functions for Processing Gen5 2.06 Exported Data
g5h.clean_

Clean Gen5 exported data
g5h.annotate

Annotate a cleaned dataset
as.is

Cast an object to match class of another object
g5h.clean2

Clean Gen5 exported data
fit.boltzmann

Fit readings with Boltzmann model