View source: R/get_calvingdata.R
get_calvingdata | R Documentation |
This function provides a search tool to retrieve calving data from the CalvingData 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.
get_calvingdata(
RFID = NULL,
MTag = NULL,
property = NULL,
twins = NULL,
start = NULL,
end = NULL,
season = NULL,
cow_id = NULL,
fields = NULL,
username = NULL,
password = NULL
)
RFID |
a list of cattle RFID number/s |
MTag |
a list of cattle MTag/s. Property must be specified in order to search using this field |
property |
the name of the property to search for |
twins |
whether the cow had twins or not (TRUE/FALSE) |
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 |
season |
the calving season, e.g. "2019/20" |
cow_id |
a list of DataMuster database cow identification numbers |
fields |
a list of headers from the CalvingData collection in the DataMuster MongoDB database to be returned. If not specified, the RFID, MTag, property, date of foetal aging, age at foetal aging, calving date, and twin status 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 |
a list of cattle RFID numbers and associated static weight records
Dave Swain d.swain@cqu.edu.au, Lauren O'Connor l.r.oconnor@cqu.edu.au, and Anita Chang a.chang@cqu.edu.au
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.