R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

# Cargar un archivo CSV
datos <- read.csv("laptop_prices.csv", stringsAsFactors = FALSE)

# Mostrar una tabla estática con knitr::kable()
knitr::kable(head(datos))
Brand Processor RAM..GB. Storage GPU Screen.Size..inch. Resolution Battery.Life..hours. Weight..kg. Operating.System Price….
Apple AMD Ryzen 3 64 512GB SSD Nvidia GTX 1650 17.3 2560x1440 8.9 1.42 FreeDOS 3997.07
Razer AMD Ryzen 7 4 1TB SSD Nvidia RTX 3080 14.0 1366x768 9.4 2.57 Linux 1355.78
Asus Intel i5 32 2TB SSD Nvidia RTX 3060 13.3 3840x2160 8.5 1.74 FreeDOS 2673.07
Lenovo Intel i5 4 256GB SSD Nvidia RTX 3080 13.3 1366x768 10.5 3.10 Windows 751.17
Razer Intel i3 4 256GB SSD AMD Radeon RX 6600 16.0 3840x2160 5.7 3.38 Linux 2059.83
Acer AMD Ryzen 3 64 2TB SSD Nvidia RTX 3060 14.0 1366x768 7.1 1.85 Linux 1676.64
# O mostrar una tabla interactiva con DT::datatable()
DT::datatable(datos)
## Warning in instance$preRenderHook(instance): It seems your data is too big for
## client-side DataTables. You may consider server-side processing:
## https://rstudio.github.io/DT/server.html
summary(cars)
##      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

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.