Skip to content
Prev 139651 / 398506 Next

How to assign text string as object?

I think one of the other solutions suggested a way of doing it if
"AGE" was one of the columns and you wanted to plot against all the
others.  It would probably be done in this fashion:

for (i in names(df)[!(names(df) %in% "AGE")]){
    plot(df$AGE, df[[i]], main=i, type='l')
}
On 3/17/08, Michal Kneifl <xkneifl at mendelu.cz> wrote: