View source: R/calc_weeklywts.R
calc_weeklywts | R Documentation |
This function calculates average weekly weights from daily ALMS weights for individual or groups of cattle using the DataMuster MongoDB database. If you need assistance please email info@datamuster.net.au to seek help or suggest improvements.
calc_weeklywts(
RFID = NULL,
start = NULL,
end = NULL,
values = NULL,
s.d = NULL,
minwt = NULL,
location = NULL,
currentALMS = NULL,
username = NULL,
password = NULL
)
RFID |
a list of cattle RFID number/s |
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 |
values |
the minimum number of daily weight values required to calculate an average weekly weight, default is 4 |
s.d |
the minimin standard deviation between daily weight values required to calculate an average weekly weight, default is 25 |
minwt |
the minimum daily weight (kg) required to be included to calculate an average weekly weight, default is 10 |
location |
the filename of the ALMS unit to search for |
currentALMS |
whether or not cattle are currently allocated to an ALMS unit or not |
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 dataframe of cattle RFID numbers and weekly weight statistics
Dave Swain d.swain@cqu.edu.au and Lauren O'Connor l.r.oconnor@cqu.edu.au
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.