Description Usage Arguments Examples
Add a new data item to an existing MTC Device Class
1 2 | add_data_item_to_mtc_device(mtc_device, data_item_data, data_item_name,
category = "EVENT")
|
mtc_device |
An existing object of MTCDevice Class |
data_item_data |
Data for the new data item to add |
data_item_name |
Name of the new data item |
category |
Category of the new data item. Can be EVENT or SAMPLE |
1 2 3 4 5 6 7 8 | data_item_data = data.frame(timestamp = as.POSIXct(c(0.5, 1, 1.008, 1.011) +
1445579573, tz = 'CST6CDT', origin = "1970-01-01"),
value = c("a", "b", "c", "d"))
data("example_mtc_device")
mtc_device_updated =
add_data_item_to_mtc_device(example_mtc_device, data_item_data,
data_item_name = "test", category = "EVENT")
print(mtc_device_updated)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.