View source: R/read-yoctopuce-csv.r
read_yoctopuce_csv | R Documentation |
Reads and parses the header of processed data CSV files as output by the virtual- or hardware-hubs and modules from Yoctopuce. Uses the comment attribute to store the metadata.
read_yoctopuce_csv(
file,
geocode = NULL,
label = NULL,
data_skip = 0,
n_max = Inf,
locale = readr::default_locale()
)
file |
Path to file as a character string. |
geocode |
A data frame with columns |
label |
character string, but if |
data_skip |
integer Number of records (rows) to skip from the actual data block. |
n_max |
integer Maximum number of records to read. |
locale |
The locale controls defaults that vary from place to place. The
default locale is US-centric (like R), but you can use
|
Yoctopuce modules are small USB connected and USB powered, but isolated, very high quality miniature data acquisition and interface modules. All modules capable of data acquisition can log measured data autonomously and these data can be locally or remotely downloaded as a CSV file. (It is also possible and very easy to access these modules from R using package 'reticulate' and the Python library provided by Yoctopuce, or to send commands and retrieve data through the built-in HTML server of the modules or dedicated hubs.)
read_yoctopuce_csv()
returns a tibble::tibble
object,
with the number of columns dependent on the CSV file read.
This function should be able to read data log files from any YoctoPuce USB interface module with data logging capabilities as the format is consistent among them.
# We read a CSV file previously downloaded from a YoctoMeteo module.
file.name <-
system.file("extdata", "yoctopuce-data.csv",
package = "photobiologyInOut", mustWork = TRUE)
yoctopc.tb <- read_yoctopuce_csv(file = file.name)
yoctopc.tb
cat(comment(yoctopc.tb))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.