Posts by Douglas Lohmann • 33 points
2 posts
-
1
votes2
answers144
viewsA: Matlabfunction() similar to MATLAB in R
I solved the problem as follows: make.Rfunction <- function(expressao) { fn <- function(x) { return(eval(parse(text= expressao), list(x))) } return(fn) } dados <- c("x+2") P <-…
-
2
votes2
answers144
viewsQ: Matlabfunction() similar to MATLAB in R
There is a function similar to matlabFunction() MATLAB? Or how to do this in R? The function in MATLAB. syms x dados = inputdlg({'P(x): ', 'Q(x): ', 'R(x): ', 'N: '},'Dados'); P =…