title: Set time value into data frame cell
body: <p>I'm trying to set a time value into a data frame:</p>
  
  <pre><code>ps = data.frame(t(rep(NA, 2)))
  ps[1,1] = strptime('10:30:00', '%H:%M:%S')
  </code></pre>
  
  <p>but I get the error:</p>
  
  <pre><code>provided 9 variables to replace 1 variables
  </code></pre>
  
  <p>since a time value is a list (?) in R it thinks I'm trying to set 9 columns, when I really just want to set the one column to that class.</p>
  
  <p>What can I do to make this set properly?</p>