createGraphData: Function to create data for graphs

View source: R/createGraphData.R

createGraphDataR Documentation

Function to create data for graphs

Description

This function creates weighted graphData to create most common graphs. x axis is normallly the groupVar and y axis is the originVar. if you don't want data to be weighted, use weightVar = NULL

Usage

createGraphData(
  df = intData,
  originVar,
  groupVar = "Edad",
  weightVar = "ponde",
  totalColumn = T
)

Arguments

df

default: intData

originVar

Variable to be graphed. Default intData

groupVar

Variable to be grouped by. Defaul Edad

weightVar

Weight variable. Default ponde,

totalColumn

Should the total column be included in the data. Default: TRUE

Value

Dataframe for graphs

Author(s)

Gabriel N. Camargo-Toledo gcamargo@sensata.io

Examples

TBD

SensataUX/sensataDataAnalysis documentation built on May 11, 2023, 10:59 a.m.