Top "Na" questions

NA is a missing value indicator (Not Available) in the R language.

How to omit rows with NA in only two columns in R?

I want to omit rows where NA appears in both of two columns. I'm familiar with na.omit, is.na, …

r na
Replace NA's in R - works in a practice dataset but warning message when applied to actual data

I have a dataset in R which looks like, and has been reshaped in the same way as, the following …

r dataframe reshape na
pheatmap scale="row" giving Error in hclust(d, method = method) : NA/NaN/Inf in foreign function call

I am trying to create a heatmap with gene expression values with the package pheatmap in R. I have used …

r heatmap scaling na pheatmap
model.matrix() with na.action=NULL?

I have a formula and a data frame, and I want to extract the model.matrix(). However, I need the …

r matrix na
Fill empty cells in column with value of other columns

I have a HC list in which every entry should have an ID, but some entries do not have an …

python pandas na
What are the options for na.action in boxplot?

Two questions related to boxplot: What are the options for na.action? The documentation doesn't list them. How would I …

r boxplot na
Conditionally selecting columns in dplyr where certain proportion of values is NA

Data I'm working with a data set resembling the data.frame generated below: set.seed(1) dta <- data.frame(…

r filter dataframe dplyr na
NA in clustering functions (kmeans, pam, clara). How to associate clusters to original data?

I need to cluster some data and I tried kmeans, pam, and clara with R. The problem is that my …

r cluster-analysis k-means na missing-data
One function to detect NaN, NA, Inf, -Inf, etc.?

Is there a single function in R that determines if a value is NA, NaN, Inf, -Inf, or otherwise not …

r nan na r-faq
STL decomposition of time series with missing values for anomaly detection

I am trying to detect anomalous values in a time series of climatic data with some missing observations. Searching the …

r statistics time-series na stl-decomposition