title: Implementing a TRUE/FALSE flag in an R function
body: <p>I have an R function:</p>
  
  <pre><code>subsequences &lt;- function(data){
    sequences.sts &lt;- seqdef(data, left = "DEL", gaps = "DEL", right = "DEL")
    sub.sequences &lt;- seqsubsn(sequences.sts, DSS = FALSE)
    (sub.sequences)
  }
  </code></pre>
  
  <p>Now I want to implement a <code>TRUE/FALSE</code> flag to run some additional code for normalization, something like this:</p>
  
  <pre><code>subsequences &lt;- function(data, normalization = TRUE/FALSE){
     sequences.sts &lt;- seqdef(data, left = "DEL", gaps = "DEL", right = "DEL")
     sub.sequences &lt;- seqsubsn(sequences.sts, DSS = FALSE)
     (sub.sequences)  
  
        IF normalization=TRUE, RUN CODE BELOW, IF FALSE -&gt; END
           sequences.length &lt;- seqlength(sequences.sts)
           order_normalized &lt;- sub.sequences/(2^(max(sequences.length)))
  
     (order_normalized*1000000)
  }
  </code></pre>
  
  <p>How can I implement this?</p>