read.csv function in R

I have my data in a csv file. When I use the read.csv function to create a variable, apparently R assumes the first column like labels but my data is organized differently. In the csv file is the first row with the labels and each column contains the corresponding numbers. When I run the read.csv function R introduces a new cell with the "row.names" label and displaces my original labels. I have consulted numerous tutorials and websites, including AI, but I have not been able to solve it. Can anyone give me their opinion on this? Has the same thing happened to anyone?

You might want to post a little bit of your csv file by doing a copy and paste and show us your R code.

This topic was automatically closed 42 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.