O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Control Structures - If-else

Thomas Allan Programming R I Inglês 5 flashcards

Flashcards do conjunto (5)

  1. 1What is the template for an if statement?if ( condition ) {
    ## do something
    }
  2. 2What is the template for an if-else statement?if ( ) {
    ## do something
    } else {
    ## do something else
    }
  3. 3using if, express a switch statementif ( ) {
    ## do something
    } else if (condition) {
    ## do something different
    } else {
    ## do something different
    }
  4. 4create an if-else that assigns y a value of 10 when x > 3 otherwise 0 with 1 assignment.y <- if ( x > 3 ) {
    10
    } else {
    0
    }
  5. 5Is the else clause necessary?no

Informações

Descrição
I Programming R (Week 1 - Getting Started) FlashCards sobre Control Structures - If-else, criado por Thomas Allan em 09-02-2016.
Criado por
Thomas Allan
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?