row - Subtracting Columns in R -
i have 2 columns trying subtract , put new one, 1 of them contains values read '#null!', after converting on spss , excel, r reads factor , not let me subtract. easiest way fix knowing have 19,000+ rows of data?
while reading dataset using read.table/read.csv
, can specify na.strings
argument values needs transformed 'na' or missing values. so, in dataset be
dat <- read.table('yourfile.txt', na.strings=c("#null!", "-99999", "-88888"), header=true, stringsasfactors=false)
Comments
Post a Comment