db_describe_equipment: Add a piece of equipment to the equipment table

Description Usage Arguments Value See Also Examples

View source: R/db_describe_equipment.R

Description

Add a piece of equipment to the equipment table

Usage

1
2
3
4
db_describe_equipment(db, equip_name, serial_no, model_name, vendor,
  owner_first, equipment_type = "Sensor", owner_last = NULL,
  owner_email = NULL, manufacturer = NULL,
  purchase_date = Sys.Date())

Arguments

db

database connection

equip_name

a unique short code name of the instrument

serial_no

serial number of equipment

model_name

model name of equipment

vendor

organization that sold the product

owner_first

first name of person who owns equipment

equipment_type

type of equipment from controlled vocabulary defaults to sensor

owner_last

last name of person who owns equipment, required if the person is not in the people table already

owner_email

email of person who owns equipment, required if the person is not in the people table arelady

manufacturer

company that makes the model of the equipment, required if the model is not in the equipmentmodels table

purchase_date

date that the equipment was purchased, defaults to current date

Value

TRUE if successful

See Also

Other describe functions: db_describe_annotation, db_describe_method, db_describe_organization, db_describe_person, db_describe_site, db_describe_variable

Examples

1
2
3
4
5
# db <- create_sqlite()
# OR
# db <- connect_sqlite()
# db_describe_equipment(db, "unit1", "001", "model1",
# "vendor name", "Wendy", "Sensor", "Wetland", "ww email", "hobo")

khondula/rodm2 documentation built on Jan. 9, 2020, 1:48 p.m.