Skip to content

Commit

Permalink
add back p-value
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 28, 2023
1 parent de414a6 commit 089f782
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion R/pmx-reader.R
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,15 @@ read_mlx_par_est <- function(path, x, ...) {
v
}, character(1), USE.NAMES=TRUE)
names(xx) <- names
xx <- xx[,c("PARAM", "VALUE", "SE", "RSE")]

vals <- intersect(c("PARAM", "VALUE", "SE", "RSE", "PVALUE"), names(xx))
ensure <- setdiff(c("PARAM", "VALUE"), vals)
if (length(ensure) > 0) {
stop("cannot determine the following column name types: '",
paste(ensure, collapse="', '"), "'",
call.=FALSE)
}
xx <- xx[,vals]
xx <- setDT(xx)
xx
}
Expand Down

0 comments on commit 089f782

Please sign in to comment.