add_stations: Add a station to the DataMuster MongoDB database.

View source: R/add_stations.R

add_stationsR Documentation

Add a station to the DataMuster MongoDB database.

Description

This function adds a station to the DataMuster MongoDB database. You can only access this function if you have read and write permissions.

Usage

add_stations(
  stationname,
  lat,
  long,
  area = NULL,
  timezone = NULL,
  username = NULL,
  password = NULL
)

Arguments

stationname

the name of the property

lat

the latitude of a coordinate point to locate the property

long

the longitude of a coordinate point to locate the property

area

the area of the staion in hectares, default is 100 ha

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, default is Australia/Brisbane

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 station has 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.