Dear R Colleagues, When I run ls() on an R object given to me by a colleague, one of the objects is shown literally as: "females[\"dp\"]" I can neither look into it nor can I get rid of it (rm("major[\"dp\"]"). Ideas or solutions? Thanks, Larry [[alternative HTML version deleted]]
Your colleagues was careless with back quotes. See ?'`' for a discussion of non-syntactic names. This next transcript shows how to use the back quote to create and then remove an object with a non-symantic name.> ?which > ?'`' > `females[\"dp\"]` <- 123 > ls(pat="fe")[1] "females[\"dp\"]"> rm(`females[\"dp\"]`) > ls(pat="fe")character(0)>[[alternative HTML version deleted]]