ezoic

Friday, August 16, 2019

read in data to R, and check if any missing values in the data

code to read in the data into R:

data1<-read.csv("data1.csv", stringAsFactors=FALSE)
view(data1)

a line of code to check if any missing values in the data:
length(which(!complete.cases(data1))

will give the value 0, if there is no missing values in the data


No comments:

Post a Comment

looking for a man

 I am a mid aged woman.  I was born in 1980. I do not have any kid. no complicated  dating before . I am looking for a man here for marriage...