Skip to contents

Imports data associated with a given list of sensor names from .RData files contained in a data directory. The main purpose of this function is to load the data saved with write update data.

Usage

import_sensor(list_sensor)

Arguments

list_sensor

A character vector specifying the names of sensors to import data for.

Value

A dataframe containing the imported data.

Examples

if (FALSE)  # This example requires a valid API key
period <- as.Date(c('2022-01-01', '2022-12-31'))
write_update_data('RteVitre-06', period[1], period[2])
#> Error in eval(expr, envir, enclos): object 'period' not found
write_update_data('ParisArcEnCiel-05', period[1], period[2])
#> Error in eval(expr, envir, enclos): object 'period' not found
import_sensor(c('RteVitre-06', 'ParisArcEnCiel-05'))
#> # A tibble: 0 × 2
#> # ℹ 2 variables: car_speed_hist_0to70plus <list>,
#> #   car_speed_hist_0to120plus <list>