Created
February 22, 2019 18:02
-
-
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.
This file contains 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
#!/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