selectCols: Function to export sensata data for final customer

View source: R/selectCols.R

selectColsR Documentation

Function to export sensata data for final customer

Description

This function eliminates most metadata from the dataset. This is basically a wrapper for tidyverse::select()

Usage

selectCols(
  df,
  dropGeo = T,
  geoCoordinates = F,
  dropParams = T,
  dropUserData = T,
  dropMetaData = T,
  dropTotalTime = T,
  dropQuestionTime = T
)

Arguments

df

data downloaded from Mongo, cleaned with cleanData.R, scrubbed with scrubData.R and prepared with factorSensata.R.

dropGeo

if TRUE will drop coordinates (lat & long) and geo.accuracy

geoCoordinates

if TRUE will drop geo.coordinates columns, instead of lat & long

dropParams

if TRUE will drop all columns that start with params

dropUserData

if TRUE will drop fingerprint and sensataId

dropMetaData

if TRUE will drop createdAt, surveyId and surveyName

dropTotalTime

if TRUE it drops totalTimeMin column

dropQuestionTime

if TRUE drops q_time columns

Value

Dataframe ready for client.

Author(s)

Gabriel N. Camargo-Toledo gcamargo@sensata.io

Examples

TBD

SensataUX/sensataDataProg documentation built on April 18, 2023, 3:48 p.m.