similar to: Counterpart for Matlab's 'feval'?

Displaying 20 results from an estimated 4000 matches similar to: "Counterpart for Matlab's 'feval'?"

2005 Aug 12
1
Concerning reading of SAS-files
Hi! I'm trying to start a credibility estimation study with a coule of data sets that are created for SAS. The data sets are saved as ".sas7bndx" and ".sas7bdat". I've tried reading them to R with the function 'read.xport' but this returns the error message 'Error in lookup.xport(file) : unable to open file'. Are there any other functions that one
2005 Aug 19
3
Handling of tables in R
Hi! I have a few questions concerning reading of tables from R to other programs. My main question is if it’s even possible to read a table created in R (with the functions data.frame and save) to Excel (or maybe SAS) and if so how does one do this? If I just mark the table in R and copy-paste to Excel the whole table ends up in one single cell, (of course). My goal is to
2006 Oct 13
1
NA-handling in glm.fit?
Dear Sir or Madam, I'm wondering if there is any routine or argument in the function 'glm.fit' that makes it handle NA's. The function 'glm' can handle NA's but I can't make make it work (or find anything written on this in the help files) with 'glm.fit'. Is it even possible in'glm.fit'? How? Thanks before hand, Fredrik Thuring, Business Researcher
2005 Jun 08
2
Solve f(x) = 0
Hi! I´m need a function that solves the equation f(x) = 0 (i.e. the root of the function) when f is a nonlinear function. Is there any? I´ve tried nlm and optim on the square of the function but the solution is very unstable. Thanks before hand. / Fredrik Thuring ------------------------------------------------------------------------------ This e-mail and any attachment may be confidential
2006 Jun 12
1
r's optim vs. matlab's fminsearch
Hi, I'm having a problem converting a Matlab program into R. The R code works almost all the time, but about 4% of the time R's optim function gets stuck on a local minimum whereas matlab's fminsearch function does not (or at least fminsearch finds a better minimum than optim). My understanding is that both functions default to Nelder-Mead optimization, but what's different about
2005 Jun 08
2
Converting code from MATLAB to R
Hi, I'm having trouble converting code from MATLAB to R; I want to find the equivalence to MATLAB's function 'fsolve'. I've tried 'nlm', on the squared argument, in R but i did not get the same results. Thankful if helped. Best regards, Martin Englund ------------------------------------------------------------------------------ This e-mail and any attachment may
2004 Jan 30
1
MATLAB to R
Ladies and Gentlemen, In MATLAB, I can write: for J=1:M Y(J+1)=Y(J)+ h * feval(f,T(J),Y(J)); ... In R, I can write above as: for (J in 2:M) { y = y + h * f(t,y) ... } ---- In MATLAB, I can write: for J=1:M k1 = feval(f,T(J),Y(J)); k2 = feval(f,T(J+1),Y(J)+ h * k1 How do I write k2 in R? k1 = f(t,y) k2 = ? Thanks, /oal
2004 Feb 12
4
R-help
Hi, I have a problem. I would like to put my SAS-code into R. Could I do that, if yes, how? Best regards Jim Gustafsson _______________________________________________________________________________ Codan Insurance, Gammel Kongevej 60, DK-1790 Copenhagen V telephone: +45 33 55 55 55, fax: +45 33 55 21 22 e-mail: jgu@codan.dk http://www.codan.dk [[alternative HTML version deleted]]
2007 Mar 27
3
Use of 'defineVar' and 'install' in .Call
Dear all, [system and version information below] I am trying to modify a C function for finding the root of an expression. The function is to be called from R as .Call with input parameters: f: expression for which we will find the root guesses: interval for the solution stol: tolerance rho: environment The original functions I use are: SEXP mkans(double x) { SEXP ans; PROTECT(ans =
2007 Mar 27
3
Use of 'defineVar' and 'install' in .Call
Dear all, [system and version information below] I am trying to modify a C function for finding the root of an expression. The function is to be called from R as .Call with input parameters: f: expression for which we will find the root guesses: interval for the solution stol: tolerance rho: environment The original functions I use are: SEXP mkans(double x) { SEXP ans; PROTECT(ans =
2006 Apr 10
0
Handling of NA ´s in the matrix multiplication function
Hi! Is there a way of handling NA?s in the matrix multiplication function '%*%'? I cant find anything concerning this in the help files. I?m thinking of some sort of setting such as na.rm=T. Thanks before hand to anyone how can help me! Fredrik Thuring, Junior Business Researcher __________________________________ Codan Forsikring, Gammel Kongevej 60, DK-1790 Copenhagen V tel: +45 33 55
2007 Apr 30
2
Structuring a rails application
I try to structure my rails application with modules, but i have problems to define the routes. Is'' it possible to use someting like this: <%= link to ''...'', :module => :module_name, :controller => :ctrl_name [...] -%> ? The controllers i want to access are in app/controllers/module_name. I thougt i could define something like this: map.connect
2009 Dec 24
3
Newbie: colSums() compared with Matlab's sum()
Hi all, I'm trying to learn R after years of Matlab's experience. Here is an issue I couldn't solve today. Consider the following piece of code (written by memory): for(i in 1:n){ submat <- data[1:i,] C <- colSums(submat) } The problem is that at the first iteration, data[1:1,] reduces to a vector and colSums returns an error. This sounds really strange to me
2007 May 07
1
looking for equivalent of matlab's medfilt1 function
Dear all, I have several files with Matlab code, which I am translating to R. For the zero-level approach, I took the very old shell script from R-help archives, which has made some obvious leg-work such as replacement of "=" with "<-". Now I am translating indexing, matrix operations and function call using this table http://37mm.no/mpy/octave-r.html The problem is, I
2009 Mar 10
2
R equivalent to MATLAB's "whos" Command?
  By any chance is there an R equivalent to MATLAB's "whos" command?   I tried searching R and R-seek, but didn't really come up with anything.    There are several items I would like to make sure are stored in the workspace and check their values.   Thank you again for your help and any feedback.     > ?workspace No documentation for 'workspace' in specified
2007 Sep 07
2
Matlab's lsqnonlin
Hi! I'm translating some code from Matlab to R and I found a problem. I need to translate Matlab's function 'lsqnonlin' (http://www-ccs.ucsd.edu/matlab/toolbox/optim/lsqnonlin.html) into R, and at the beginning I thought it would be the same as R's 'optim'. But then I looked at the definition of 'lsqnonlin' and I don't quite see how to make
2007 Jul 16
1
R equivalent to Matlab's Bayes net toolbox
Hi, I'm attending summer School at UCLA (IPAM) on "probabilistics models of cognition". I have been an R-user since v. 1.4.1, but was trained in the frequentist tradition (as most psychologists!). I found that all faculty here use matlab and Murphy's bayes net toolbox. I have not had the need to use matlab before, and would love to stick to R for graphics models and
2012 Dec 22
4
Does R have an equivalent for Matlab's cell array?
Hi I have a time series of measurements: every 10 min. a value was logged. The data look like: 20100914 08:01 3.74 20100914 08:11 3.74 20100914 08:21 3.71 20100914 08:31 4.39 20100914 08:41 3.74 This data spans several months. I would like to group the data per day. In Matlab it is fairly easy to obtain a cell array, of which the first column contains the date of each
2009 Jun 30
2
Equivalent to Matlab's "Ans"
Hi everyone, I was just wondering if there is an equivalent in R to the shortcut "Ans" in MatLab whereby I can use the previous result for the current command? This could save a lot of time when hacking in R itself, not from an editor. Thanks, Stephane [[alternative HTML version deleted]]
2007 Jan 17
12
Excel sheet generation
Hi, Does anyone know of a package that will help with generation of spreadsheets? (xls files, not csv) Thanks, Fredrik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe