
18 Data Analysis and Statistics for Geography, Environmental Science, and Engineering
Make sure you File|Change Dir to the working folder labs so that the path to the le is relative
to this folder. If you have personalized the R shortcut to start in folder labs, then the path to the le
is relative to this folder, for example, in this case, lab1\ test100.txt. Therefore, you could use this
name to scan the le. Use forward slash “/” to separate folder and lename.
> scan(“lab1/test100.txt”)
On the console, we receive the response
Read 100 items
[1] 48 38 44 41 56 45 39 43 38 57 42 31 40 56 42 56 42 46 35 40 30
49 36 28 55
[26] 29 40 53 49 45 32 35 ...