Open ben-williams opened 5 years ago
Thanks @ben-williams. I'm still in the process of making the dataset completely tidyverse dependent and equivalent to what it was before. I haven't gotten to the lines yet that you reference. The variable names are not yet finalized and that will only be done once I've completed updating the script. The names are what they are (e.g., "j_JTP) so that I can compare similarly name variables in the SEM code (e.g., "j"). Thanks for the function to sum. I was just playing with something similar yesterday and automatically pasting column names; unfortunately using paste0() in mutate causes an error because of a special character issue. So I'll use your function or something similar.
https://github.com/commfish/coho_known_age_study/blob/cd4195797bcd2ec24ba3940d889a8d5be0eaa528/code/LDA_JTP_DataImport.R#L160
j
orA
etc. as they are not terribly informativeInstead of using massively long sums possibly use something such as:
Or some variant thereof?