Displaying 1 result from an estimated 1 matches for "thorows".
2007 Dec 21
1
substitute() bug? (PR#10525)
The first four lines of code below work as normal. The fifth thorows
an error: "Error in paste(theta[1], "=", 5) : object "theta" not found"
x=rnorm(1000);
bob=density(x);
topp=5;
plot(bob,xlab="", ylab="",
main=substitute(paste(theta[1],"=",topp),list(topp=topp)), type="l");
plot(bob$y~bob$...