Skip to content

Commit

Permalink
Merge pull request #685 from saviranadela/FPAS_Silva_2022
Browse files Browse the repository at this point in the history
FPAS_Silva_2022
  • Loading branch information
KingArthur0205 authored Nov 5, 2024
2 parents cfa70ee + 0bc8ef6 commit fcfb20b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions data/FPAS_Silva_2022.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
library(dplyr)
library(tidyr)

df <- read.csv("DATA_FPAS_2022.csv")

df <- df %>%
select(record_id, fpas_1:fpas_18) %>%
rename(id = record_id)

df <- df %>%
pivot_longer(fpas_1:fpas_18,
names_to = "item",
values_to = "resp")

write.csv(df, "FPAS_Silva_2022.csv", row.names=FALSE)

0 comments on commit fcfb20b

Please sign in to comment.