Skip to content
Prev 1729 / 398506 Next

No subject

Dear friends. This is again a very simple question, and I hope you will accept it. I have a dataset with variables in columns all with their names. Now I want to add a column indicating simply identity of patients, numbered according to row. There are 34 rows.
So I did:
but was not allowed to
and was informed that
So, I removed the names
but still got
Error: names attribute must be the same length as the vector
in spite of
NULL
NULL
NULL
NULL
One thing, is that inconsistent ?
Short of editing my data file, which would not be very difficult in this case, how could I do it ?
Sincerely yours
Troels Ring, MD

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._