Welcome to xda
This package contains several functions to perform initial analysis on any dataframe.
-
numSummary(mydata)function automatically detects all numeric columns in the dataframemydataand provides their summary statistics -
charSummary(mydata)function automatically detects all character columns in the dataframemydataand provides their summary statistics -
Plot(mydata, dep.var)plots all independent variables in the dataframemydataagainst the dependant variable specified by thedep.varparameter -
removeSpecial(mydata, vec)replaces all special characters (specified by vectorvec) in the dataframemydatawithNA -
bivariate(mydata, dep.var, indep.var)performs bivariate analysis between dependent variabledep.varand independent variableindep.varin the dataframemydata
More functions to be added soon.
Installation
To install the xda package, 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")Usage
For detailed usage instructions, please view the README file on GitHub.
library(xda)
#to view a comprehensive summary for all numeric columns in the iris dataset
numSummary(iris)
#to view a comprehensive summary for all character columns in the iris dataset
charSummary(iris)
#to perform bivariate analysis between 'Species` and `Sepal.Length` in the iris dataset
bivariate(iris,'Species','Sepal.Length')
# to plot all other variables against the 'Petal.Length' variable in the iris dataset
Plot(iris,'Petal.Length')Please refer to the documentation of each function to understand how to use it.
For example, to see the documenation for the numSummary() function, use ?numSummary.