An Easy-to-Follow R Language Project: Beginner’s Guide

Zayyan Cahya
2 min readOct 3, 2023

--

Welcome to this step-by-step guide where we’ll dive into an accessible R language project, perfect for beginners, to help you get hands-on experience with data analysis and visualization.

First you have to create R Script, by clicking file -> New File -> R Script. And we’re ready to go

Odd and Even Number

in this code i use modulus “%%” to check if the number has no returns after being divided by 2

Here’s the result of this code.

Grade Conversion

Simple code, just use if else and print the value

That’s the result, 88 is more than 86 so the return is A

Saving 3 Variable

you can just save it to the variable without the function, but here’s the result

Looping

you can adjust the number of looping process by changing the looping( ). here’s the result

--

--