2011/3/24 Javier López-de-Lacalle <javier.lopezdelaca...@ehu.es>: > Hi everybody: > > I need to get the names of the arguments in an object of class "expression". > I've got the following expression: > >> x <- expression(rho * cos(omega)) > > Is there any function or procedure that returns the names of the arguments > (in the example: "rho" and "omega")? >
Try this: > all.vars(x) [1] "rho" "omega" -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.