I forgot to mention this earlier.
Don't put any characters other than numbers, letters, periods, or underscores in your variable (vector) names. If you do, R will automatically convert them to periods.
For example. If your variable name in the .csv file is Number of Days Without Pooping, after you read in the file, it will change the variable name to Number.of.Days.Without.Pooping.
I also highly recommend only using lower case letters for everything. It makes your life easier. If one variable is called FirstName, another is called firstname, and a third is called Firstname, R will see all of these as different, because, after all -- it is case sensitive.
Did I mention R is case sensitive?

No comments:
Post a Comment