update_cattleinfo: Update cattle information in the DataMuster MongoDB database.

View source: R/update_cattleinfo.R

update_cattleinfoR Documentation

Update cattle information in the DataMuster MongoDB database.

Description

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

Usage

update_cattleinfo(
  RFID,
  MTag = NULL,
  category = NULL,
  weaned = NULL,
  breed = NULL,
  brand = NULL,
  rego = NULL,
  horn = NULL,
  colour = NULL,
  sex = NULL,
  desexed = NULL,
  origin = NULL,
  DOB = NULL,
  birthWeight = NULL,
  damRFID = NULL,
  damMTag = NULL,
  sireRFID = NULL,
  sireMTag = NULL,
  preghistDate = NULL,
  foetalage = NULL,
  username = NULL,
  password = NULL
)

Arguments

RFID

a list of the cattle RFID number/s

MTag

a list of the cattle management tag numbers

category

the class of animal (breeding or growing)

weaned

the weaned status of the animal. TRUE if cattle are weaned and FALSE if cattle are not weaned

breed

the animal's breed

brand

the animal's brand

rego

the animal's Breedplan registration number

horn

the animal's horn status

colour

the animal's sex, male or female

sex

the animal's sex, male or female

desexed

the animal's desexed status, TRUE if castrated/spayed, FALSE if entire

origin

the animal's previous location

DOB

the animal's date of bith, this has to be in date format

birthWeight

the animal's weight at bith

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

preghistDate

the animal's last preg test date

foetalage

the animal's foetal age estimate at last preg test

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

property

the name of the property to add the cattle

paddock

the name of the paddock to add the cattle

date

the date the animals were added in date format, default is today's date

Value

a message that indicates that the cattle information has been successfully updated

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.