validation: Validate Values Given

Description Usage Arguments Value Examples

Description

is_course determines whether or not a given course number is valid. Valid course numbers are 180 and 200.

is_quarter determines whether or not a given quarter name is valid. Valid values include "AU" (Autumn), "WI" (Winter), "SP" (Spring), and "SU" (Summer)

is_section Determines whether or not a given section name is valid. Section names are letters A-Z. When more than 26 sections exist, two letter codes are used.

is_drug Determines whether or not a given antibiotic is valid (in the context of the courses)

is_drug_abbr Determines whether or not a given abbreviated antibiotic is valid (in the context of the courses)

is_strain_id Determines whether or not a given string is a valid strain ID. Valid strain IDs contain two uppercase letters followed by three digits.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

x

Value to test

Value

Logical value indicating whether or not input x is a valid value

Examples

1
2
3
4
5
6
is_course(180)
is_quarter("WI")
is_section("C")
is_drug("Streptomycin")
is_drug("STR")
is_strain_id("AG103")

KerrLab/introbiocure documentation built on May 17, 2019, 11:36 a.m.