mbte_unnest_fits: Perform unnesting of fitting data

Description Usage Arguments Value See Also Examples

View source: R/unnest.R

Description

The 'fits'-list column gets unnested. This function is useful if the fitted signal-values are processed further.

Usage

1

Arguments

x

A tbl_mbte.

Value

A tbl_mbte with the following columns:

desc

'desc' is a placeholder for all columns except the 'signal'- and the 'fits'-columns. Those columns can be seen as "descriptive" columns describing the measured signals.

fit

The name of the method used for fitting (character). See mbte_fit for details.

time

The time-column unnested from the 'signal'-column.

value

The values of the predicted signals (originally in 'signal'- column).

See Also

filtered_signals (dataset used in examples)

Other unnesting functions: mbte_unnest_signals

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# load sample dataset
data(filtered_signals)
filtered_signals

# perform fitting
fitted <- mbte_fit(filtered_signals, lm = lm(value ~ t, .signal))

# unnest predictions for signal-values (==> fitted signals)
#
# NOTE: "lm" is the only method used for fitting and therefore the `fit`-
# column consists only of "lm"
mbte_unnest_fits(fitted)

mkerschbaumer/mbte documentation built on May 5, 2019, 11:01 p.m.