Skip to content

Instantly share code, notes, and snippets.

@stephenwilliams22
Created February 22, 2019 18:02
Show Gist options
  • Save stephenwilliams22/4e4ef396f2ed2a12e7878bf6b674ffa6 to your computer and use it in GitHub Desktop.
Save stephenwilliams22/4e4ef396f2ed2a12e7878bf6b674ffa6 to your computer and use it in GitHub Desktop.
Makes wide CSVs that can be hard to read on a normal screen long.
#!/mnt/opt/R/R-3.5.1/bin/Rscript
#set the library path
.libPaths(new = "/mnt/home/stephen/R/x86_64-pc-linux-gnu-library/3.5")
'Usage:
pretty_csv [-c <csv>]
Options:
-c --csv
-h --help show help menu
' -> doc
library(docopt)
opts <- docopt(doc)
a <- read.csv(opts$c, header = T)
a <- t(a)
print(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment