funData2DataFrame: Transform a funData object to an Data.Frame

View source: R/helperfunctions_results.R

funData2DataFrameR Documentation

Transform a funData object to an Data.Frame

Description

This function transform a funData object to a data.frame so that it is easy to plot it using ggplot. It internally checks if the object is a multiFunData object.

Usage

funData2DataFrame(fundata)

Arguments

fundata

FunData or MultiFundata object to transform.

Value

A data.frame with four variables

  • t (num): the functional argument.

  • y (num): the functional value.

  • dim (int): the number of the dimension (position in the multiFunData object).

  • obs (int): the number of the observation in the funData object.


alexvolkmann/multifammPaper documentation built on Sept. 9, 2024, 8:47 p.m.