Description Usage Arguments Details Value Examples
simplify_cattle
data manipulaton function which formats outputs from
get_messages
.
1 | simplify_cattle(x, device = device)
|
x |
an object returned by |
device |
the device from which the |
This function implements some simple data manipulation operations for objects
returned by get_messages
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.