hlpr_add_models: Helper functions for trajectory ranking

View source: R/helper-functions.R

hlpr_add_modelsR Documentation

Helper functions for trajectory ranking

Description

Functions to use within purrr::map() again in dplyr::mutate() in order to create a nested ranked trajectory data.frame.

  • hlpr_add_models(): Returns a data.frame of variables corresponding to mathematical curves.

  • hlpr_add_residuals(): Calculates the residuals of the variable values with respect to each mathematical curve.

  • hlpr_summarise_residuals(): Calculates the area under the curve for every residual in order to access the fit of the respective expression trend to the fitted curve.

Usage

hlpr_add_models(df, custom_fit = NULL)

hlpr_add_residuals(df, pb = NULL, custom_fit = NULL)

hlpr_summarize_residuals(df, pb = NULL)

hlpr_name_models(names)

hlpr_filter_trend(atdf, limit, poi)

Arguments

df

A data.frame.

Value

If used within purrr::map() a list of data.frames.


kueckelj/SPATA documentation built on March 22, 2022, 9:59 p.m.