Please read about [how to make a great R reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
) and update your question accordingly. Include a sample of your data by pasting the output of `dput(<your data frame>)` into your post or `dput(head(<your data frame>))` if you have a large data frame. If you cannot post your data, then post code for creating representative data. Also include code you have tried, any relevant errors, and expected output. [Do not post images of code and/or data](https://meta.stackoverflow.com/a/285557/6382434
).