mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-22 13:30:23 +01:00
trial and error
This commit is contained in:
parent
c86ae9a364
commit
6fb55fd2cc
@ -24,7 +24,7 @@ server <- function(input, output, session) {
|
|||||||
out <- read_input(input$ds$datapath)
|
out <- read_input(input$ds$datapath)
|
||||||
|
|
||||||
# Saves labels to reapply later
|
# Saves labels to reapply later
|
||||||
labels <- lapply(out, get_attr)
|
# labels <- lapply(out, get_attr)
|
||||||
|
|
||||||
out <- out |>
|
out <- out |>
|
||||||
## Parses data with readr functions
|
## Parses data with readr functions
|
||||||
@ -44,10 +44,10 @@ server <- function(input, output, session) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Old attributes are appended
|
# Old attributes are appended
|
||||||
out <- purrr::imap(out,\(.x,.i){
|
# out <- purrr::imap(out,\(.x,.i){
|
||||||
set_attr(.x,labels[[.i]])
|
# set_attr(.x,labels[[.i]])
|
||||||
}) |>
|
# }) |>
|
||||||
dplyr::bind_cols()
|
# dplyr::bind_cols()
|
||||||
|
|
||||||
out
|
out
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user