Hi Ramya,
In this particular case, something like ?"complete.cases" should do the job.
With this function you can delete rows with one or more NA's.
Here is an example:

set.seed(123)
DF<-matrix(rnorm(100),ncol=10)
DF[1,2]<-NA
DF[1,3]<-NA
DF[4,10]<-NA
dim(DF)
[1] 10 10

DF.noNA <- DF[complete.cases(DF),]  # Removing rows 1 and 4
dim(DF.noNA)
[1] 8 10


HTH,


Jorge


On Wed, Sep 17, 2008 at 1:22 PM, Rajasekaramya <[EMAIL PROTECTED]>wrote:

>
> Hi,
>
> I have a dataframe with 14319rows and 9 colums. for some rows there are
> null
> values.I want a dataframe without these null values.I wanna select only
> those that have values !=NA.
>
> kindly let me know how to do that.
>
> Ramya
>
> --
> View this message in context:
> http://www.nabble.com/selecting-dataframe-values-that-are-not-nulls-tp19537093p19537093.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org 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@r-project.org 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.

Reply via email to