cluster_ids: Clusters consecutive ids

View source: R/cluster.R

cluster_idsR Documentation

Clusters consecutive ids

Description

Cluster timestamped rows into clusters based on Badge.ID column sequence. Simplest case is to create a cluster while badge.IDs of consecutive rows are the same. If Badge.ID from row n to row n+1 changes, the n+1 row falls into new cluster.

Usage

cluster_ids(x, clusterOffSet = 1)

## S3 method for class 'smtrx'
cluster_ids(x, clusterOffSet = 1)

Arguments

x

Dataframe with Badge.ID column

clusterOffSet

Numeric start of cluster ID number

Value

Modified dataframe with additional column "clusterIDSeq".

Methods (by class)

  • smtrx: Cluster badge IDs

See Also

cluster_ts


jmueller17/sociometrics documentation built on March 20, 2024, 1:04 a.m.