nvdescstat: Numerical Variable Descriptive Statistics returns a data...

Description Usage Arguments Value Author(s) Examples

View source: R/nvdescstat.R

Description

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.

Usage

1

Arguments

df

- Input Data frame.

Value

Returns a data frame containing descriptive statistics for numerical variable.

Author(s)

"Sandip Kumar Gupta", "sandip_nitj@yahoo.co.in"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

Example output

Warning message:
In facvar[length(facvar) + 1] <- c(facvar, icol) :
  number of items to replace is not a multiple of replacement length

cbanalysis documentation built on May 2, 2019, 8:27 a.m.