Skip to content

Commit

Permalink
oops typo in unique strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
gergness committed May 27, 2020
1 parent 3a60f1c commit 8bf632c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/add-subvariable.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ uniqueMapNames <- function(deriv, num_needed) {
stop("Unexpected derivation type")
}

out <- make.unique(existing, as.character(length(existing) + seq_len(num_needed)))
out <- make.unique(c(existing, as.character(length(existing) + seq_len(num_needed))))
out <- out[-seq_along(existing)]
out
}

1 comment on commit 8bf632c

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/add-subvariable.R:96:1: style: Lines should not be more than 100 characters.

new_deriv <- addToSelectCatDerivation(old_deriv, subvariable, new_map_ids, categories(variable))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please sign in to comment.