mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 07:51:57 +02:00
(v0.9.0.9021) inheritance fix
This commit is contained in:
2
R/disk.R
2
R/disk.R
@ -81,7 +81,7 @@ as.disk <- function(x, na.rm = FALSE) {
|
||||
#' @export
|
||||
#' @importFrom dplyr %>%
|
||||
is.disk <- function(x) {
|
||||
class(x) %>% identical(c("disk", "integer"))
|
||||
inherits(x, c("disk", "integer"))
|
||||
}
|
||||
|
||||
#' @exportMethod print.disk
|
||||
|
2
R/mic.R
2
R/mic.R
@ -130,7 +130,7 @@ as.mic <- function(x, na.rm = FALSE) {
|
||||
#' @export
|
||||
#' @importFrom dplyr %>%
|
||||
is.mic <- function(x) {
|
||||
class(x) %>% identical(c("mic", "ordered", "factor"))
|
||||
inherits(x, c("mic", "factor"))
|
||||
}
|
||||
|
||||
#' @exportMethod as.double.mic
|
||||
|
Reference in New Issue
Block a user