[R] Partial matching when using $ ? Feature or bug?
Rainer M Krug
r.m.krug at gmail.com
Fri Mar 16 15:20:26 CET 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 16/03/12 15:05, Sarah Goslee wrote:
>>> It's also a really good reason to use [[ in functions or anywhere there might be a chance
>>> of confusion.
>>
>> Absolutely - I think I have to change my habit. I always prefered using $ as it seemed to me
>> more logical.
>
> I started out that way because it's shorter and nicer-looking code,
absolutely.
> but it can cause partial-matching problems,
It did just for me...
> and also LaTeX annoyances in Sweave code.
Good to know - I'll keep that in mind.
> Someday I'll go back through my packages and get rid of all the lingering $.
>
> R: lots of ways to do the same thing, but some of them are booby-trapped.
Absolutely - but isn't that the fun part of R?
Rainer
>
> Sarah
>
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer at krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9jTCoACgkQoYgNqgF2egp7yQCeJOSxxKSeFjYtCxucxYSj8MtU
bbAAni6vsxE7Rm14luVg41tUT34/LcZ+
=Tw5l
-----END PGP SIGNATURE-----
More information about the R-help
mailing list