This is an R Markdown Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the Run button within the chunk or by placing your cursor inside it and pressing Ctrl+Shift+Enter.
Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressing Ctrl+Alt+I.
When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the Preview button or press Ctrl+Shift+K to preview the HTML file).
The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike Knit, Preview does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.
cars plot(cars,c(“speed”, “dist”))
This is the first line
This actually goes to the outer level
This is definitely at the outer level
First line
Second line
| Name | Gender | Occupation |
|---|---|---|
| Charles Kwame Appiah | Male | Renewable Energy Engineer |
| Richmond Amoah | Male | Fashion |
| Ann Amoah | Female | Doctor |
this
this
![Photos]
This is some text [with a link]
This is some text [with a link][interesting].
This is a block quote
block of
text
## [1] 4 27 16 125 36 343 64 729 100 1331 144 2197 196 3375 256
## [16] 4913 324 6859 400
[this section][@ckappiah1999.com]
bibliography: bibliography.bib … —
[@smith04, chapter 4]
bibliography: bibliography.bib csl: biomed-central.csl … —
[@ckappiah1999.com]
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## Max. :25.0 Max. :120.00
## [1] 2919
## Warning in mean.default(cars): argument is not numeric or logical: returning NA
## [1] NA
## [1] 9125
## [1] 10475
## [1] 5500
## Warning: package 'knitr' was built under R version 4.4.3
| speed | dist |
|---|---|
| 4 | 2 |
| 4 | 10 |
| 7 | 4 |
| 7 | 22 |
| 8 | 16 |
| 9 | 10 |
set.seed(123) # Ensures reproducibility initially
random_numbers <- rnorm(200) # Generate 100 random values
head(random_numbers) # Display first few numbers## [1] -0.56047565 -0.23017749 1.55870831 0.07050839 0.12928774 1.71506499
## [1] -0.008570445