Top "Na" questions

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

R gbm handling of missing values

Does anyone know how gbm in R handles missing values? I can't seem to find any explanation using google.

r missing-data na
R: read.table and missing values

When I load my data file in tab delimited format in R, I got this error message: Error in scan(…

r na read.table
fill in NA based on the last non-NA value for each group in R

My question is I have a dataframe m as below y1 =c( rep("A",5),rep("B",5)) y2 = rep(c(1:5),2) y3 = …

r dplyr na
Error in cor(x, use = use) : supply both 'x' and 'y' or a matrix-like 'x'

I am using the psych package, following code I tried: library(psych) str(price_per_d) Least_appealing <-subset(…

numeric na psych error-messaging
as.Date command in R returns NA

My date variable keeps returning a "NA" when i use the as.Date() command. I have practically tried all the …

r na as.date
"Error: Must subset rows with a valid subscript vector" in preProcess() when using knnImpute

I'm using kaggle's pokemon data to practice KNN imputation via preProcess(), but when I did I encountered this following message …

r na knn
How to delete rows from a dataframe that contain n*NA

I have a number of large datasets with ~10 columns, and ~200000 rows. Not all columns contain values for each row, although …

r filter merge rows na
Dealing with NAs when calculating mean (summarize_each) on group_by

I have a data frame md: md <- data.frame(x = c(3,5,4,5,3,5), y = c(5,5,5,4,4,1), z = c(1,3,4,3,5,5), device1 = c("c","…

r dplyr mean na
pheatmap: Color for NA

Using R package pheatmap to draw heatmaps. Is there a way to assign a color to NAs in the input …

r na pheatmap
R factor NA vs <NA>

I have the following data frame: df1 <- data.frame(id = 1:20, fact1 = factor(rep(c('abc','def','NA',''),5))) …

r missing-data na