Quantcast
Channel: ujjwalkarn – Ujjwal Karn's blog
Viewing all articles
Browse latest Browse all 13

Introducing xda: R package for exploratory data analysis

$
0
0

This R package contains several tools to perform initial exploratory analysis on any input dataset. It includes custom functions for plotting the data as well as performing different kinds of analyses such as univariate, bivariate and multivariate investigation which is the first step of any predictive modeling pipeline. This package can be used to get a good sense of any dataset before jumping on to building predictive models. You can install the package from GitHub.

The functions currently included in the package are mentioned below:

  • numSummary(mydata) function automatically detects all numeric columns in the dataframe mydata and provides their summary statistics
  • charSummary(mydata) function automatically detects all character columns in the dataframe mydata and provides their summary statistics
  • Plot(mydata, dep.var) plots all independent variables in the dataframe mydata against the dependant variable specified by the dep.var parameter
  • removeSpecial(mydata, vec) replaces all special characters (specified by vector vec) in the dataframe mydata with NA
  • bivariate(mydata, dep.var, indep.var) performs bivariate analysis between dependent variable dep.var and independent variable indep.var in the dataframe mydata

Installation

There are 2 ways of installing xda:

  • Using devtools: 

The devtools package needs to be installed first. To install devtools, please follow instructions here. Then, use the following commands to install `xda`:

library(devtools)
install_github(ujjwalkarn/xda)
  • Alternatively, you can also try the following to install xda:

install.packages(githubinstall)
library(githubinstall)
githubinstall(xda)

Read more about githubinstall here.

Usage

Update: See usage instructions and latest updates to the package here. The package is constantly under development and more functionalities will be added soon. Will also add this to CRAN in the coming days. Pull requests to add more functions are welcome!


Viewing all articles
Browse latest Browse all 13

Trending Articles