R - Decision making - PowerPoint PPT Presentation

About This Presentation
Title:

R - Decision making

Description:

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. For more topics stay tuned with Learnbay. – PowerPoint PPT presentation

Number of Views:5

less

Transcript and Presenter's Notes

Title: R - Decision making


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
Write a Comment
User Comments (0)
About PowerShow.com