descriptr (version 0.3.0)

ds_freq_cont: Frequency Distribution of Continuous Data

Description

ds_freq_cont returns the frequency distribution of continuous by splitting the data into equidistant intervals created based on the number of bins specified. hist.ds_freq_cont creates histogram for the frequency table created using ds_freq_cont

Usage

ds_freq_cont(data, bins = 5)

# S3 method for ds_freq_cont hist(x, col = "blue", ...)

Arguments

data

numeric vector

bins

number of intervals into which the data must be split

x

an object of class ds_freq_cont

col

color of the bars

...

further arguments to be passed to or from methods

Value

ds_freq_cont returns an object of class "ds_freq_cont" An object of class "ds_freq_cont" is a list containing the following components

breaks

lower/upper boundaries of intervals

frequency

frequecy of the intervals

cumulative

cumulative frequency

percent

frequency as percent

cum_percent

cumulative frequency as percent

bins

bins

data

data

varname

name of the data

Deprecated Functions

freq_cont() has been deprecated. Instead use ds_freq_cont().

See Also

link{ds_freq_table} link{ds_cross_table}

Examples

Run this code
# NOT RUN {
# frequency table
ds_freq_cont(mtcars$mpg, 4)

# histogram
k <- ds_freq_cont(mtcars$mpg, 4)
hist(k)
# }

Run the code above in your browser using DataLab