Skip to content

Commit

Permalink
removed +1 from lseq length_out
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardJActon committed May 31, 2021
1 parent 26936d9 commit 55aa288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/universal_colour_scaler.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ range_check <- function(min, max, var) {
#' @param to end
#' @param length_out number of increments
lseq <- function(from = 1, to = 100000, length_out = 6) {
length_out <- length_out + 1
# length_out <- length_out + 1
dirm <- if(length_out%%2 == 1) {ceiling} else {floor}
dirp <- if(length_out%%2 == 0) {ceiling} else {floor}
if(from < 0) {
Expand Down

0 comments on commit 55aa288

Please sign in to comment.