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 [2016/09/09 09:11] – hkimscil | r:getting_started [2021/03/02 09:48] (current) – [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:// | ||
+ | [[https:// | ||
====== 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 ====== | ||
+ | < | ||
+ | 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 119: | Line 155: | ||
[1] 8.75 5.50 | [1] 8.75 5.50 | ||
</ | </ | ||
+ | |||
+ | see [[https:// | ||
< | < | ||
Line 129: | 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.1473381679.txt.gz · Last modified: 2016/09/09 09:11 by hkimscil