mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-22 13:30:23 +01:00
6 lines
241 B
R
6 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)
|