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.

#Comments #temporal = assiganted <- #Logic structure/ conditionals #is dif from 5=5 (5=5) #because I can assigned it (5==5)&(6==6)

#type of data #vector vector <-c(“quotes”,“gato”,“1”,“2”) #factor is a category number/character #not as a numeric value control/treatment vector<-as.factor(vector) #output: [1] quotes gato 1 2
#Levels: 1 2 gato quotes #the levels are alfabetic order so one is my first one #and it changes my order vector1<-c(8,2,3) as.factor(vector1) #levels:2,3,8 #I can reorder it s IT RESPECT MY ORDER #it is important #for my order where I want to be showed levels(vector1) #I need to specify it vector1<-factor(x=vector1, levels=c(“8”,“2”,“3”)) #IT HAS TO #BE DIRECTLY not as.factor !

#matrix all the values should be the same class but the DF could mixed #the matrix is charcater if I have just character and doesn-t respect #the numbers #while in the DF I can have diff classes view(df1) #so it #oppens on the console easy to save it

save it as an R without comments to see if it changes

3+2