Loops – R on Sololearn

Yesterday I practiced R on Sololearn! This time I went over loops, which allow you to run the same code multiple times while using less code. I also went over the for loop, which iterates over a given sequence. Next time I will be going over the break and next statements, which work alongside loops!

Logical Operators – R on Sololearn

Today I practiced R on Sololearn! This time I went over logical operators, which allow you to combine multiple conditions. I also went over the switch statement, which allows you to test an expression against a list of values and make the code shorter. Next time I will be going over loops!

Decision Making – R on Sololearn

Decision Making – R on Sololearn

Today I practiced R on Sololearn! Today I went over basic decision-making with the if statement. I also went over the else and else if statements for when you need to run code if a condition is false. Next time I will be going over using logical operators!

Basic Concepts Review – R on Sololearn

Today I practiced R on Sololearn! I went over everything we have learned so far about R, such as basic math, how to take input, and variable assignment. Next time I will be going over a new unit about programming in R!

 

Input and Output – R on Sololearn

Today I practiced R on Sololearn! This time I went over input and output. R allows you to take input with the readLines function. We also learn how to take the input and interpret it as an integer. Next time I will be reviewing everything we have learned!

 

Bug Zero Icon

OUR NEWSLETTER