simplify_cattle: Simplify output from 'get_messages'

Description Usage Arguments Details Value Examples

Description

simplify_cattle data manipulaton function which formats outputs from get_messages.

Usage

1

Arguments

x

an object returned by get_messages

device

the device from which the get_messages object was obtained. Future versions will do this automatically.

Details

This function implements some simple data manipulation operations for objects returned by get_messages

Value

An object of class c(tbl,tbl_df),data.frame with the following columns: device, timestamp, date, time, SequenceNumber,SentFromDevice, MessageType, lon, lat, speed, heading, alt, accuracy.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
library(dplyr)

tenant <- <tenant>
username <- <username>
password <- <password>

device_list <- get_devices(
tenant, username, password
)

df <- get_messages(
device = device_list[1],
tenant = tenant,
username = username,
password = password
) %>%
simplify_cattle(
device = device_list[1]
)

print(df)

maupson/gapAPI documentation built on May 21, 2019, 1:37 p.m.