mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-10-30 03:21:53 +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)
|