In stats::D, I was wondering why variables are represented as symbols
in expressions, but as strings in lists of variables:

    D(quote(x^2),"x") => 2*x
    D(quote(x^2),quote(x)) => error Variable must be a character string

Strings are not allowed in the expression to denote variables:

    D(quote("x"),quote("x")) == D("k","x") => NA  (why not an error?)

            -s

______________________________________________
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.

Reply via email to