Skip to content

Instantly share code, notes, and snippets.

@andrewbtran
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save andrewbtran/e5e6d1c9e194fad2c6a3 to your computer and use it in GitHub Desktop.

Select an option

Save andrewbtran/e5e6d1c9e194fad2c6a3 to your computer and use it in GitHub Desktop.
read in CSV file, assign it to a variable
# 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