Use is.na
DF <- data.frame(x = c(1, 2, 3), y = c(0, 10, NA), z=c(NA, 33, 22))
DF[!is.na(DF$y),]
More Related Contents:
- How do I replace NA values with zeros in an R dataframe?
- Replacing character values with NA in a data frame
- How to replace NA values in a table for selected columns
- Count NAs per row in dataframe [duplicate]
- Subset of rows containing NA (missing) values in a chosen column of a data frame
- Remove columns from dataframe where some of values are NA
- How to subset data in R without losing NA rows?
- How to delete columns that contain ONLY NAs?
- Randomly insert NAs into dataframe proportionaly
- Select last non-NA value in a row, by row
- Replace in a factor column
- Replace all NA with FALSE in selected columns in R
- Find columns with all missing values
- R: replacing NAs in a data.frame with values in the same position in another dataframe
- Move NAs to the end of each column in a data frame
- Repeat each row of data.frame the number of times specified in a column
- How to convert a list consisting of vector of different lengths to a usable data frame in R?
- Filtering a data frame on a vector [duplicate]
- Take random sample by group
- How do I delete rows in a data frame?
- Convert data.frame column to a vector?
- Add new row to dataframe, at specific row-index, not appended?
- Growing a data.frame in a memory-efficient manner
- Splitting a data.frame by a variable [duplicate]
- Unlist a data frame by rows, not columns
- Using lapply to apply a function over list of data frames and saving output to files with different names
- DT[!(x == .)] and DT[x != .] treat NA in x inconsistently
- Row-wise sum of values grouped by columns with same name
- How to create a new variable in a data.frame based on a condition?
- Interpolating timeseries