selected: Set or query the selected (brushed) observations

Description Usage Arguments Value Author(s) See Also Examples

View source: R/data.R

Description

The column .brushed controls which observations are being brushed (i.e. those TRUE's are selected).

Usage

1
2
3

Arguments

data

the mutaframe

value

a logical vector of the length nrow(data), or a vector of integers which will be used to create a logical vector with TRUE corresponding to these indicies, or a character vector of row names to brush the corresponding rows

Value

The function selected returns the logical vector corresponding to whether the observations are selected or not

Author(s)

Yihui Xie <http://yihui.name>

See Also

qdata

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
df <- qdata(mtcars)

selected(df)

selected(df) <- rep(c(TRUE, FALSE), c(10, 22))  # brush the first 10 obs
selected(df)

selected(df) <- 15L  # brush the 15th row
selected(df)

selected(df) <- "Honda Civic"  # brush by row names

ggobi/cranvas documentation built on May 17, 2019, 3:10 a.m.