Wednesday, January 05, 2011
Another R primer
This time, Millsy is giving us the walk-through.
***
As an aside, for variable names, perhaps periods (.) is the standard for R and other languages, and I’ve seen hyphens used as well in other languages. But, those characters are sometimes considered invalid in a field name (because after all they mean something specific, like a period in a decimal, or a hyphen would be a minus sign). You can save yourself the trouble and use an underscore (_). I’ve never come across any language that doesn’t like the underscore. If I’m wrong, then let me know.
He’s right about never starting a field name with a numeric. Some languages are ok with it, but most are not. For something like double, I simply do B2, and triples is B3, simply inverting 2B and 3B. Then, to complete it, you can do B1 for singles, and either stick with HR or go to B4 for consistency sake. Then you can expand that for other things like BE for reaching on error, and so on. BB is walks obviously. They all follow the form “base on”.
Anyway, what I’ve said here is a footnote of a footnote compared to what Millsy is telling you, so, spend your time following his tutorial instead.


Recent comments
Older comments
Page 1 of 343 pages 1 2 3 > Last »Complete Archive – By Category
Complete Archive – By Date