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

R is not a simple programming language, and it does better on reading excel files than python

R is not a simple programming language, and it does better on reading excel files than python . tried to read excel files to python and R. i...