Data Formatting

I wanted to work on an datatable in R. The Datatable ist a csv data. When I open it in R it does not look like an organized table. Instead there are very little spaces inbetween the numbers an coding does not work with this datatable. I added an image to show the way it looks like. If anybody can help, I would be very thankful.

A csv file is just a text file with "cells" separated by commas.

To read it in as data you want read.csv() or, if using tidyverse, read_csv(). You can also use the Import Dataset dropdown in the Environment tab in RStudio.

I assume that there is an issue with the quotation marks in the header too.

There are quote arguments in read.csv() and read.table()` that might help.

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.