Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
practica 4
i <- 1 while(i<10){ print("El valor de i es:"); print(i); i=i+1; } A <- c(5,6,7,8,9,10) x<-1 while(x < 7){ print("el valor de A [x]"); print(A [ x ]) x=x+1; } B <-c(6,7,8,9) y<-4 while (y > 0){ print("el valor de B[x]"); print( B [ y]); y= y-1; } x <- c(1,2,3,4,5,6,7) x for ( i in 1: 4) { print (x[i]); } x <- c(1,2,3,4,5,6,7) x for ( i in 1: length(x)) { print (x[i]); } x <- c(1,2,3,4,5,6,7) x for ( i in 1: length(x)) { if ( x[ i ] < 5 ){ print( 2 ) } else { print (1) } } for ( i in 1: length(x)) { if ( x[ i ] < 5 ){ print( 1 ) } else { print (3) } } for ( i in 1: length(x)) { if ( x[ i ] < 2 ){ print( 1 ) } else { print (3) } }
run
|
edit
|
history
|
help
0
iris
2
Fractal Fourier
sum of digits is prime
21-09-2020Intpoli
31-08-2020-Exemplo Ajuste
Hiring Discrimination
,k
Random Forest Example
Grade.r