| test_column_contents | R Documentation | 
Function to check the format of column contents
test_column_contents(data, column, code, nrcode = NA)
| data | a data frame | 
| column | column name for gender | 
| code | how column values are coded | 
| nrcode | non response code corresponding to gender column | 
0, if success error if failure
test_column_contents(data.frame(
  "sex" = c("m", "f"),
  "Name" = c("John", "Dora")
), "sex", c("m", "f"), 999)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.