Find data in Analysis of Biological Data
abdData.RdA utility function to assist users to locate data sets in Analysis of
Biological Data within the abd package.
Usage
abdData(
...,
chapters = 1:21,
types = c("Example", "Problem"),
numbers = 1:100,
pattern = "*",
ignore.case = TRUE
)Arguments
- ...
values for any of
chapters,types, orpattern. Which is meant will be inferred from the type of object supplied. This allows users to specify these values in any order and without naming.- chapters
a numeric vector of chapters to search within
- types
a sub-vector of c('Example','Problem')
- numbers
a numeric vector of problem numbers
- pattern
a pattern to use for regular expression matching against the name of the data frame.
- ignore.case
should case be ignored when matching pattern?
Value
A data frame describing data sets from abd that match the
search criteria, or NULL if there are no matches.
Author
Randall Pruim (rpruim@calvin.edu)
Examples
# find all data from examples in chapters 3 and 4
abdData(3:4, "Example")
#> name chapter type number sub
#> 14 GlidingSnakes 3 Example 1
#> 15 SpiderSpeed 3 Example 2
#> 16 SticklebackPlates 3 Example 3
#> 24 HumanGeneLengths 4 Example 1
# order doesn't matter
abdData("Example", 3:4)
#> name chapter type number sub
#> 14 GlidingSnakes 3 Example 1
#> 15 SpiderSpeed 3 Example 2
#> 16 SticklebackPlates 3 Example 3
#> 24 HumanGeneLengths 4 Example 1
# look for data sets with Example in their name.
abdData(pattern="Example")
#> NULL
# look for data sets with Exercise in their name.
abdData("Exercise")
#> name chapter type number sub
#> 112 ProgesteroneExercise 17 Problem 3