Skip to content

Commit

Permalink
shinyapp's get_merged_db_list() now converts everything to character …
Browse files Browse the repository at this point in the history
…before displaying table
  • Loading branch information
gavieira committed Nov 11, 2023
1 parent e641647 commit 0e0932f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inst/biblioverApp/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ server <- function(input, output, session) {

# Merge files into a named list of dataframes
get_merged_db_list <- function(db_list) {
db_list <- lapply(db_list, function(df) dplyr::mutate_all(df, as.character))
df <- dplyr::bind_rows(db_list, .id = 'SET_NAME') #Joining all info in a single table, while also adding a new column (SET_NAME) with the name of the set that record comes from
columns_to_front <- c("SET_NAME", "UUID") # Specifying the names of the columns to be moved to the front
df <- df[c(columns_to_front, setdiff(names(df), columns_to_front))] # Rearrange columns
Expand Down

0 comments on commit 0e0932f

Please sign in to comment.