unable to resolve error -

Welcome to R!

First thing is you may want to learn how to ask a programming question in a community.

Here's a quick run through.

Please come back after you have improved your question.