add_paddocks: Add paddocks to the DataMuster MongoDB database.

View source: R/add_paddocks.R

add_paddocksR Documentation

Add paddocks to the DataMuster MongoDB database.

Description

This function adds individual or groups of paddocks to the DataMuster MongoDB database. If you need assistance please email info@datamuster.net.au to seek help or suggest improvements.

Usage

add_paddocks(
  property,
  paddockname = NULL,
  filedir = NULL,
  filename = NULL,
  filetype,
  coords = NULL,
  username = NULL,
  password = NULL
)

Arguments

property

the name of the property to add the paddocks

paddockname

the name of the paddock/s, if NULL the paddock will be assigned a numeric name, if "filename" the name of the file will be assigned

filedir

the location of the spatial file containing the paddock coordinates

filename

the name of the spatial file, if NULL all spatial files in the directory will be read and added as paddocks

filetype

the type of spatial file (e.g. shp, kmz, coords), if inputting raw coordinates they must be listed in pairs with long first then lat, if in decimal degrees minutes they must be in the format "35d9'58.12\"S" "66d40'42.74\"W"

coords

the coordinates of the paddock, if inputting raw coordinates they must be listed in pairs with long first then lat, if in decimal degrees minutes they must be in the format "35d9'58.12\"S" "66d40'42.74\"W"

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 message that indicates that the paddock/s have been successfully added

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.