as_refundObj: Convert data to refund objects for use in functional data...

Description Usage Arguments Value Author(s) Examples

View source: R/as_refundObj.R

Description

Very experimental function, primarily used to convert matrices storing functional data to data.frames with specific variable names.

Usage

1

Arguments

obj

Object to be converted. Currently supports class matrix, formatted so that rows contain functional observations on subjects.

...

additional arguments to be passed to methods.

Value

An object of classes data.frame and refund.object, the latter of which is so far not used. Columns are id (taken from the rownames of obj, if they exist), index (with behavior described above), and value (taken from entries in obj).

Author(s)

Jeff Goldsmith jeff.goldsmith@columbia.edu

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(ggplot2)
library(refund)

cca_df = as_refundObj(DTI$cca)

ggplot(cca_df, aes(x = index, y = value, group = id)) + geom_line()

## End(Not run)

refunders/refund.shiny documentation built on Aug. 20, 2020, 12:43 p.m.