title: using data frames with fixed values and subtraction
body: <p>I have a question regarding how to go Data Frames. I have this function, which we spent a data frame has only one column. I want a subtraction between a fixed number and value of each position of the data frame is performed. The result of this subtraction should be stored in another data frame.</p>
  
  <pre><code> get_ms_ts_list&lt;-function(ts_list){
      ms_ts_list &lt;-nrow(ts_list)
      as.double(ts_list)
    for (i in 1:nrow(ts_list)){
      ms_ts_list[i]&lt;-(1392217780000 - ts_list[i, ])
    }
    ms_ts_list
  }
  </code></pre>
  
  <p>I get an error type 
  Error in get_ms_ts_list (ts_list): 
     (list) object can not be coerced to type 'double' </p>
  
  <p>and one that usually gives me after some changes is </p>
  
  <p>6: In Ops.factor (1,392,217,780,000, ts_list [i]): 
     - Not meaningful for factors </p>