r:getting_started
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| r:getting_started [2017/09/06 09:33] – [Rstudio] hkimscil | r:getting_started [2021/03/02 09:48] (current) – [A trial] hkimscil | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| ====== Rstudio ====== | ====== Rstudio ====== | ||
| [[https:// | [[https:// | ||
| - | [[https:// | + | [[https:// |
| ====== Starting R ====== | ====== Starting R ====== | ||
| Line 36: | 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 ====== | ||
| + | < | ||
| + | library(NRAIA) | ||
| + | detach(package: | ||
| + | </ | ||
| + | < | ||
| + | summary(trees) | ||
| + | boxplot(trees) | ||
| + | pair(trees) | ||
| + | </ | ||
| + | < | ||
| + | plot(dist~speed, | ||
| + | m.cars <- lm(dist ~ speed, data=cars) | ||
| + | m.cars | ||
| + | summary(m.cars) | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | summary(chickwts) | ||
| + | boxplot(weight~feed, | ||
| + | anova(lm(weight~feed, | ||
| + | m.chck <- aov(weight~feed, | ||
| + | m.chck | ||
| + | summary(m.chck) | ||
| + | </ | ||
| + | ---- | ||
| + | [[:t-test]] | ||
| + | [[:ANOVA]] | ||
| + | [[: | ||
| + | [[: | ||
| + | [[: | ||
| + | [[:Multiple regression]] | ||
| + | ---- | ||
| ====== Entering commands ====== | ====== Entering commands ====== | ||
| < | < | ||
| Line 122: | Line 155: | ||
| [1] 8.75 5.50 | [1] 8.75 5.50 | ||
| </ | </ | ||
| + | |||
| + | see [[https:// | ||
| < | < | ||
| Line 132: | Line 167: | ||
| 7.42 167.60 66.20 20.16 | 7.42 167.60 66.20 20.16 | ||
| </ | </ | ||
| + | see [[https:// | ||
| ====== Searching via Keywords ====== | ====== Searching via Keywords ====== | ||
r/getting_started.1504659835.txt.gz · Last modified: by hkimscil
