Introduction to R for Data Science :: Session 4

######################################################## # Introduction to R for Data Science # SESSION 4 :: 19 May, 2016 # Data Science Community Serbia + Startit # :: Branko Kovač and Goran S. Milovanović :: ########################################################   # Starting with simple ‘if’ num <- 2 # some value to test with if (num > 0) print(“num is positive”) # if condition num > 0 stands than print() # is executed   # Sometimes ‘if’ has its ‘else’ if (num > 0) { # test to see if it’s positive print(“num is positive”) # print in case of positive number } else { print(“num is negative”) # it’s negative if not positive }   # Multiple ‘else’s are also possible if (!is.numeric(num)) { # check if it’s numeric print(“this is not a number”) # print…


Link to Full Article: Introduction to R for Data Science :: Session 4

Pin It on Pinterest

Share This

Join Our Newsletter

Sign up to our mailing list to receive the latest news and updates about homeAI.info and the Informed.AI Network of AI related websites which includes Events.AI, Neurons.AI, Awards.AI, and Vocation.AI

You have Successfully Subscribed!