select_cases: Select a subset of cases

Description Usage Arguments Value Examples

View source: R/select_cases.R

Description

Select a subset of cases

Usage

1

Arguments

scdf

A single-case data frame. See scdf to learn about this format.

...

Selection criteria. Either numeric or as characters.

Value

An scdf with a subset of cases

Examples

1
2
3
4
5
6
select_cases(exampleAB, "Johanna", "Karolina")
# or: select_cases(exampleAB, c("Johanna", "Karolina"))
select_cases(exampleAB, 1,2)
# or: select_cases(exampleAB, 1:2)
select_cases(exampleAB, "-Johanna")
# or: select_cases(exampleAB, c("-Johanna", "-Karolina"))

scan documentation built on Feb. 22, 2021, 5:08 p.m.