Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
RayStick committed Dec 17, 2024
1 parent 2857e81 commit 59f04f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/map_metadata_convert.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ map_metadata_convert <- function(output_csv, output_dir) {
if (grepl(",", output$domain_code[row])) { # Domain_code for this row is a list
domain_code_list <- output$domain_code[row] # extract Domain_code list
domain_code_list_split <- unlist(strsplit(domain_code_list, ",")) # split the list
for (code in seq_len(domain_code_list_split)) { # for every domain code in list, create a new row
for (code in seq_len(length(domain_code_list_split))) { # for every domain code in list, create a new row
row_to_copy <- output[row, ] # extract row
row_to_copy$domain_code <- domain_code_list_split[code] # change domain code to single
output_long[nrow(output_long) + 1, ] <- row_to_copy # copy altered row
Expand Down

0 comments on commit 59f04f0

Please sign in to comment.