Skip to content

gaborio/sensataDataProg

 
 

Repository files navigation

sensataDataProg

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.

Installation

# install.packages("devtools")
# install.packages("tidyverse")


devtools::install_github(repo = "https://github.com/SensataUx/sensataDataProg", ref = "main", build_vignettes = T)

Example

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"))

TO-DO

  • unify scrubPeaks and scrubPeaksSource
  • Create weights
  • Create vignettes
  • Create tests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%