powered by
You can subset studies by identifier or by position using the `[` operator.
`[`
# S4 method for studies,missing,missing,missing [(x, i, j, ..., drop = FALSE)# S4 method for studies,numeric,missing,missing [(x, i, j, ..., drop = FALSE)# S4 method for studies,character,missing,missing [(x, i, j, ..., drop = FALSE)
# S4 method for studies,numeric,missing,missing [(x, i, j, ..., drop = FALSE)
# S4 method for studies,character,missing,missing [(x, i, j, ..., drop = FALSE)
A studies object.
Position of the identifier or the name of the identifier itself.
Not used.
Additional arguments not used here.
# Subset a studies object by identifier studies_ex01['GCST001585'] # Or by its position in table studies studies_ex01[1] # Keep all studies except the first studies_ex01[-1]
Run the code above in your browser using DataLab