pH_rolling_mean: Calculate rolling mean of flow cytometry pH timecourse data

Description Usage Arguments Value

View source: R/pH_rolling_mean.R

Description

Takes a subset of a dataframe that represents a single experiment and calculates a rolling mean on the data with binwidth k.

Usage

1
pH_rolling_mean(dat, k = "auto", k_val = 0.05)

Arguments

dat

A dataframe or dataframe subset to act on. Should have a column called pH.m on which the fit will be calculated.

k

Indicates method to use for binwidth. If k is an integer, this will be the number of samples to include in the averaging bin. If k is "auto", the binwidth will be determined for each subset individually, size will be determined by k_val

k_val

Only used if k = "auto"; the percentage of the total number of observations that will be averaged over for each subset

Value

a dataframe with columns "Time" and "fit" representing the rolling mean at each timepoint.


ctriandafillou/flownalysis documentation built on Sept. 7, 2020, 1:48 a.m.