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.
plot(cars)
Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressing Ctrl+Alt+I.
cars
El siguiente bloque de códigos crea el histograma de frecuencias de valores de la variable speed del objeto cars:
hist(cars$speed)
El siguiente bloque de códigos crea el histograma de frecuencia de valores de la variable dist del objeto cars:
hist(cars$dist)
El siguiente bloque de códigos crea el coeficiente de correlación entre las variables speed y dist del objeto cars
cor(cars$speed,cars$dist)
## [1] 0.8068949
El siguiente bloque de códigos crea el ploteo entre las variables de speed y dist del objeto cars
plot(cars$speed,cars$dist)
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.