User Tools

Site Tools


r:getting_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
r:getting_started [2016/09/09 08:58] – [Searching via Keywords] hkimscilr:getting_started [2021/03/02 09:48] – [A trial] hkimscil
Line 22: Line 22:
 | Suse  | R-base  | | Suse  | R-base  |
 Use the system’s package manager to download and install the package. Normally, you will need the root password or sudo privileges; otherwise, ask a system administrator to perform the installation. Use the system’s package manager to download and install the package. Normally, you will need the root password or sudo privileges; otherwise, ask a system administrator to perform the installation.
 +====== Rstudio ======
 +[[https://www.rstudio.com/|Rstudio as a R tool]]
 +[[https://www.rstudio.com/products/rstudio/download/#download|download]] for windows OS.
  
 ====== Starting R ====== ====== Starting R ======
Line 33: Line 36:
 __Linux or Unix__  __Linux or Unix__ 
   * Start the R program from the shell prompt using the R command (uppercase R).    * Start the R program from the shell prompt using the R command (uppercase R). 
 +====== A trial ======
 +<code>install.packages("NRAIA")
 +library(NRAIA)
 +detach(package:NRAIA)
 +</code>
 +<code>trees
 +summary(trees)
 +boxplot(trees)
 +pair(trees)
 +</code>
 +<code>cars
 +plot(dist~speed, data=cars)
 +m.cars <- lm(dist ~ speed, data=cars)
 +m.cars
 +summary(m.cars)
 +</code>
 +
 +<code>chickwts
 +summary(chickwts)
 +boxplot(weight~feed, data=chickwts)
 +anova(lm(weight~feed, data=chickwts) ## or . . . 
 +m.chck <- aov(weight~feed, data = chickwts)
 +m.chck
 +summary(m.chck)
 +</code>
  
 +----
 +Not required yet. 
 +[[:t-test]]
 +[[:ANOVA]]
 +[[:Factorial ANOVA]]
 +[[:correlation]]
 +[[:regression]]
 +[[:Multiple regression]]
 +----
 ====== Entering commands ====== ====== Entering commands ======
 <code> <code>
Line 119: Line 156:
 [1] 8.75 5.50 [1] 8.75 5.50
 </code> </code>
 +
 +see [[https://3months.tistory.com/97|this document]] for **trim** option
  
 <code> mean> mean(USArrests, trim = 0.2) <code> mean> mean(USArrests, trim = 0.2)
Line 129: Line 168:
 7.42 167.60 66.20 20.16 7.42 167.60 66.20 20.16
 </code> </code>
 +see [[https://rfriend.tistory.com/40|this document]] for **colMeans** function.
  
 ====== Searching via Keywords ====== ====== Searching via Keywords ======
Line 164: Line 204:
 </code> </code>
  
-{{help.package.jpg?500}}+{{help.package.jpg}} 
 + 
 +====== Searching the Web for help ====== 
 +<code> > RSiteSearch("ANOVA") </code> 
 + 
 +====== Finding Relevant Functions and Packages ====== 
 +  * Visit the list of task views at http://cran.r-project.org/web/views/. Find and read the task view for your area, which will give you links to and descriptions of relevant packages. Or visit http://rseek.org, search by keyword, click on the Task Views tab, and select an applicable task view. 
 +  * Visit [[http://crantastic.org/|crantastic]] and search for packages by keyword. 
 +  * To find relevant functions, visit http://rseek.org, search by name or keyword, and click on the Functions tab. 
  
  
r/getting_started.txt · Last modified: 2021/03/02 09:48 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki