Skip to content

Commit

Permalink
makeDist work with 1 obs
Browse files Browse the repository at this point in the history
  • Loading branch information
bcallaway11 committed Jul 12, 2024
1 parent 67133ed commit 6e5143d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/BMisc.R
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ blockBootSample <- function(data, idname) {
makeDist <- function(x, Fx, sorted = FALSE, rearrange = FALSE, force01 = FALSE, method = "constant") {
if (!sorted) {
tmat <- cbind(x, Fx)
tmat <- tmat[order(x), ]
tmat <- tmat[order(x), , drop=FALSE]
x <- tmat[, 1]
Fx <- tmat[, 2]
}
Expand Down

0 comments on commit 6e5143d

Please sign in to comment.