The following will display the error "Error in v $ a: $ operator is not valid for atomic vectors" (at least in version R.1.1.1.1):
v <- c(a='a',b='b') v$a
Apparently, R had previously admitted this, which makes me curious why.
EDIT: As indicated below, v$a
would return NULL in earlier versions. Changed “quite recently” to “earlier” since I based it on old internet forums and was fixed below.
source share