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:

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.

1. hola
2. hola
1. hola
*hola
*hola
2.hola
  1. Elemento 1
  2. Elemento 2
    1. Elemento 1 dentro del segundo nivel
      • Elemento 1 del tercer nivel
      • Elemento 2 del tercer nivel
    2. Elemento 2 dentro del segundo nivel
hola hola hola Hola hola
1hgfkjf 2 3 4 5
2 3 3 4 5

uoc

gos
gos

hola hoola

hola

num1<- 15
num2= 10

num1|num2
## [1] TRUE
vector <- c(2,3,6,8,9)
seq(3,41, by=5)
## [1]  3  8 13 18 23 28 33 38
data <- c(1:60)
data
##  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
## [26] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
## [51] 51 52 53 54 55 56 57 58 59 60
dimensions <- c(6,10)
matriu <-matrix(data, dimensions)
matriu
##      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
## [1,]    1    7   13   19   25   31   37   43   49    55
## [2,]    2    8   14   20   26   32   38   44   50    56
## [3,]    3    9   15   21   27   33   39   45   51    57
## [4,]    4   10   16   22   28   34   40   46   52    58
## [5,]    5   11   17   23   29   35   41   47   53    59
## [6,]    6   12   18   24   30   36   42   48   54    60
hola<-c("hola", "pepsi", "cola")
num<-c(1,2,3,4)
llista<-list(hola, num)
llista
## [[1]]
## [1] "hola"  "pepsi" "cola" 
## 
## [[2]]
## [1] 1 2 3 4
llista[[2]]<-NULL
llista
## [[1]]
## [1] "hola"  "pepsi" "cola"