Learn R Programming

nonmemica (version 0.7.4)

fold.character: Fold Character

Description

Folds character, treating x as a model name.

Usage

# S3 method for character
fold(x, ..., meta = match.fun("meta")(x, ...),
  simplify = TRUE, sort = TRUE, subset)

Arguments

x

character

...

unquoted grouping variables

meta

pre-folded metadata

simplify

whether to simplify the result

sort

whether to sort the result

subset

length-one character: a condition for filtering results, e.g. 'EVID == 1'

Value

folded

Examples

Run this code
# NOT RUN {
library(magrittr)
library(fold)
options(project = system.file('project/model',package='nonmemica'))
1001 %>% fold(ID,TIME,subset='MDV==0') %>% head
# }

Run the code above in your browser using DataLab