I'm using read_excel to import data into R. Some of the cells in the excel file are empty. I want R to skip these, currently it is reading them into the variable as NA.
file.dat <- read_excel("File.xlsx", sheet = 3)
Alternatively, can read the data into another variable and remove the NA values, at that step?
myData <-file.dat$MyData #how do I skip NA when reading in the MyData variable?
Snapshot of excel file:
Current output in R:
I'd like to remove the "NA's". I don't need to retain the index.