The usual way of doing this in R functions is via deparse, as in the
examples in ?deparse:
fd<-function(x) plot(x, main=deparse(substitute(x)))
q<-1:10
fd(q)
as.character works for simple cases but is probably not the best
option. Compare
fd(log(q))
with
fc<-function(x) plot(x, main=as.chara
> I?ve written a script to run several multivariate statistical analysis
> automatically.
> As one result a biplot and screeplot is produced.
> Now I?d like to display the name of the inputdatset as part of the title
of
> these graphics and I do not want to enter it each time I run the script.
> H
2 matches
Mail list logo