Skip to content

Instantly share code, notes, and snippets.

View jschaub30's full-sized avatar

Jeremy Schaub jschaub30

View GitHub Profile
@jschaub30
jschaub30 / gist:4f347c2be2145cc84157
Created April 8, 2015 19:15
R script to split columns from csv file
#!/usr/bin/Rscript
# Input: CSV file with headers
# x,y,z
# 1,2,3
# 4,5,6
# Output: CSV file
# Usage:
# ./split-columns.R [IN_CSV] [COLUMN NAMES]
# Example: ./split-columns.R in.csv x z