R lists: part of tag name -
i found out strange behaviour when using lists in r:
> a$abc = 15 > a$abc [1] 15 > a$ab [1] 15 > a$a null > a$ab = null > a$ab [1] 15 is feature or bug? possible change behaviour? lot in advance!
r performs partial matching when using $, you'll abc when passing ab. matching not done single character. assignment:
a$ab = null simply nothing, check object afterwards. null object added list, in r means nothing added.
Comments
Post a Comment