Learn R Programming

descriptr (version 0.4.1)

ds_freq_cont: Frequency distribution of continuous data

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

ds_freq_cont(data, variable, bins = 5)

# S3 method for 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

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

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

# }

Run the code above in your browser using DataLab