cluster_regions: CLUSTERING FUNCTION

View source: R/cluster_regions.R

cluster_regionsR Documentation

CLUSTERING FUNCTION

Description

Cluster a data frame with two first columns indicating long and lat coordinates

Usage

cluster_regions(
  x,
  plot = FALSE,
  n.clus = NULL,
  nstart = 25,
  K.max = NULL,
  B = 100,
  res = NULL
)

Arguments

x

data frame to be clustered

plot

Boolean whether to plot the cluster as map

n.clus

Number of clusters to perform. If null it will be computed

nstart

burn up start value

K.max

maximum number of clusters to estimate

B

number of runs

res

Resolution of the greographical grid

Details

Returns an error if filename does not exist.

Value

Clustered data frame.

Examples

## Not run: 
accident_2015 <- fars_read("Project/data/accident_2015.csv.bz2")

## End(Not run)


agarciaEE/NINA documentation built on Jan. 9, 2025, 10:09 a.m.