Update a depredation call
dep_update_call.RdModify an existing depredation call record. Only supply the fields you want to change; all other fields remain unchanged.
Usage
dep_update_call(
id,
caller = NULL,
caller_role = NULL,
caller_email = NULL,
caller_phone = NULL,
receiver = NULL,
receiver_role = NULL,
receiver_email = NULL,
receiver_phone = NULL,
reason = NULL,
confidence = NULL,
demands = NULL,
place = NULL,
latitude = NULL,
longitude = NULL,
prey = NULL,
prey_killed = NULL,
prey_injured = NULL,
predator = NULL,
predator_amount = NULL,
called_at = NULL,
observed_at = NULL,
dry_run = FALSE,
verbosity = 0
)Arguments
- id
Integer. The call ID to update.
- caller
Character. Name of the person reporting the depredation.
- caller_role
Character. Role of the caller. Must be one of
dep_caller_roles().- caller_email
Character. Email address of the caller.
- caller_phone
Character. Phone number of the caller.
- receiver
Character. Name of the person who received the call.
- receiver_role
Character. Role of the receiver.
- receiver_email
Character. Email of the receiver.
- receiver_phone
Character. Phone number of the receiver.
- reason
Character. The reason for the call. Must be one of
dep_reasons().- confidence
Character. Confidence level. Must be one of
dep_confidence().- demands
Character vector. Requested actions. Values must be from
dep_demands().- place
Character. Location description of the incident.
- latitude
Numeric. Latitude of the incident location.
- longitude
Numeric. Longitude of the incident location.
- prey
Character. Prey species involved.
- prey_killed
Integer. Number of prey killed.
- prey_injured
Integer. Number of prey injured.
- predator
Character. Predator species involved.
- predator_amount
Integer. Number of predators observed.
- called_at
POSIXct or character (
"YYYY-MM-DD HH:MM:SS"). When the call was received.- observed_at
POSIXct or character. When the incident was observed.
- dry_run
Logical. If
TRUE, prints the request without sending it.- verbosity
Integer. How much information to print (0 = silent, 1 = headers, 2 = headers + body, 3 = full).