Skip to content

Commit

Permalink
switch to inherits
Browse files Browse the repository at this point in the history
  • Loading branch information
lsteinmann committed Nov 8, 2023
1 parent 982ea9a commit 304d4d0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ VignetteBuilder:
knitr
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.2
RoxygenNote: 7.2.3
1 change: 0 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# datplot 1.1.0
* add an option to directly calculate the cumulative weight (which only works
if it is used with a stepsize of 1, because otherwise the cumulative weight
Expand Down
2 changes: 1 addition & 1 deletion R/get_histogramscale.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ get.histogramscale <- function(DAT_df_steps, binwidth = "stepsize") {
stop("'binwidth == 'stepsize'' cannot be used with a number, supply either a dataframe as returned by datsteps or a numerical binwidth")
}
} else {
if (class(DAT_df_steps) == "data.frame") {
if (inherits(DAT_df_steps, "data.frame")) {
nrow <- nrow(DAT_df_steps)
}
if (is.atomic(DAT_df_steps)) {
Expand Down
2 changes: 1 addition & 1 deletion man/get.histogramscale.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 304d4d0

Please sign in to comment.