caret is not seeing my data

See the FAQ: How to do a minimal reproducible example reprex for beginners, because it's seldom possible to make out what's happening with a screenshot. It this one says what I think it does, you need to check that your variable names as "legal", with no embedded spaces, no non-printing characters, emojis, initial numerals or punctuation.