flag: Create and Manipulate Flags

Description Usage Arguments Details Value Author(s) References Examples

Description

A flag is is an integer that may be imputed as zero where missing. These functions implement the class. Other functions may do the imputation as necessary.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## S3 method for class 'flag'
x[..., drop = TRUE]
## S3 method for class 'flag'
x[[..., drop = TRUE]]
f(x, ...)
## S3 method for class 'flag'
as.character(x, ...)
## S3 method for class 'flag'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
## Default S3 method:
as.flag(x, ...)
## S3 method for class 'flag'
as.flag(x, ...)
## S3 method for class 'flag'
c(..., recursive = FALSE)
## S3 method for class 'flag'
format(x, ...)
## S3 method for class 'flag'
print(x, ...)
## S3 method for class 'flag'
rep(x, ...)
## S3 method for class 'flag'
xtfrm(x)

Arguments

x

the flag object, or something coercible to integer

...

extra arguments, ususally ignored

drop

coerce to lowest possible dimension

row.names

row names for the result

optional

Optional to use the object name as the column name?

recursive

unused, present for historical reasons

Details

Typically a flag takes on the values of zero and 1, and is used to indicate the presence of a particular condition. Other functions are welcome to impute NAs as 0. Methods are defined for common classes. f is an alias to as.flag.

Value

flag

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

Examples

1
hide(Theoph,where=Theoph$conc < 1,why='BLQ')

metrumrg documentation built on May 2, 2019, 5:55 p.m.