as.data.frame.eeg_lm: Convert 'eeg_lm' to data.frame

View source: R/df_converters.R

as.data.frame.eeg_lmR Documentation

Convert eeg_lm to data.frame

Description

Convert an object of class eeg_data into a standard data.frame.

Usage

## S3 method for class 'eeg_lm'
as.data.frame(
  x,
  row.names = NULL,
  optional = FALSE,
  long = FALSE,
  coords = TRUE,
  values = c("coefficients", "std_err", "t_stats", "r_sq"),
  ...
)

Arguments

x

Object of class eeg_data

row.names

Kept for compatibility with S3 generic, ignored.

optional

Kept for compatibility with S3 generic, ignored.

long

Convert to long format. Defaults to FALSE.

coords

Include electrode coordinates in output. Only possible when long = TRUE.

values

Defaults to "coefficients", returning fitted coefficient values.

...

arguments for other as.data.frame commands

Author(s)

Matt Craddock matt@mattcraddock.com


neuroconductor/eegUtils documentation built on Feb. 3, 2023, 5:33 p.m.