This is something that I'm trying to do with R, dplyr, and DuckDB, but it is not working…
- User
This is something that I'm trying to do with R, dplyr, and DuckDB, but it is not working well:
duckdb_table |> group_by(hcontract, measure_code) |>
Add a random number using DuckDB's random() function
mutate(random_val = random()) |> arrange(random_val) |> ungroup() |> ...
My error happens at the random() function in the mutate. Is there a way to replace the code in the mutate with SQL?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.