r - Numbers change when using write.file() -
i trying use write.table() function in r write output. has 3 columns, first has numbers, second has color indicator (#000000) , third 1 has number again. simple enough right?
well, when run script step step, output desired one, this:
tip id color track cluster id
13298267 #ff0000 1
but when try through command line, same number , same arguments, this:
13298267 #ff0000 156
i tried changing encoding , nothing happened, tried changing third column number instead of integer. nothing
does have idea of might happening?
this happens if class of object factor, , not expected numeric. because print() functions factors , numerics both output (often different) number @ casual glance.
best way avoid check using str() classes objects are.
Comments
Post a Comment