Se realiza una tabla, a través de los siguientes pasos: 1)Definir los vectores que se vayan a utilizar en la tabla. 2) Escribir Tabla=(vector1, vector2, vector3)
Para representar una serie de datos a modo de histograma usamos:
plot(vector1,vector2,type=h)
plot(vector1,vector2,type=b)
plot(vector1,vector2,type="h")
Es posible cambiar el color en una representación gráfica "plot".
Para crear la función seno de x, se debe introducir:
N=function{ sin(x) }
N=fuction(x){ sen(x) }
N=function{ sen(x) }
N=function(x){ sin(x) }
Para crear un bucle para cuando i=1,...,n:
for i in 1:n
for i in (1-n)
for (i in 1:n)