This package has the functions needed to clean and manipulate data created with the Sensata platform.
Este paquete tiene las funciones necesarias para limpiar y manipular los datos de la plataforma Sensata.
# install.packages("devtools")
# install.packages("tidyverse")
devtools::install_github(repo = "https://github.com/SensataUx/sensataDataProg", ref = "main", build_vignettes = T)
This is a basic example which shows how to prepare raw data from sensata platform (data included as an example in the package):
Este es un ejemplo básico que muestra cómo preparar datos raw de la plataforma sensata (datos incluidos como ejemplo en el paquete):
library(sensataDataProg)
# this automatically loads tidyverse and labelled
rawData <- sensataDataProg::sensataExample
Dict <- dictGenerator(
df = rawData,
questionPrefix = "",
forceOrdered = "q_AB_NI_01"
)
Dict$options <- sub("\\//.*", "", Dict$options)
intData <- cleanCols(df = rawData,
dictionary = Dict)
intData<- scrubRows(df = intData,
testParamName = "test")
intData <- intData %>% makeFactors(dictionary = Dict,
multChoiceText = c("Yes", "No"))
- unify scrubPeaks and scrubPeaksSource
- Create weights
- Create vignettes
- Create tests