Skip to contents

This function read an exported csv file from trainset (https://trainset.geocene.com/) and update the pam logger dataset

Usage

trainset_read(
  pam,
  pathname = "data/1_pressure/labels/",
  filename = paste0(pam$id, "_act_pres-labeled.csv")
)

Arguments

pam

pam logger dataset list

pathname

Path to the folder where the labeled file is.

filename

Name of the file.

Value

pam logger dataset list updated with the labels (pam$pressure$isoutlier and pam$acceleration$ismig)

Examples

pam <- pam_read(pathname = system.file("extdata/0_PAM/18LX", package = "GeoPressureR"))
pam <- pam_classify(pam)
pam <- trainset_read(pam, pathname = system.file("extdata/1_pressure/labels/",
  package = "GeoPressureR"
))
head(pam$pressure)
#>                  date obs isoutlier
#> 1 2017-07-27 00:00:00 989     FALSE
#> 2 2017-07-27 00:30:00 989     FALSE
#> 3 2017-07-27 01:00:00 990     FALSE
#> 4 2017-07-27 01:30:00 990     FALSE
#> 5 2017-07-27 02:00:00 989     FALSE
#> 6 2017-07-27 02:30:00 989     FALSE
head(pam$acceleration)
#>                  date obs ismig
#> 1 2017-07-27 00:00:00   0 FALSE
#> 2 2017-07-27 00:05:00   0 FALSE
#> 3 2017-07-27 00:10:00   0 FALSE
#> 4 2017-07-27 00:15:00   0 FALSE
#> 5 2017-07-27 00:20:00   0 FALSE
#> 6 2017-07-27 00:25:00   0 FALSE