[R] Removing Inf and Inf values from a fata frame

Petr Klasterecky klaster at karlin.mff.cuni.cz
Wed Jun 13 21:07:16 CEST 2007


?is.finite

for removing the Infs *from the dataframe*, this does not aviod creating 
them by mean() or std().

Petr

Judith Flores napsal(a):
> Hi,
> 
>     I have a csv file with empty values, when I apply
> the different functions (mean, std, etc.) I create a
> new data frame, the empty values generate Inf and -Inf
> values. How can I remove those Inf and -Inf values
> from the new data frame? I already specified na.rm in
> the mean and std functions, but the values are still
> there.
> 
> Thank you,
> 
> Judith
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 

-- 
Petr Klasterecky
Dept. of Probability and Statistics
Charles University in Prague
Czech Republic



More information about the R-help mailing list