abdData: Find data in _Analysis of Biological Data_

Description Usage Arguments Value Author(s) See Also Examples

Description

A utility function to assist users to locate data sets in Analysis of Biological Data within the abd package.

Usage

1
2
3
4
5
6
abdData(..., 
  chapters = 1:21, 
  types = c("Example", "Problem"), 
  numbers = 1:100, 
  pattern = "*", 
  ignore.case = TRUE)

Arguments

...

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.

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(s)

Randall Pruim (rpruim@calvin.edu)

See Also

dataInfo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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')

Example output

Loading required package: nlme
Loading required package: lattice
Loading required package: grid
Loading required package: mosaic
Loading required package: dplyr

Attaching package: 'dplyr'

The following object is masked from 'package:nlme':

    collapse

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: ggformula
Loading required package: ggplot2

New to ggformula?  Try the tutorials: 
	learnr::run_tutorial("introduction", package = "ggformula")
	learnr::run_tutorial("refining", package = "ggformula")
Loading required package: mosaicData
Loading required package: Matrix

The 'mosaic' package masks several functions from core packages in order to add 
additional features.  The original behavior of these functions should not be affected by this.

Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.

Attaching package: 'mosaic'

The following object is masked from 'package:Matrix':

    mean

The following objects are masked from 'package:dplyr':

    count, do, tally

The following objects are masked from 'package:stats':

    IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
    quantile, sd, t.test, var

The following objects are masked from 'package:base':

    max, mean, min, prod, range, sample, sum

                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    
                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    
NULL
                    name chapter    type number sub
112 ProgesteroneExercise      17 Problem      3    

abd documentation built on May 2, 2019, 4:46 p.m.