mtp_feature: Find feature points for a MTP

Description Usage Arguments Value See Also Examples

Description

Find feature points for a MTP

Usage

1

Arguments

mtp

a data frame of class mtp

...

parameters for the fun_xy function

Value

a data frame

See Also

fun_xy and df_mtp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# pH a 6 hrs
mtp_feature(df_mtp$mtp[[1]], x_out = 6, y_name = "value")

# time to pH 5.5
mtp_feature(df_mtp$mtp[[1]], x_out = 5.5, x_name = "value", y_name = "hours")

# reducing data set to whole hours
reduced_data <- mtp_feature(df_mtp$mtp[[1]], x_out = c(1:10), y_name = "value")

# Calculating features for the whole data frame of mtp's
# Make sure that each piece feed to the do() function is a mtp object.
# the . is a place holder.
library(dplyr)
df_mtp %>%
group_by(file, sheet, Plate) %>%
do(mtp_feature(.$mtp[[1]], x_out = c(1,6)))

JannikVindeloev/RAPr documentation built on May 7, 2019, 10:21 a.m.