Skip to content

transaction_counter when leagueHistory = TRUE results in factor level [3] duplication error.  #47

@KevinLeone

Description

@KevinLeone

transaction_counter(leagueHistory=TRUE) results in following error:
Error in `levels<-`(`*tmp*`, value = as.character(levels)) : factor level [3] is duplicated

traceback as follows:

  1. out_trans(teams = dat$teams[[i]], y = dat$seasonId[i], w = dat$scoringPeriodId[i])
  2. data.frame(seasonId = y, scoringPeriodId = w, teamId = teams$id,
  3. abbrev = factor(teams$abbrev, levels = teams$abbrev), waiverRank = teams$waiverRank,
    teams$transactionCounter)
  4. factor(teams$abbrev, levels = teams$abbrev)

Went to debug, but out_trans has no supported rdocumentation/cannot be loaded from installation. Would gladly take a bug fix to just pull each seasonId individually.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions