Optimization

Consigna 1

Nunca quemes un núcleo de tu computador

  • Usa monitor de temperatura
  • R-Cran tiene herramientas muy avanzadas para esto
# library(multicore)
# load the package
# x1=1:5;x2=5:10
# create 2 objects
# p1=parallel(factorial(x1)) # run in parallel
# p2=parallel(factorial(x2)) # run in parallel
# collect(list(p1,p2))
# collect results

# $‘8995‘ [1]  1  2  6 24 120
# $‘8996‘ [1]  120  720  5040  40320  362880 3628800

Primeros pasos en R

R se puede usar como una calculadora avanzada en el escritorio de windows linux o android.

3+5
[1] 8
a<-3 
b<-5 
a+b
[1] 8
sin(pi/2)
[1] 1
sqrt(9)
[1] 3

Filosofía Matricial

  • Estructura de Datos
  • Variables Indexadas
  • Definición de Funciones

aaa borrar

For more details on authoring R presentations please visit https://support.rstudio.com/hc/en-us/articles/200486468.

  • Bullet 1
  • Bullet 2
  • Bullet 3

Slide With Code

summary(cars)
      Length Class  Mode     
name  3      -none- character
color 3      -none- character
cc    3      -none- numeric  

Slide With Plot

Error in xy.coords(x, y, xlabel, ylabel, log) : 
  'x' is a list, but does not have components 'x' and 'y'