1 / 7

R - Decision making

This presentation educates you about R - Decision making with general form of a typical decision making structure found in most of the programming languages, Statement & Description, Types of Decision Trees and Decision Making Statement in R.<br><br>For more topics stay tuned with Learnbay.<br>

Download Presentation

R - Decision making

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. R - Decision making Swipe

  2. R - Decision making Decision making structures require the programmer to specify one or more conditions to be evaluated or tested by the program. Along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false. Following is the general form of a typical decision making structure found in most of the programming languages

  3. Condition If condition true If condition false Conditional code

  4. Statement & Description R provides the following types of decision making statements. if statement An if statement consists of a Boolean expression followed by one or more statements. if.else statement An if statement can be followed by an optional else statement, which executes when the Boolean expression is false. switch statement A switch statement allows a variable to be tested for equality against a list of values.

  5. Types of Decision Trees Regression Trees Classification Trees Classification Error Rate Gini Index Cross-Entropy Advantages and Disadvantages of Decision Trees

  6. Decision Making Statement in R The decision making statement in R are as followed: if statement if-else statement if-else-if ladder nested if-else statement switch statement

  7. Topics for next Post R - Loops R - Strings R - Factors Stay Tuned with

More Related