Setting Column Names

  • Comments posted to this topic are about the item Setting Column Names

  • I'm not sure I understand the explanation here.  The page linked makes no mention of the names function as far as I can see but the names function does appear to be a  possible way of assigning column names.  I'm also not sure why you'd choose the names function rather than the colnames function which is specifically intended to set the column names.


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • Interesting.
    will have to dig deeper .

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    “libera tute vulgaris ex”

  • It feels like there are too many different ways to do the same thing in R.  This Stack Overflow question deals with this concept and the way Steve chose to do it is only the 9th highest answer.
    Not sure if that is necessarily a bad thing, but does make it confusing when looking in from the outside.


    [font="Tahoma"]Personal blog relating fishing to database administration:[/font]

    [font="Comic Sans MS"]https://davegugg.wordpress.com[/url]/[/font]

  • There are multiple ways to do this. I've done it with colnames(), but decided to see how names() worked.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply