Skip to content

Commit

Permalink
correct linted lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestguevarra committed Apr 14, 2024
1 parent e743b10 commit 161b579
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 58 deletions.
99 changes: 49 additions & 50 deletions R/01-opIndicators.R

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion R/02-merge.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ merge_estimates <- function(x, y, prop2percent = FALSE) {
estimates <- tibble::tibble(estimates)

## Return
return(estimates)
estimates
}
2 changes: 1 addition & 1 deletion R/03-fullTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ fullTable <- function(x, values) {
}
tab[is.na(tab)] <- 0
names(tab) <- as.character(values)
return(tab)
tab
}
2 changes: 1 addition & 1 deletion R/04-get_variables.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ get_variables <- function(indicators = c("demo", "food", "hunger", "adl",
vars <- c(vars, "chew", "food", "NFRI")
}
##
return(vars)
vars
}
2 changes: 1 addition & 1 deletion R/05-classicBoot.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ estimate_classic <- function(x,
classicEstimates <- tibble::tibble(classicEstimates)

## Return results
return(classicEstimates)
classicEstimates
}
2 changes: 1 addition & 1 deletion R/06-probitBoot.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ estimate_probit <- function(x,
probitEstimates <- tibble::tibble(probitEstimates)

## Return probitEstimates
return(probitEstimates)
probitEstimates
}
4 changes: 2 additions & 2 deletions R/07-probit_muac.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ probit_gam <- function(x, params, threshold = 210) {
x <- stats::pnorm(q = threshold, mean = m, sd = s)

## Return x
return(x)
x
}


Expand Down Expand Up @@ -102,5 +102,5 @@ probit_sam <- function(x, params, threshold = 185) {
x <- stats::pnorm(q = threshold, mean = m, sd = s)

## Return x
return(x)
x
}
2 changes: 1 addition & 1 deletion R/08-estimate_op.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ estimate_op_all <- function(x, w,
resultsDF <- tibble::tibble(resultsDF)

## Return resultsDF
return(resultsDF)
resultsDF
}

0 comments on commit 161b579

Please sign in to comment.