Dear Phil,
The sapply statement made it work. The function indeed needed evaluation
before plotting. Many thanks for the useful hint!
Lucas
--
View this message in context:
http://r.789695.n4.nabble.com/typecasting-a-function-from-character-to-double-tp3327555p3327755.html
Sent from the R help
Hello,
I try to plot a number of functions that are given by a textfile. This file
looks like this:
(1+s) / (1+k) ;
(1+(2*s)^2) / (1+k)^2 ;
etc etc.
I import these functions into R with the 'readLines' command. This creates a
table whose elements contain the conditions as character strin
2 matches
Mail list logo