Last active
August 29, 2015 14:22
-
-
Save andrewbtran/e5e6d1c9e194fad2c6a3 to your computer and use it in GitHub Desktop.
read in CSV file, assign it to a variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # read in CSV file, assign it to a variable | |
| earnings <- read.csv("Employee_Earnings_Report_2014.csv", stringsAsFactors=FALSE) | |
| # Why the stringsAsFactors=FALSE? Because you're telling to interpret the text in the spreadsheet as a String, not a Factor | |
| # Why is R obsessed with Factors? Blame statisticians. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment