delete_planting: Delete Planting

Description Usage Arguments Details Value References Examples

View source: R/delete.R

Description

delete_planting deletes a planting associated with a specific field_id in the aWhere platform

Usage

1
2
3
4
5
6
7
8
9
delete_planting(
  field_id,
  planting_id,
  verbose = TRUE,
  keyToUse = awhereEnv75247$uid,
  secretToUse = awhereEnv75247$secret,
  tokenToUse = awhereEnv75247$token,
  apiAddressToUse = awhereEnv75247$apiAddress
)

Arguments

field_id

the ID of the field for which you want to delete an associated planting (string)

planting_id

The planting Id that you want to delete. You can also use "current" to delete the most recent planting (string)

keyToUse

aWhere API key to use. For advanced use only. Most users will not need to use this parameter (optional)

secretToUse

aWhere API secret to use. For advanced use only. Most users will not need to use this parameter (optional)

tokenToUse

aWhere API token to use. For advanced use only. Most users will not need to use this parameter (optional)

apiAddressToUse

Address of aWhere API to use. For advanced use only. Most users will not need to use this parameter (optional)

Details

The aWhere API only references the most recent planting when calculating agronomics and running models, but if you want to keep your planting records clean for reporting and historical tracking purposes you can delete errant or incorrect plantings.

Value

- a print text that informs if the query succeded or not

References

https://docs.awhere.com/knowledge-base-docs/delete-a-planting/

Examples

1
## Not run: delete_planting("field123",'133972')

aWhereAPI/aWhere-R-Library documentation built on Nov. 5, 2021, 3:35 a.m.