Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain if control statements in r?



Explain if control statements in r?..

Answer / Anamika Choudhary

Control statements in R allow for conditional execution of code and looping through data. They include:n1. If-else: Executes code based on a condition.n2. For: Loops through a sequence of numbers.n3. While: Loops as long as a condition is true.n4. Repeat: Continuously executes a block of code until a specific condition is met.n5. Switch: Performs different actions based on the value of an expression.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

What is the purpose of using Next statement in R language?

1 Answers  


Write the syntax to set the path for a current working directory in r environment?

1 Answers  


Give some examples of the functions in stringr.

1 Answers  


Explain how to name the list elements in r?

1 Answers  


What are features of r functions?

1 Answers  


What are prerequisites for r’s c interface?

1 Answers  


Explain disadvantages of density-based clustering in R?

1 Answers  


What are statistical and programming features of R?

1 Answers  


How can you simulate random walk model using r?

1 Answers  


What is a loop in r?

1 Answers  


What are vector functions?

1 Answers  


Name some functions available in “dplyr” package.

1 Answers  


Categories