minor changes

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-02-27 12:43:54 +01:00
commit a7a416fe1d
9 changed files with 34 additions and 21 deletions

View file

@ -1,5 +1,9 @@
mtcars |> dplyr::mutate(record_id=seq_len(n()),
mtcars_redcap <- mtcars |> dplyr::mutate(record_id=seq_len(dplyr::n()),
name=rownames(mtcars)
) |>
dplyr::select(record_id,dplyr::everything()) |>
dplyr::select(record_id,dplyr::everything())
mtcars_redcap |>
write.csv(here::here("data/mtcars_redcap.csv"),row.names = FALSE)
usethis::use_data(mtcars_redcap, overwrite = TRUE)