Articles by udayan

R for Loop

September 28, 2021 | udayan

In programming, loops are used to repeat the execution of a block of code. Loops help you to save time, avoid repeatable blocks of code, and write cleaner code. In R, there are three types of loops: while loops for loops repeat loops R for L... [Read more...]

R while Loop

September 28, 2021 | udayan

In programming, loops are used to repeat a block of code as long as the specified condition is satisfied. Loops help you to save time, avoid repeatable blocks of code, and write cleaner code. In R, there are three types of loops: while loops fo... [Read more...]

R ifelse() Function

September 27, 2021 | udayan

In R, the ifelse() function is a shorthand vectorized alternative to the standard if...else statement. Most of the functions in R take a vector as input and return a vectorized output. Similarly, the vector equivalent of the traditional if...else b... [Read more...]

R if…else

September 27, 2021 | udayan

R if Statement The if statement is a conditional statement that allows you to provide conditions to execute a piece of code. The syntax of if statement in R is: if(test_expression) { # body of if statement } If the test_expression inside the i... [Read more...]

R Numbers

September 27, 2021 | udayan

Numbers in R can be divided into 3 different categories: Numeric: It represents both whole and floating-point numbers. For example, 123, 32.43, etc. Integer: It represents only whole numbers and is denoted by L. For example, 23L, 39L, etc. Compl... [Read more...]

R Data Types

September 27, 2021 | udayan

A data type of a variable specifies the type of data that is stored inside that variable. For example, x [Read more...]

R Variables and Constants

September 22, 2021 | udayan

In computer programming, a variable is a named memory location where data is stored. For example, x = 13.8 Here, x is the variable where the data 13.8 is stored. Now, whenever we use x in our program, we will get 13.8. x = 13.8 # print variabl... [Read more...]

Getting Started With R

September 21, 2021 | udayan

R is an interpreted programming language. It also allows you to carry out modular programming with the help of functions. It is widely used to analyze statistical information as well as graphical representation. R allows you to integrate with progr... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)