libRDataFrame  0.815
A library with R style datatypes and associated utilities
 All Classes Files Functions Variables Pages
Functions | Variables
category.cpp File Reference
#include <string>
#include <map>
#include <typeinfo>
#include <cxxabi.h>
#include <iostream>
#include <ostream>
#include <vector>
#include <array>
#include <initializer_list>
#include <utility>
#include <boost/any.hpp>
#include "node.hpp"
#include "dataframe.hpp"
#include "category.hpp"
Include dependency graph for category.cpp:

Functions

vector< vector< int > > getDummyVarData ()
 

Variables

int nRows = 0
 
int nLevels = 0
 
string catVarName = ""
 
vector< int > dummySet
 
map< int, string > categorySet
 
vector< int > catVarRanks
 

Function Documentation

vector< vector<int> > getDummyVarData ( )

member functions - class methods get dummy variable representation of varData

Returns

Variable Documentation

map<int, string> categorySet

map of categorical pairs, the meta-data of the variable storing the categories. A level number (int) and a level name of title (string)

string catVarName = ""

variable for this category variable (also represented by the object name it was created with

vector<int> catVarRanks

vector of category levels (numeric only) ie. ints (level names are obtained as needed from the map for use in table and plot output.

int nLevels = 0

size of dummy set

int nRows = 0