Learn R Programming

groupedHyperframe (version 0.3.5)

kmeans_etc: Pseudo S3 Methods based on kmeans

Description

Pseudo S3 Methods based on kmeans

Usage

kmeans.ppp(
  x,
  formula,
  centers = as.integer(ceiling((x[["n"]]/clusterSize))),
  clusterSize,
  ...
)

kmeans.ppplist(x, ...)

kmeans.hyperframe(x, ...)

Value

The function kmeans.ppp() returns an object of class 'pppkm', which inherits from ppp.object.

The function kmeans.ppplist() returns an object of class 'pppkmlist', which inherits from 'ppplist'.

Arguments

x

see Usage

formula

formula

centers

integer scalar, number of clusters \(k\), see function kmeans

clusterSize

integer scalar, number of points per cluster

...

additional parameters of the function kmeans

References

https://tingtingzhan.quarto.pub/groupedhyperframe/topics.html