save1D: Create .1D files froma data frame * works on a dataframe with...

View source: R/save1D.R

save1DR Documentation

Create .1D files froma data frame * works on a dataframe with 'block' column * cats a 1D file, optionally sink'ed to a specified file

Description

Create .1D files froma data frame * works on a dataframe with 'block' column * cats a 1D file, optionally sink'ed to a specified file

Usage

save1D(
  d,
  colname = 1,
  fname = NULL,
  dur = NULL,
  amp = NULL,
  nblocks = NULL,
  createdirs = FALSE
)

Arguments

d

dataframe with manditory 'block' column

colname

is the column to use for onset time

fname

is where to save the output 1D. if NULL does not save to a file

dur

if not null, what to set as the duration part of onset:duration

amp

if not null, what to set as the amplitude part of onset*amplitude

nblocks

expected number of blocks or runs. if null will use max

Examples

save1D( data.frame(onset=1:9,durcol=1,block=1:3), 'onset',dur='durcol') 

LabNeuroCogDevel/LNCDR documentation built on Oct. 13, 2023, 4:31 a.m.