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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -