lhartigan15 / LLO8180

LLO8180 - Repository for Applied Statistics
https://lhartigan15.github.io/LLO8180/
1 stars 1 forks source link

Better documentation for Macs #1

Open danaltieri opened 3 years ago

danaltieri commented 3 years ago

Folks seem to have a bit of trouble understanding the difference in directory structure definition for use in the read.table syntax with the Mac OS and many times the sample information is formatted like: read.table("C:\yourdirectory\sub\files", header=t, sep-"\t")

For Macs it is more like: "/Users/My_MAC/Desktop/ME/Vanderbilt/LLO8180 Applied Statistics/RFiles/testing1.txt", sep-"\t")

lhartigan15 commented 3 years ago

If you're unsure as to how to copy/paste a file path, here are some good resources:

Also, just a note in Daniel's code above -- it needs to be sep="\t" at the end of the code (you need =, not a -). NOTE - when copying the path from a PC and pasting it in, you NEED to change the order of the slashes. It will default to \ and they need to be like this: / (except for the last one with the \t; that one stays that way).