Skip to content
Prev 106705 / 398525 Next

How to write string dynamicly?

Try this:

idx <- match("Species", names(iris))
lda(iris[-idx], iris[,idx])
On 12/29/06, Feng Qiu <hustqiufeng at sohu.com> wrote:
That is not correct.  It takes the variable itself, not its name, as input.
That is not a valid argument sequence.  See ?lda