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

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

Matt Espe