diff --git a/DESCRIPTION b/DESCRIPTION index 2002425..f0dfc33 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -42,4 +42,4 @@ VignetteBuilder: knitr Encoding: UTF-8 LazyData: true -RoxygenNote: 7.1.2 +RoxygenNote: 7.2.3 diff --git a/NEWS.md b/NEWS.md index 8c469b8..12752c0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/R/get_histogramscale.R b/R/get_histogramscale.R index fef098f..6f46206 100644 --- a/R/get_histogramscale.R +++ b/R/get_histogramscale.R @@ -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)) { diff --git a/man/get.histogramscale.Rd b/man/get.histogramscale.Rd index 5894384..d52fbe8 100644 --- a/man/get.histogramscale.Rd +++ b/man/get.histogramscale.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/get.histogramscale.R +% Please edit documentation in R/get_histogramscale.R \name{get.histogramscale} \alias{get.histogramscale} \title{Scaling Factor for Combined Histogramm Plots}