R studio can't find object

Hi, I have a dataset in excel. I copied and pasted it into edit pad and then saved and loaded it into R ( import from text base). Now Im trying to run an ordinal regression with the function polr, but rstudio doesn't recognize the object in the dataset:


Any idea how to get it right?

From your screenshot, You did not import correctly the file. The column names are currently V1, ... V10 and not the one you expect (Participant, ... Q5).
You need to import your file using the correct function with the option header from first line activated. You can use the import Dataset button in RStudio IDE to help you.
You can read from Excel file or from text file as needed.

Also, please follow the guideline in the future for your questions and provide a reprex. Thanks.

Your column headers have been read in as the first row of data. The column names are currently V1, V2, etc.

It would be best for you to load the data programmatically, rather than manually, so you can easily control this.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.