test_for_bleed_date: Throws and error on one or more provided bleed dates occur on...

Description Usage Arguments Value

View source: R/test_for_bleed_date.R

Description

Throws and error on one or more provided bleed dates occur on a date that the animal was not alive. If the animal never existed at SNPRC, it was not alive. It terminates the script with an informative message saying what was wrong otherwise it simply returns NULL.

Usage

1
2
3
4
5
6
7
8
test_for_bleed_date(
  snprc_id,
  bleed_date,
  file_name,
  conn,
  run_props,
  run_error
)

Arguments

snprc_id

character vector of snprc_id column of a blood sample file.

bleed_date

character vector ofb bv

file_name

character vector of length one with the file name.

conn

database connection object to the animal database

run_props

dataframe with four columns ("name", "value", "java_data_type", and "location" defined when a Run Properties File provided by the system is read by the readRunPropertiesFile() function.

run_error

list of length 2 having the integer value of the error level and the message to be displayed.

Value

NULL if test finds no bad input.


rmsharp/snprcspf documentation built on June 15, 2020, 11:21 a.m.