"sex" or "Sex" and nothing else. If coded with integer, the number 1 is recognized as male and numbers, 0, 2, or 6 are assumed to be female. Any other integer will throw an error. If character, if the first letter is "f", then we assume female, and if the first letter is "m" we assume male. Case does not matter. Anything else will throw an error. This function allows for just a little flexibility.detectSex(Dat, sexColumn = "Sex")data.frame containing a column called Sex, or codesex."Sex" assumed."f" or "m"