cherrypi / Science-Fair_2019

Vernal Pond graphing and data, as well as data analysis.
1 stars 0 forks source link

R thinks your date column has "row names" #7

Closed VCF closed 5 years ago

VCF commented 5 years ago

R can name both rows and columns. It likes naming things. It has decided to take your first column, which are your dates, and use them as row names. This is unfortunate, since it moves the dates to somewhere inconvenient, and "shifts" all your data "to the left".

Look at ?read.table and read about the row.names parameter to find out how to turn off automatic row naming. There's a problem with your header (or maybe a problem with your data?) that's causing this to happen.

You may be beginning to see that a lot of R programming is frantically trying to stop it from "helping" you. At work we actually have guidelines to turn off a lot of these "features" since they cause a lot of headache.

VCF commented 5 years ago

Good! 69178bc has fixed the issue, dates are now in the right place.