Skip to content

Commit

Permalink
fixed shinyapp's merge_input_files() behaviour of adding NA to entire…
Browse files Browse the repository at this point in the history
… columns
  • Loading branch information
gavieira committed Nov 11, 2023
1 parent 0e0932f commit 27e7153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/biblioverApp/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ server <- function(input, output, session) {
)
df[] <- lapply(df, function(col) { #Cleaning data (one column at a time)
col <- trimws(as.character(col)) # Removing leading and trailing whitespaces
if (any(col == "" | is.na(col))) col <- NA # Convert empty or null values to NA
col[which(col == "" | is.null(col))] <- NA # Convert empty or null values to NA
return(col)
})
df <- df[!duplicated(df), ] # Removing duplicate records
Expand Down

0 comments on commit 27e7153

Please sign in to comment.