influxr_upload_files | R Documentation |
influxr_upload_files
uploads a list of files to influxDB.
influxr_upload_files(
client,
files,
measurement,
database,
precision = c("ms", "u", "ns", "s", "m", "h"),
tags,
timestamp,
timestamp_format = "%Y-%m-%d %H:%M:%OS",
timestamp_offset = 0,
tz = ifelse(Sys.getenv("TZ") != "", Sys.getenv("TZ"), Sys.timezone()),
headerline = NULL,
na_strings = c("", "NA", "N/A", "null", "None"),
skip_lines = 0L,
nrows = -1L,
col.classes = NULL,
coerce.classes = FALSE,
select = NULL,
sep = "auto",
inclusive = FALSE,
exclude_timestamp_cols = TRUE,
recover_files = TRUE,
read_method = "fast",
text_preprocess_FUN = NULL,
upload_preprocess_FUN = NULL,
stop_on_error = TRUE,
store_status_locally = FALSE,
verbose = FALSE,
...
)
files |
character vector, containing full file names of files to be uploaded, use
|
timestamp |
Where to get time stamp information for the the provided files. Can be one of the following:
|
timestamp_format |
character. Format used for converting the timestamp to |
tz |
character. Timezone of the provided measurements, the timestamp will be converted to the server timestamp before uploading.
The default is the system environment variable "TZ" and if empty the system timezone |
headerline |
numeric or |
skip_lines |
integer. Rows to skip in each file before reading data. |
nrows |
numeric. Number of rows to read. -1 means all lines. See |
col.classes |
A character vector of classes (named or unnamed), as |
select |
A vector of column names or numbers to keep, drop the rest. |
sep |
character. The separator between columns. See |
exclude_timestamp_cols |
logical. Should the column(s) specified in |
text_preprocess_FUN |
NULL or function. A function to be excuted on the file content before reading as csv |
upload_preprocess_FUN |
NULL or function. A function to be excuted on the content before uploading to the database (eg. calibration) |
stop_on_error |
Whether to stop code excution when a reading error is faced. if True instead of halting the excution, the file is ignored and a warning is shown at the end. |
verbose |
Be chatty and report timings? |
... |
Options passed to |
na_string |
character vector. Strings to be replaced with (NA) and hence excluded from uploading to the databases. |
header |
Passed to fread. |
start_of_interval |
logical. Only used if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.