Title: | Coffee Break Descriptive Analysis |
---|---|
Description: | A set of functions that helps you to generate descriptive statistics based on the variable types. |
Authors: | Sandip Kumar Gupta [aut, cre] |
Maintainer: | Sandip Kumar Gupta <[email protected]> |
License: | GPL-2 |
Version: | 0.2.0 |
Built: | 2024-11-12 06:44:08 UTC |
Source: | CRAN |
Returns a data frame containing following descriptive statistics for numerical variables in a data frame. Min Value -Minimum value of the variable. Max Value -Maximum value of the variable. Mean -Mean of the variable. Median -Median of the variable. Variance -Variance of the variable. Standard Deviation -Standard Deviation of the variable. Lower Outlier Cutoff -This helps to detect Lower outliers. Upper Outlier Cutoff -This helps to detect Upper outliers.
nvdescstat(df)
nvdescstat(df)
df |
- Input Data frame. |
Returns a data frame containing descriptive statistics for numerical variable.
"Sandip Kumar Gupta", "[email protected]"
numv1<-c(8000,200,323) numv2<-c(400,533,633) numv3<-c(100,534,734) numv4<-c(1,25,34) chrv6<-c("a","b","c") numv5<-c(50,10000,34000) chrv7<-as.factor(c("male","female","unknown")) numv6<-c(NA,300,340) df<-data.frame(numv1,numv2,chrv6,numv3,numv4,numv5,chrv7,numv6) nvdescstatdf<-nvdescstat(df)
numv1<-c(8000,200,323) numv2<-c(400,533,633) numv3<-c(100,534,734) numv4<-c(1,25,34) chrv6<-c("a","b","c") numv5<-c(50,10000,34000) chrv7<-as.factor(c("male","female","unknown")) numv6<-c(NA,300,340) df<-data.frame(numv1,numv2,chrv6,numv3,numv4,numv5,chrv7,numv6) nvdescstatdf<-nvdescstat(df)
Returns a list of 6 data frames. List's first element contains subset of all Factor variables of the input data frame. Second element contains subset of all numeric and Integer variables of the input data frame. Third element contains subset of all logical variables of the input data frame. Fourth element contains subset of all complex variables of the input data frame. Fifth element contains subset of all character variables of the input data frame. Sixth element contains subset of all raw variables of the input data frame.
subbytype(df)
subbytype(df)
df |
- Input Data frame We Wish To Subset. |
Returns List of Data frames.
"Sandip Kumar Gupta", "[email protected]"
numv<-c(1,2,3) chrv<-c("a","b","c") df<-data.frame(numv,chrv) subbytype(df)
numv<-c(1,2,3) chrv<-c("a","b","c") df<-data.frame(numv,chrv) subbytype(df)