Run R code online

PHOTO EMBED

Tue Jun 18 2024 21:32:38 GMT+0000 (Coordinated Universal Time)

Saved by @jkirangw

#if, else and if else

x = 5
if (x==10) {
   print("X is equal to 10")
}else if (x == 12){
   print("X is 12")
}else{
   print("x is not any of the above")
}
content_copyCOPY

https://rdrr.io/snippets/