add_cattle: Add cattle to the DataMuster MongoDB database.

View source: R/add_cattle.R

add_cattleR Documentation

Add cattle to the DataMuster MongoDB database.

Description

This function adds individual or groups of cattle to the DataMuster MongoDB database. If you need assistance please email info@datamuster.net.au to seek help or suggest improvements.

Usage

add_cattle(
  RFID,
  MTag,
  category,
  property,
  paddock,
  weaned,
  date = NULL,
  breed = NULL,
  brand = NULL,
  horn = NULL,
  colour = NULL,
  sex = NULL,
  desexed = NULL,
  DOB = NULL,
  birthWeight = NULL,
  registration = NULL,
  damRFID = NULL,
  damMTag = NULL,
  sireRFID = NULL,
  sireMTag = NULL,
  animalID = NULL,
  username = NULL,
  password = NULL
)

Arguments

RFID

a list of cattle RFID number/s

MTag

a list of cattle management tag number/s

category

the class of animal (breeding or growing)

property

the name of the property to add the animal/s

paddock

the name of the paddock to add the animal/s

weaned

TRUE if the animal/s are weaned or FALSE if animal/s are not weaned, default is TRUE

date

the date that the animal/s were added in date format, default is today's date

breed

the animal's breed

brand

the animal's brand

horn

the animal's horn status (e.g. horn, poll, scur)

colour

the animal's colour

sex

the animal's sex (male or female)

desexed

TRUE if the animal/s are castrated/spayed or FALSE if the animal/s are entire, default is FALSE

DOB

the animal's date of bith in date format

birthWeight

the animal's weight at birth

registration

the animal's society registration number

damRFID

the dam's RFID number

damMTag

the dam's management tag number

sireRFID

the sire's RFID number

sireMTag

the sire's management tag number

animalID

only applicable to a select few original animals, a unique database identification number

username

if you don't have a username set up using the dmaccess function you can pass a username, if no value added then the function looks for a value from dmaccess via keyring

password

if you include a username you will also need to add a password contact Lauren O'Connor if you don't have access

Value

a message that indicates the cattle have been successfully added

Author(s)

Dave Swain d.swain@cqu.edu.au and Lauren O'Connor l.r.oconnor@cqu.edu.au


PrecisionLivestockManagement/DMMongoDB documentation built on Aug. 22, 2023, 10:57 a.m.