renkun-ken / rlist

A Toolbox for Non-Tabular Data Manipulation
Other
202 stars 28 forks source link

Include an example in list.clean that evaluates using a character #108

Closed Ironholds closed 9 years ago

Ironholds commented 9 years ago

list.clean's documentation currently says it can evaluate over "a character". I'm not clear on what this means - it would be good if the documentation had an example.

renkun-ken commented 9 years ago

The argument fun of list.clean can be a character means that it can be, for example, either "is.null" or is.null, both work.

Ironholds commented 9 years ago

Gotcha. Why not 'a function, in quotes or not?'

renkun-ken commented 9 years ago

It works more like *apply functions which accept both function or character using match.fun.