I am unable to Specify kinship2 sex in R code

I am trying to use the kinship2 package but I don.t want to use the male and female sex since this plant can be both so as in the doc:

    sex Gender of individual noted in ‘id’. Either character ("male","female","unknown","terminated")
or numeric (1="male", 2="female", 3="unknown", 4="terminated") data is allowed. For character data the string may be truncated, and of arbitrary case.

I am trying to use 3 as unknown

but when i run this code i get the error below, any ideas?
ped1 <- with(flaxData, pedigree(id, father, mother, sex))
Error in pedigree(id, father, mother, sex) : Invalid values for 'sex'

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.