Skip to content

Commit

Permalink
Use empty strings instead of NA for no links
Browse files Browse the repository at this point in the history
  • Loading branch information
PietrH committed Aug 1, 2023
1 parent 1e1896f commit 0b1f5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/csv_to_markdown_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ csv_to_markdown_table <- function(csv_path) {
readr::read_csv(csv_path, show_col_types = FALSE) %>%
dplyr::mutate(
Wiki_Link = dplyr::case_when(
is.na(Wiki_Link) ~ NA,
is.na(Wiki_Link) ~ "",
.default = format_link("Wikipedia", Wiki_Link)
),
Reference_Link = dplyr::case_when(
is.na(Reference_Link) ~ NA,
is.na(Reference_Link) ~ "",
.default = format_link("Reference", Reference_Link)
)
) %>%
Expand Down

0 comments on commit 0b1f5f1

Please sign in to comment.