Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
istallworthy committed Sep 28, 2023
1 parent a8f71bb commit 76857e2
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 76857e2

Please sign in to comment.