ds_freq_cont: Frequency distribution of continuous data

Description Usage Arguments Value Deprecated functions See Also Examples

View source: R/ds-freq-cont.R

Description

Frequency distribution of continuous data by splitting 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

1
2
3
4
ds_freq_cont(data, variable, bins = 5)

## S3 method for class 'ds_freq_cont'
plot(x, ...)

Arguments

data

A data.frame or a tibble.

variable

Column in data.

bins

Number of intervals into which the data must be split.

x

An object of class ds_freq_cont.

...

Further arguments to be passed to or from methods.

Value

A tibble.

Deprecated functions

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

See Also

ds_freq_table ds_cross_table

Examples

1
2
3
4
5
6
# frequency table
ds_freq_cont(mtcarz, mpg, 4)

# histogram
k <- ds_freq_cont(mtcarz, mpg, 4)
plot(k)

rsquaredacademy/descriptr documentation built on Oct. 7, 2018, 1:02 p.m.