Learn R Programming

rgeoda (version 0.0.6)

stddev_breaks: Standard Deviation Breaks

Description

Standard deviation breaks first transforms data to standard deviation units (mean=0, stddev=1), and then divide the range of values into 6 groups.

Usage

stddev_breaks(data)

Arguments

data

A vector of numeric values

Value

A vector of numeric values of computed breaks

Examples

Run this code
# NOT RUN {
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
guerry_df <- as.data.frame(guerry) # use as data.frame
crm_prs <- guerry_df['Crm_prs'][,1] # get values of variable "crm_prs"
stddev_breaks(data=crm_prs)
# }

Run the code above in your browser using DataLab