showGetData: Get and Display a Subset of the Data

View source: R/functions.R

showGetDataR Documentation

Get and Display a Subset of the Data

Description

Use an expression to provide a definition of a subset of the data, reshape the data to either inter- or intra-class analysis, possibly print these subset and return it.

Usage

showGetData(fmddf, expr = NULL, resh = NULL, showData = TRUE)

Arguments

fmddf

A data frame containing FMD data.

expr

An expression defining the subset of data. If left at the default NULL, no subset of the data is created, but he data is merely reshaped.

resh

Character length one. What type of reshape should be applied to the output. Possible values are 'inter' (default) and 'intra'.

showData

Logical If the resulting data frame should be printed. Defaults to TRUE.

Details

Use 'colnames(object)' to determine the name of the columns in the data frame. (Of course.)

Value

A data frame with the subset of data, reshaped for either inter- or intra-class analysis.

Examples

## Not run: 
fmddf <- importData()
expr <- expression(Patient_ID == "Pat#2")
showGetData(fmddf, expr)
expr <- expression(Patient_ID == "Pat#2" & Therapist_ID != "Ther#4")
showGetData(fmddf, expr)

## End(Not run)

bpollner/fmdenq documentation built on March 27, 2022, 4:26 p.m.