Hi
I am analysing biological data using R programming language and R studio.
File > Open File> Memory Stick > / Data > biological_data.txt
allows me to view data in a new window from an external hard drive into R Studio.
My computer is free of files and needs to stay that way because they take up too much space.
Is there a way that I can actually work on this data in RStudio directly from the hard drive?
So far the biological_data.txt file opens up in a new window in R studio, but I do not know how to use it and cannot simply copy and paste the data from the window into the console.
When I type:
help(setwd)
in R, I get a beautiful output saying:
setwd(dir) is used to set the working directory to dir.
However, how can I find the path to the file on the memory stick (external hard drive)? This does not show up on the Terminal or in RStudio.
=)
Look into
setwd
command. It will allow you to set your working directory to which ever place you want it to be.What OS are you using?
if you are lucky enough to be using a Mac, you can simply drag the file from the Finder to the Terminal to reveal the full path.
MacOS High Sierra version 10.13.6