title: Methods for applying is.infinite() to a data frame in R
body: <p>I'm wondering why I can't apply is.infinite() to a data frame in the same way I can apply is.na to a dataframe in R:</p>
  
  <pre><code>data[is.infinite(data)]&lt;-0
  Error in is.infinite(data) : 
    default method not implemented for type 'list'
  
  data[is.na(data)] &lt;-0
  </code></pre>
  
  <p>Produces no error, however, the documentation on is.infinite implies the same behavior as is.na?.</p>
  
  <p>Does anyone know how I can replace inf values?</p>