how do i see all the column names in my dataset using colnames function without getting an error message?

The challenge i am facing here is that the name i used to save my dataframe cannot be found in the environment thereby making it difficult to see the column names of my dataset. this is the code am trying to run:

colnames(202308-cyclistic_trip) Error in is.data.frame(x) : object 'cyclistic_trip' not found

This what i tried:

colnames(202308-cyclistic_trip) Error in is.data.frame(x) : object 'cyclistic_trip' not found

Upvotes: 0

Views: 52

Answers (0)

Related Questions