Articles by sudipb

R Program to Find the Length of a String

August 1, 2022 | sudipb

The length of a string means the total number of characters present in a given string. For example, the string "Programiz" has the length 9. In R, there are two ways to find the length of a string. We can use the nchar() function or the str_len... [Read more...]

R Print Output

September 22, 2021 | sudipb

R print() Function In R, we use the print() function to print any values and variables. For example, # print values print("R is fun") # print variables x [Read more...]

R Comments

September 21, 2021 | sudipb

Comments are portions of a computer program that are used to describe a piece of code. For example, # declare variable age = 24 # print variable print(age) Here, # declare variable and # print variable are two comments used in the code. Comments... [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)