Description Usage Arguments Details Value Examples
Saves objects created by get_messages
and
simplify_cattle
to a .csv file.
1 | save_records(x, folder)
|
x |
a dataframe object created by |
folder |
destination folder. |
Saves out .csv file from GPS data obtained using get_messages
and then passed to simplify_cattle
, and includes a check that an
output file was created.
Writes out csv file to destination folder with file name of the format: <device>_yyyy-mm-dd_HH_MM_SS_.csv
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | library(dplyr)
tenant <- <tenant>
username <- <username>
password <- <password>
device_list <- get_devices(
tenant, username, password
)
# Must create "my folder" first
df <- get_messages(
device = device_list[1],
tenant = tenant,
username = username,
password = password
) %>%
simplify_cattle(
device = device_list[1]
) %>%
save_records(
"my_folder"
)
print(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.