Necessary step for computing the total score

gds_alter_values(
  data,
  values = gds_values(),
  reverse = FALSE,
  cols = matches("01$|05$|07$|09$|15$|19$|21$|27$|29$|30$")
)

Arguments

data

data.frame with GDS data in it

values

named vector of 2 providing the coding for Yes and No answers c(Yes = 1, No = 2)

reverse

reverse logic

cols

GDS data columns

See also

Other gds_functions: gds_binary(), gds_compute_sum(), gds_values()