get_almshistory: Retrieve ALMS historical information from the DataMuster...

View source: R/get_almshistory.R

get_almshistoryR Documentation

Retrieve ALMS historical information from the DataMuster MongoDB database.

Description

This function provides a search tool to retrieve historical ALMS information from the ALMSHistory collection in the DataMuster MongoDB database. It also allows the user to define what fields should be returned. If you need assistance please email info@datamuster.net.au to seek help or suggest improvements.

Usage

get_almshistory(
  cattle_id = NULL,
  RFID = NULL,
  MTag = NULL,
  property = NULL,
  ALMS = NULL,
  currentALMS = NULL,
  timezone = NULL,
  start = NULL,
  end = NULL,
  fields = NULL,
  username = NULL,
  password = NULL
)

Arguments

cattle_id

a list of DataMuster cattle database identification number/s

RFID

a list of cattle RFID number/s

property

the name of the property to search for

ALMS

a list of ALMS asset_id's to search for

currentALMS

the current ALMS unit allocation, TRUE or FALSE

timezone

the local timezone of the property, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the list of accepted timezones

start

a start date to be returned in date format, default is "2014-09-01"

end

an end date to be returned in date format, default is today's date

fields

a list of headers from the DailyWts collection in the DataMuster MongoDB database to be returned. If not specified, the RFID, stationname, ALMS, dateON, and dateOFF will be returned

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 list of cattle RFID numbers and associated ALMS allocation statistics

Author(s)

Dave Swain d.swain@cqu.edu.au, Lauren O'Connor l.r.oconnor@cqu.edu.au, and Anita Chang a.chang@cqu.edu.au


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