join_cluster: Join cluster information

View source: R/cluster.R

join_clusterR Documentation

Join cluster information

Description

Join cluster information

Usage

join_cluster(data, var_names, k)

Arguments

data

tibble with modeling data (see get_modeling_data_*)

var_names

character vector with variable names used to create the cluster (by default Shots, ShotsOnTarget, Fouls, Corners, YellowCard and RedCard wil be used to create the cluster as these columns cannot be used to predict)

k

number of clusters

Value

tibble with Cluster and ClusterOpponent joined onto data input


kristian-bak/football documentation built on Oct. 8, 2022, 2:11 p.m.