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

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Wed, 13 Jun 2007 15:50:57 -0300

Hi,

try with df[!is.infinite(your_column_in_d.f.),]

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22"
O<http://maps.google.com/maps?f=q&hl=en&q=Curitiba,+Brazil&layer=&ie=UTF8&z=18&ll=-25.448315,-49.276916&spn=0.002054,0.005407&t=k&om=1>

On 13/06/07, Judith Flores <juryef_at_yahoo.com> wrote:

>
> 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.
>
[[alternative HTML version deleted]]

______________________________________________ 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.

Received on Wed 13 Jun 2007 - 18:59:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 13 Jun 2007 - 19:32:01 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.