For starters, I’m using R for the Google Data Analyst certification Capstone project. I’m using the Cyclistic dataset. I’m new to R.
I’m using the Unique() function to find the unique variables in the columns, but I get the error message saying the object is not found. How do I fix this?
We don't really have enough info to help you out. Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.
If you've never heard of a reprex before, you might want to start by reading this FAQ:
Well, that is not a reproducible example since you are not including sample data (I strongly recommend you to read the reprex guide) but it is enough to see where your problem is.
You are not referencing the variable correctly, columns do not exist as stand-alone objects, they are sub-elements of a data frame, so you have to reference them in the context of a data frame, see this example using a built-in data set.