r check is level is contaiend in factor levels code example Example: show factor levels in r #in R levels(x)