layout | root | title | minutes | dataurl_1 |
---|---|---|---|---|
lesson |
. |
Introduction lecture |
25 |
- A working internet connection (please use the wifi)
- Introduce youselves on Slack (use the web interface, or download the app to your computer or phone)
- Pair programming
- Live coding
This is an opportunity to check that you were able to complete all the pre-requisites that were sent out in the pre-course email. Everything is detailed here is you are looking for the instructions
- Install R
- Install R studio
- Download and install a speadsheet programme
- Join Slack
- Mac OSX Users: Please open a Terminal and type
xcode-select--install
and follow the onscreen instructions
We'd like to introduce three data sources that will be using during the course.
- An RCT comparing post-operative pain control after axillary node dissection with local anaesthetic infiltration via the drain versus injection to the skin flaps (Thanks to Muska Khpal)
Please note (stern tone of voice!) that any data that is placed on the internet cannot include any patient identifiers.
You are also encourage to bring along your own data. We can't promise to spend time on this, but there are exercises to do along the way, and you might want to try these exercises out on your own work.
It's going to be helpful to have an understanding of how files and folders (aka directories) are named on your computer because unlike your usual habit of pointing and clicking to open something, we will need to start writing things down.
Very briefly.
-
Directories (folders) contain files and other directories.
-
Files have a 'name', and an 'extension' (traditionally a three letter code telling the computer what sort of file it was)
-
The 'root' directory is the start of this tree.
- On Windows machines you'll be used to thinking of the root as the
C:\
drive (a back slash) - On a Unix machine (Mac OS X and Linus), the root is just
/
(a forward slash)
- On Windows machines you'll be used to thinking of the root as the
-
You can write the absolute 'path' to any file as if you walked along the branch of the tree from the 'root' to the file. For example, if you saved a Word document on your desktop called
readme
:- Windows:
C:\Users\steve\desktop\readme.docx
- Unix:
/Users/steve/desktop/readme.docx
- Windows:
-
You can write the relative 'path' to any file as if you walked from one file (or directory) to another. Sometimes this means walking up the branch to descend another one. To walk up a level you type
..
. For example, if you are working in yourdocuments
folder which is at- Windows:
C:\Users\steve\documents
- Unix:
/Users/steve/documents
And you want to go to the same
readme.docx
file as before. You would type- Windows:
..\desktop\readme.docx
- Unix:
../desktop/readme.docx
which reads as 'go up one level' (the
..
), then go down into a folder calleddesktop
, and then to the file calledreadme.docx
- Windows:
-
Finally, the
.
(single not double dot) is just the short cut for the current directory. So./readme.docx
simply means the file calledreadme.docx
in this directory. Seems pedantic but that's computers for you!
You can see the path to any file or directory by right clicking and looking for properties (Windows), or using the 'Get Info' menu item (Mac OS X).
-
Set-up a 'projects' directory somewhere, of your choosing, on your computer. Create a project called 'ds4d-course', and within it create separate folders called notes, data, code, and temp (for temporary).
-
Have a quick look at the Software Carpentry lesson on files and directories.