subset.scdf | R Documentation |
This function is mainly used to filter rows by a logical expression. It has also arguments to filter variables and cases.
## S3 method for class 'scdf'
subset(x, subset, select, cases, ...)
x |
An scdf object. |
subset |
Logical expression indicating rows to keep: missing values are taken as false. |
select |
Expression, indicating columns to select from an scdf. |
cases |
Expression, indicating cases to keep from an scdf. |
... |
not implemented |
An scdf.
exampleAB %>%
subset((values < 60 & phase == "A") | (values >= 60 & phase == "B"))
subset(exampleAB_add, select = c(-cigarrets, -depression))
subset(exampleAB, cases = c(Karolina, Johanna))
subset(exampleA1B1A2B2, phase %in% c("A1", "B2"), cases = Pawel:Moritz)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.