Get all output as data frame #102
Replies: 2 comments 4 replies
-
|
The unique identifier for each respondent is the data <- sd_get_data(db, refresh_interval = 5) # Refreshes the data every 5 seconds
# Do something with the data, like make a summary plot
output$plot <- renderPlot({
data() |> # Note the () here, as this is a reactive expression
filter(session_id == session$token) |>
# More code to make a plot
})Since If you didn't set a |
Beta Was this translation helpful? Give feedback.
-
|
We changed how the local data works. It now saves as a file called |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
It seems I can get item-level responses from shiny using
sd_output()and I can pull all the data from the database usingsd_get_data(). However, is there a convenient way to access just the current session's data as a data frame (i.e., the current user's row fromsd_get_data())? Perhaps I can tap into whatsd_output()is drawing from or modify the database query forsd_get_data()? My use case is that I want to collect data from a participant and then, on the final page, make a report describing their scores.Beta Was this translation helpful? Give feedback.
All reactions