Skip to content

Commit

Permalink
Style code (GHA)
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleBeannie committed Jul 26, 2023
1 parent 15f6f76 commit 5d137e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/prepare_ae_specific.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ prepare_ae_specific <- function(meta,
# Define SOC section
if ("soc" %in% components && nrow(obs) > 0) {
soc_n <- metalite::n_subject(obs[[obs_id]], obs[[obs_group]], obs[[par_soc]],
na = "NULL", use_na = "always")
na = "NULL", use_na = "always"
)

soc_n[[par_soc]] <- soc_n$name
soc_n[[par_var]] <- soc_n$name
Expand All @@ -163,7 +164,8 @@ prepare_ae_specific <- function(meta,
u_soc <- unique(obs[order(obs[[par_soc]]), c(par_soc, par_var)])

par_n <- metalite::n_subject(obs[[obs_id]], obs[[obs_group]], obs[[par_var]],
na = "NULL", use_na = "always")
na = "NULL", use_na = "always"
)

par_n[[par_var]] <- par_n$name
par_n <- merge(u_soc, par_n, all.y = TRUE)
Expand Down

0 comments on commit 5d137e8

Please sign in to comment.