install and configure r and rstudio
TRANSCRIPT
Installing and configuring
& StudiouseR@HSPH
Kazuki Yoshida, M.D. MPH-CLE student
FREEDOMTO KNOW
Create a folder for this study group
This will be your working directory.Put everything related here!
First download and installhttp://www.r-project.org
Choose the one you need
Download and install this
GUI toolkit
R itself
R itself
Install both files
OR
Download and install RStudio Desktop appropriate for your computer
Make sure you installed
both
First you’ll configure Studio
Open R Studio
ConsolePlot
Workspace
Tools-Options
Choose folder you created
Restart RStudioafter cofiguration
Choose mirror geographically close
CRANmirror
Comprehensive
RArchive
Network
http://cran.r-project.org/web/packages/available_packages_by_date.html
You get additional
packages that add
functionalities from here!
Working directory
Folder your are working in. Make sure it
is the one you created
Createa script
Source
Console Plot
WorkspaceThis is where you write code
You see dataset names here
You see outputs here
Install additional packages
foreign sas7bdat XML
gdataxlsx
Install packages!
Use text filesuch as csvif possible
http://www.cengage.com/cgi-wadsworth/course_products_wp.pl?fid=M20bI&product_isbn_issn=9780538733496
Download comma-separated and Excel
BONEDEN.DAT.txtBONEDEN.DAT.xls
Put them in folder
For comma-, tab-, or space-separated text,
GUI is available
Text