similar to: R not recognized in command line

Displaying 20 results from an estimated 1000 matches similar to: "R not recognized in command line"

2010 Sep 13
2
How to do a trig regression
Hello All, I cant seem to do a trig regression in R. The equation is as follows : y = a+b*(sin((2*pi*x/360) - c))^2 a, b, c are coefs that I want. y, x are input vectors. The equation I put into R: lm(y ~ sin(2*pi*x/360)^2) This equation is missing the c and I dont get the right answer. Also, I dont know how to plot the lm over the x values instead of the indices. Any help is sincerely
2010 Jul 13
1
Time Variable and Historical Interest Rates
Guys, I wrote to the finance mailing list earlier with my questions but was directed here. Sorry for the repeat. --------------- library(quantmod) .... now <- Sys.time() midnight <- strptime() # <---- I want to make this a static variable that will be equal to 12:00:00 am but I dont know what to put here. I keep getting NA for everything I do if(now == midnight) {
2010 Jul 19
2
Historical Libor Rates
Hello All, Does anyone know how to download historical LIBOR rates of different currencies into R? Or if anyone knows of a website that holds all this data...I only need up to january of 2000. Also, how can we make the row names the index of a plot (the names of the x values)? [[alternative HTML version deleted]]
2010 Jul 20
5
Help with time in R
Hi, I have a problem with the time formatting in R. I have entered time in the format "MM:SS.xyz" and R has automatically classified this as a factor, but I need it numerically. However when I use as.numeric() it gives me totally different numbers. Is there any way I can tell R to read thes input as a number? Thank you very much [[alternative HTML version deleted]]
2012 Apr 25
2
Where to find the p-value of a correlation test
Hey everyone, I hope this finds you in good cheer. I just have a quick question: What is the function that outputs the p-value for correlation? cor(x,y) only provides the R value. I would like the p-value associated with it. Thank you all for your help! [[alternative HTML version deleted]]
2011 May 05
1
problem with location of libraries 64-bit (opensuse)
Dear list, there seems to be a problem with the standard location of R?s 64-bit libs at least under openSUSE. I had two user questions regarding the compilation of rpy2 for 64-bit systems. Personally I don`t know rpy2 but maybe someone on this list can decide if the mistake lies on R`s side or on rpy2?s side or in between. R-devel is installed in these cases, I asked. Latest R-base or
2009 Nov 11
1
fisher.test negative value error
Hi all, I am new to python, R and rpy2. I having few errors when I am using 'fisher.test' function where I am struck now. Please help to fix these bugs. My code for fisher.test goes this way *from rpy2 import * import rpy2.robjects as robjects def fisherExact(a,b,c,d): v = [a,b,c,d] m = robjects.r['matrix'](v,2,2) s = robjects.r['fisher.test'](m) return s *
2017 Jul 20
2
Installing rpy2 on Red Hat 6
I need to install rpy2 on RHEL6. The version of R in the 6 repos is 3.0, and rpy2 does not work with that version. I installed R 3.3.3 following the directions here: https://oguya.ch/posts/2017-03-18-building-R-on-rhel-6/. But even with 3.3.3 it's still failing. Using pip it fails with: /usr/local/lib64/R/lib/libR.a(CommandLineArgs.o): could not read symbols: Bad value and installing from
2013 Feb 10
1
rpy2 (Python <--> R)
Hi - I am having trouble installing rpy2. I have already compiled R as a shared library, but I do not have admin privileges on so I am trying to install rpy2 with: pip install -user rpy2 but I am getting the following error: ======================================== ./rpy/rinterface/_rinterface.c:86:31: fatal error: readline/readline.h: No such file or directory compilation terminated. error:
2017 Jul 20
0
Installing rpy2 on Red Hat 6
> On Jul 20, 2017, at 7:53 AM, Larry Martell <larry.martell at gmail.com> wrote: > > I need to install rpy2 on RHEL6. The version of R in the 6 repos is > 3.0, and rpy2 does not work with that version. I installed R 3.3.3 > following the directions here: > https://oguya.ch/posts/2017-03-18-building-R-on-rhel-6/. But even with > 3.3.3 it's still failing. Using pip it
2009 Apr 06
1
Possible bug: How does libR.so find RHOME?
Hi While installing RPy2, I had curious problems which, if I traced them back correctly, have their root in the way that libR.so find the R installation directory. I wonder if this might be a subtle bug that only causes problems when one has several versions of R on one system but then can be very annoying and cause very strange behaviour. It seems to me that libR.so asks the Unix shell to
2011 Aug 16
1
windows directory structure
Hi, I have some trouble to get the Python bindings RPy2 running with the latest release of R. I'm using Windows. The reason is, that RPy2 looks at certain places for R.dll, as $R_HOME/bin and $R_HOME/lib, but not at $R_HOME/bin/i386 where the dll is located on my machine. So I suspect that the directory structure has changed and the RPy2 team did not notice it. I would like to discuss a
2009 Nov 19
3
Issue when calling deparse(substitute(x)) from C with "anonymous" R vectors ?
Dear list, When calling R from C, what appears like a spurious error can be triggered during the execution of chisq.test(x, y). This is happening when the following conditions are met: - x and y are "anonymous" C-level R vectors (they do not have a symbol), but they are protected from garbage collection - x and y are "not too small" (it was experienced as soon as they are
2015 May 03
2
C-API: check whether R has been initialized ?
Beside the possible argumentation that with an API elegance and convenience might sometimes be superior to necessity, the suggested pattern ("every program, including R itself, keeping its own flag") does no work too well when the nested embedding of R is involved. A concrete example is: ``` $ R -q > library('rPython'); python.exec('import rpy2.robjects') R is already
2009 Mar 21
2
How to change Rlapack by lapack (for rpy2 installation)?
(I asked an earlier question on the rpy2 installation to the rpy2 list, the solution there was to edit the setup.py script, but this looks beyond what I can do unless someone tells me exactly what to modify). I have R 2.8.1 on 2 machines running ubuntu 8.04 (packages R-base and R-base-dev, among others, installed using Synaptic) and while the installation of rpy2 went fine on machine1, failed on
2010 May 13
2
Compiling R with --enable-R-shlib for rpy2 error
Hi, I am trying to compile R with the command below in order to install rpy2. ./configure --prefix=/usr/local/R/R-2.9.2 --with-gnu-ld --with-cairo --with-x --enable-R-shlib However, error the I have gotten was: /usr/bin/ld: CConverters.o: relocation R_X86_64_32S against `R_FunTab' can not be used when making a shared object; recompile with -fPIC CConverters.o: could not read symbols: Bad
2016 Dec 27
3
Definition of uintptr_t in Rinterface.h
Hi, I was recently pointed out that a definition in Rinterface.h can be conflicting with a definition in stdint.h: /usr/include/R/Rinterface.h has: typedef unsigned long uintptr_t; /usr/include/stdint.h has: typedef unsigned int uintptr_t; (when 32bit platform complete definition is: #if __WORDSIZE == 64 # ifndef __intptr_t_defined typedef long int intptr_t; # define
2009 Nov 30
1
:Re: PROTECT and OCaml GC.
>>> On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote: >>> >>> FWIW what I think you should be really looking at is >>> R_PreserveObject/R_ReleaseObject. > > OK. Thanks. >>> I would suggest looking at the many other R embeddings in other >>> languages that already exist since I don't think you approach is >>> very viable
2015 May 04
2
C-API: check whether R has been initialized ?
rPython appears to provide an interface from R to Python by embedding Python and I'd think that it can safely assume that R has been initialized, but might not be the point here. The issue is that a Python package embedding itself R (here rpy2) appears to have no way to know that earlier in the life of the process R was initialized. 2015-05-03 19:48 GMT-04:00 Duncan Murdoch
2015 Apr 20
2
Dependency problem with "python-rpy2" package
Hello, I have a problem with package "python-rpy2" with Debian Wheezy repository. I use this repo : deb http://cran.r-project.org/bin/linux/debian wheezy-cran3/ This package depends on "python-singledispatch" but it doesn't exist in official Debian repo... Could you help me to fix this issue ? Thanks a lot,