[R-sig-Geo] Make function ignore +inf and -inf values

Edzer Pebesma edzer.pebesma at uni-muenster.de
Tue Oct 25 18:42:10 CEST 2011


You can't expect such behaviour from analysis functions; this is a 
problem in your data or introduced by your analysis (e.g. taking logs 
from zero values). I believe the job of the data analyst (you) is to 
solve this before you call the analysis functions / methods.

On 10/25/2011 06:26 PM, Sandeep Patil wrote:
> Hello
>
> I am using compare.cv functions to compare
>
> results stored in different dataframes and it works fine.
>
> The function fails when it gets a +inf or -inf value in a particular column.
>
> It is difficult for me to replace all these values because there are many
>
> files and i do not know where inf values may be located
>
> Is it possible to somehow coax the function to disregard
>
> the rows with +Inf or -inf values , i can get a subset using
>
> subset of a dataframe function but i have too many columns
>
> and too many functions to change
>
> Thanks
>

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list