Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Aug 22, 2024
1 parent 8e476a5 commit 52ec42f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/p_direction.R
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ p_direction.get_predicted <- function(x,
#' @export
p_direction.parameters_model <- function(x, ...) {
out <- data.frame(
"Parameter" = x$Parameter,
"pd" = p_to_pd(p = x[["p"]]),
Parameter = x$Parameter,
pd = p_to_pd(p = x[["p"]]),
row.names = NULL,
stringsAsFactors = FALSE
)
Expand Down Expand Up @@ -523,9 +523,9 @@ p_direction.parameters_model <- function(x, ...) {
#' @export
as.numeric.p_direction <- function(x, ...) {
if (inherits(x, "data.frame")) {
return(as.numeric(as.vector(x$pd)))
as.numeric(as.vector(x$pd))
} else {
return(as.vector(x))
as.vector(x)
}
}

Expand Down

0 comments on commit 52ec42f

Please sign in to comment.