Skip to content

Instantly share code, notes, and snippets.

@DexGroves
Created March 19, 2016 11:55
Show Gist options
  • Save DexGroves/10fb87b61c44eddd4d41 to your computer and use it in GitHub Desktop.
Save DexGroves/10fb87b61c44eddd4d41 to your computer and use it in GitHub Desktop.
library("data.table")
fread("a,b\n1,T\n1,T\n1,T\n1,T\n1,T\n2,C\n")
# a b
# 1: 1 1
# 2: 1 1
# 3: 1 1
# 4: 1 1
# 5: 1 1
# 6: 2 C
fread("a,b\n1,T\n1,T\n1,T\n1,T\n1,T\n2,C\n",
colClasses = list(character = c(2)))
# a b
# 1: 1 T
# 2: 1 T
# 3: 1 T
# 4: 1 T
# 5: 1 T
# 6: 2 C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment