Skip to content

Commit

Permalink
Fix partial argument name
Browse files Browse the repository at this point in the history
Fixes #348.
  • Loading branch information
ethanbsmith committed Nov 21, 2021
1 parent b33f869 commit 276b3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/TA.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ shading <- function(x)
warning('need logical object')
runs <- rle(as.logical(x))
list(
start=cumsum(runs$length)[which(runs$values)] - runs$length[which(runs$values)]+1,
start=cumsum(runs$lengths)[which(runs$values)] - runs$lengths[which(runs$values)]+1,
end=cumsum(runs$lengths)[which(runs$values)]
)
}
Expand Down

0 comments on commit 276b3ee

Please sign in to comment.