Skip to content

Commit

Permalink
Merge pull request #103 from istallworthy/feedback
Browse files Browse the repository at this point in the history
typos
  • Loading branch information
istallworthy authored Sep 28, 2023
2 parents c801769 + 76857e2 commit 3073a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/assessBalance.R
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ assessBalance <- function(home_dir, data, exposure, exposure_time_pts, outcome,
if (!is.null(weights) && (!is.list(weights) || is.data.frame(weights))){
stop("Please supply a list of weights output from the createWeights function.", call. = FALSE)
}
else if(is.lis(weights) && !is.data.frame(weights)){
else if(is.list(weights) && !is.data.frame(weights)){
if (sum(sapply(weights, function(x) {
inherits(x, "weightitMSM")})) != length(weights)){
stop("Please supply a list of weights output from the createWeights function.", call. = FALSE)
Expand Down
2 changes: 1 addition & 1 deletion R/trimWeights.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ trimWeights <- function(home_dir, exposure, outcome, weights, quantile = 0.95, v
else if (!is.list(weights) || is.data.frame(weights)){
stop("Please supply a list of weights output from the createWeights function.", call. = FALSE)
}
else if(is.lis(weights) && !is.data.frame(weights)){
else if(is.list(weights) && !is.data.frame(weights)){
if (sum(sapply(weights, function(x) {
inherits(x, "weightitMSM")})) != length(weights)){
stop("Please supply a list of weights output from the createWeights function.", call. = FALSE)
Expand Down

0 comments on commit 3073a44

Please sign in to comment.