Learn R Programming

abd (version 0.2-8)

abdData: Find data in Analysis of Biological Data

Description

A 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

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?
...
values for any of chapters, types, or pattern. 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.

Value

A data frame describing data sets from abd that match the search criteria, or NULL if there are no matches.

Examples

Run this code
# find all data from examples in chapters 3 and 4
abdData(3:4, 'Example')

# order doesn't matter
abdData('Example', 3:4)

# look for data sets with Example in their name.
abdData(pattern='Example')

# look for data sets with Exercise in their name.
abdData('Exercise')

Run the code above in your browser using DataLab