Learn R Programming

rgeoda (version 0.1.0)

quantile_breaks: Quantile Breaks

Description

Quantile breaks data into groups that each have the same number of observations

Usage

quantile_breaks(k, df)

Value

A vector of numeric values of computed breaks

Arguments

k

A numeric value indicates how many breaks

df

A data frame with selected variable. E.g. guerry["Crm_prs"]

Examples

Run this code
library(sf)
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
quantile_breaks(k=5, guerry['Crm_prs'])

Run the code above in your browser using DataLab