Commit b5b2d973 authored by Chris Holbrook's avatar Chris Holbrook

tweak formatting for consistency and readability (indent, spacing)

parent 62417c43
......@@ -163,8 +163,8 @@ query_worms_common <- function(commonName) {
# Convert the sex from 'F' and 'M' to 'FEMALE' and 'MALE'
convert_sex <- function(sex) {
if (to_upper(sex) %in% c("F", "FEMALE")) return("FEMALE")
if (to_upper(sex) %in% c("M", "MALE")) return("MALE")
if (toupper(sex) %in% c("F", "FEMALE")) return("FEMALE")
if (toupper(sex) %in% c("M", "MALE")) return("MALE")
return(sex)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment