newPuuids: Search for new PUUID

View source: R/newPuuids.R

newPuuidsR Documentation

Search for new PUUID

Description

Check if there are any new PUUID from several game modes (those not against bot) and return a vector of PUUID that are not included "Constructed","SeasonalTournamentLobby","Bo3ChallengeLobby","StandardGauntletLobby","LastCallQualifierGauntletLobby"

Usage

newPuuids(account_tbl, match_tbl)

Arguments

account_tbl

a tidy data frame, containing a column called puuid

match_tbl

a tidy data frame, containing column(s) containng puuid and one called game_mode

Value

a vector of character, containing the puuid in the matches dataframe not already present in the account data frame

Examples

ex_account = data.frame(
	gameName = c("Pippo","Pluto"),
	puuid = c("defg","wxyz")
)

ex_match = data.frame(
	game_mode = c("Constructed","Constructed","AI"),
	puuid_1 = c("abcd","defg","mnop"),
	puuid_2 = c("defg","hijk","bot1"),
	puuid_3 = c("wxyz",NA,NA),
	puuid_4 = c(NA,NA,NA)
)
newPuuids(account_tbl = ex_account, match_tbl = ex_match)

MaouLegna/lorR documentation built on Nov. 21, 2022, 8:58 a.m.