View source: R/get_infrastructure.R
get_infrastructure | R Documentation |
This function provides a search tool to retrieve infrastructure information from the Infrastructure 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_infrastructure(
property = NULL,
paddock = NULL,
type = NULL,
active = NULL,
training = NULL,
filename = NULL,
fields = NULL,
username = NULL,
password = NULL
)
property |
the name of the property to search for |
paddock |
the name of the paddock to search for |
type |
type of infrastructure |
active |
TRUE or FALSE, if TRUE, filters the data for infrastructure that is currently active |
training |
TRUE or FALSE |
filename |
the location name given to the unit |
fields |
a list of headers from the Infrastructure collection in the DataMuster MongoDB database to be returned. If not specified, the property, infrastructure type, use date, file name, cattle number, and assigned paddock 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 infrastructure statistics
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.