a<-c(1,4,6,8,10,12)
sum(a)
## [1] 41
prod(a)
## [1] 23040
a<-c(1,4,6,8,10,12)
b<-c(1,3,5,7,9)
resta<-Reduce("-",a,b)
resta
## [1] -40 -38 -36 -34 -32
c<-c(15,17,20,22,26)
d<-c(10,8,5,3,9)
sum(c,d)
## [1] 135
prod(c,d)
## [1] 31505760000
resultado <-c^d
print(resultado)
## [1] 5.766504e+11 6.975757e+09 3.200000e+06 1.064800e+04 5.429504e+12
raiz_c <- sqrt(c)
raiz_d <- sqrt(d)
print(raiz_c)
## [1] 3.872983 4.123106 4.472136 4.690416 5.099020
print(raiz_d)
## [1] 3.162278 2.828427 2.236068 1.732051 3.000000
N=23
M=23
N=M
C=20
P=17
C=P
nombre<-c("Laura","Juan","Daniel","Daniela","Camila","Lorny","Pilar","Alex","Nelcer","yuliet","stiven","Sara")
edad<-c(20,22,25,18,19,24,30,27,28,19,20,15)
datos<-data.frame(nombre,edad)
Agregar dos columnas: Estrato, nivel de estudios, al anterior dataframe
Agregar cuatro filas de datos ficticios 10.Cargar un excel que contenga los anteriores datos
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.