create_antenna_data: Create Antenna Data

View source: R/payloads.R

create_antenna_dataR Documentation

Create Antenna Data

Description

Creates a nested list from an data.frame of antennas to be suitable for submission to the API endpoint /api/admin/create/network.

Usage

create_antenna_data(
  df,
  req_cols = c("unATID", "antDataEnd", "unLat", "unLong", "unAntName", "unRegion",
    "antDataStart")
)

create_batch_tag_data(
  df,
  payload_cols,
  req_cols = c("unTagName", "tagDataTime")
)

Arguments

df

data.frame

req_cols

character vector, the names of the columns required to be in the df

payload_cols

character vector, the column names of data to include in the data payload. These should match the values provided to the batchDataSchema fields.

Value

nested list for conversion into JSON

Author(s)

Matt Espe


fishsciences/telemetry documentation built on May 31, 2024, 10:13 a.m.