mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2025-09-12 18:49:39 +02:00
5 lines
241 B
R
5 lines
241 B
R
mtcars |> dplyr::mutate(record_id=seq_len(n()),
|
|
name=rownames(mtcars)
|
|
) |>
|
|
dplyr::select(record_id,dplyr::everything()) |>
|
|
write.csv(here::here("data/mtcars_redcap.csv"),row.names = FALSE)
|