title: How would you program Pascal's triangle in R?
body: <p>I am reading, on my own (not for HW) about programming, and one exercise involved programming Pascal's triangle in R.  My first idea was to make a list and then append things to it, but that didn't work too well.  Then I thought of starting with a vector, and making a list out of that, at the end.  Then I thought of making a matrix, and making a list out of that at the end.</p>
  
  <p>Not sure which way to even approach this.</p>
  
  <p>Any hints?</p>
  
  <p>thanks</p>