fun_smooth: Loess smoothing of a well curve

Description Usage Arguments Value See Also Examples

Description

Loess smoothing of a well curve

Usage

1
2
fun_smooth(df, x_name = "hours", y_name = "value", no_points = NULL,
  fit_degree = 1)

Arguments

df

takes a mtp object as input

x_name

the name of the x variable of type character

y_name

the name of the y variable of type character

no_points

The number of points in the loess smooth window of type numeric. Defaults to 20% of the length of the x variable

fit_degree

The degree of the loess smooth polynomial of type numeric must be less than or equal to 2

Value

returns a mtp object

See Also

smooth_mtp for mtp objects and smooth_mtp_list for lists of mtp objects

Other smoothing.functions: smooth_mtp_list, smooth_mtp

Examples

1
2
3
4
df <- df_mtp$mtp[[1]]
curve <- subset(df, curve_id == 1)
fun_smooth(curve)
fun_smooth(curve, no_points = 40)

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