Displaying 20 results from an estimated 8000 matches similar to: "how to unbreak a circular package dependence (S4 class data)"
2006 Aug 06
2
help with method_missing in ActiveRecord
I am serializing a data object (FooData) into an ActiveRecord column (Foo).
I''d like to be able to do delegate methods to the data class if the Foo
class doesn''t have that attribute. So instead of:
f = Foo.new
f.data.item1
I''d like to do:
f = Foo.new
f.item1
I was hoping that I could add a method_missing method to my Foo class and
call methods in the FooData class
2010 Mar 18
2
recommendations on use of -> operator
I have never used -> but I noticed at
http://github.com/jiho/r-utils/blob/master/beamer_colors.R
that some people do. In fact, the above-named code has a sort of elegance about it (except for the use of "=" for assignment...). To my eye, -> calls to mind a type of assignment that is meant to stand out. For example, perhaps it would make sense to use -> to assign
2005 May 06
1
R on Macintosh OSX Tiger
Hi. I'm not having any luck installing the binary for the new
Macintosh OS called "Tiger".
I get error messages as below.
Can anyone offer me some advice? (PS: I checked the bug list first
but a search on "Tiger" turned up nothing so I hope it's OK to post
here.)
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared
1997 Dec 02
1
R-alpha: Re^2: data file names
[R-devel'ers: spill over from R-core .. -- MM]
>>>>> "KH" == Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:
>>>>> Robert Gentleman writes:
>> In preparing the next Windows release I want to make opening up
>> system data files (and their documentation) more transparent. I
>> would really like to adopt the
2007 Oct 22
1
question on axis box with asp=1
I've been using (and loving) R for quite a while now, but I have to
admit that something simple is still stumping me.
The question is how I can control the box within which a plot is
drawn, in cases where I'm controlling the aspect ratio with the "asp"
argument.
The problem comes up in pdf() and png() output formats, but also with
interactive windows, and so I'll
2009 Nov 07
1
EM algorithm to fit circular mix of uniform+Von Mises
Hi all,
I'm curious if anyone has coded an Expectation-Maximization algorithm
that could help me model some circular data I have. I'd like to model
it as a mixture of uniform and Von Mises centered on 0, so the only
free parameters is the mixing proportion and the kappa of the Von
Mises. I couldn't find anything in the contributed packages that
seemed to suit this purpose. Any
2000 Feb 24
1
queueing problems
howdy R friends,
I'm new but I used to play with S+ a long time ago. Can someone please help
me with how to approach this?
I have some response time data I want to 'correlate' with other data. I
believe queueing is involved so I need to prove somehow (F test?) that
response ~ exponential(...)
How do I go about this? I cant find exponential in 'nlm' or other
functions.
2000 Jun 03
4
How to do linear regression with errors in x and y?
QUESTION: how should I do a linear regression in which there are
errors in x as well as y?
SUPPLEMENT: I've seen folks approach this problem by computing
eigenvectors of the covariance matrix, and that makes sense to me.
But I'm wondering if this has a "pedigree" (i.e. if it makes sense to
folks on this list, and if it's something that has been published, so
I can refer to
2000 Mar 14
1
boxplots of 1 datum AND comparing rank and boolean
Q: When R does 'plot()' in a context that yields boxplots, is there a
way to force it to draw something even if there are only 1 or two data
in the category? I'd like for it to draw the data, perhaps using the
outlier symbols. My code is (*** marks the line in question) is the
following, for R-1.0.0:
d <- read.table("nserc-results-pgsb", header=FALSE,
2000 Feb 24
2
(-1 as index) OR (envelope for QQ)
I'm new to R (and to S) and am wondering about code from pages 72 and
83 of MASS (Venables+Ripley, 3rd edition), to draw an envelope on a QQ
plot. Copying from the book, I've got:
#... code whose gist is "a.fit <- nls(..."
num.points <- length(resid(a.fit))
qqnorm(residuals(a.fit)) # illustrate data-model residuals
qqline(residuals(a.fit))
samp <-
2004 May 03
2
R-1.9.0 won't compile on OSX (PR#6848)
Full_Name: Dan Kelley
Version: 1.9.0
OS: OSX (Darwin 7.3.0)
Submission from: (NULL) (129.173.23.36)
R-1.9.0 will not compile on Apple OSX (Darwin kernel 7.3.0). The error msg
starts as follows, and has several more errors.
gcc -dynamiclib -L/sw/lib -L/usr/local/lib -install_name
/Library/Frameworks/R.f
ramework/Versions/1.9.0/Resources/bin/libRlapack.dylib -o libRlapack.dylib
dlapa
ck0.lo
2003 Jun 16
1
R 1.7.1 is released
I've rolled up R-1.7.1.tgz a short while ago. This is a patch version
mainly fixing up an assortment of issues (see below). Note also that
it comes with an updated set of recommended packages, fixing a couple
of nasty issues in at least foreign and nlme.
You can get it from
http://cran.us.r-project.org/src/base/R-1.7.1.tgz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
2003 Jun 16
1
R 1.7.1 is released
I've rolled up R-1.7.1.tgz a short while ago. This is a patch version
mainly fixing up an assortment of issues (see below). Note also that
it comes with an updated set of recommended packages, fixing a couple
of nasty issues in at least foreign and nlme.
You can get it from
http://cran.us.r-project.org/src/base/R-1.7.1.tgz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
2004 May 01
1
will not compile on Fedora Core 2 Test 2 (PR#6844)
Full_Name: Dan Kelley
Version: 1.9.0
OS: Fedora Core 2 Test 2
Submission from: (NULL) (142.177.39.160)
Pasted below is part of the output from ./configure && make on Fedora
Core 2 Test 2. I am not sure what else to try, but if there are tests that
might help, I'd be very happy to do them. (Note: this OS is pretty fresh, just
having been released a few days ago. This is the
2006 May 28
1
cartograms in R?
Q: Has anyone implemented cartograms [**] in R? A search on the R
site turned up
https://stat.ethz.ch/pipermail/r-sig-geo/2005-December/000698.html
which led to
http://www.okada.jp.org/RWiki/index.php?cmd=read&page=Rmap%A4%F2%BB%
C8%A4%C3%A4%BF%C3%CF%BF%DE%C9%BD%BC%A8&word=Rmap#content_1_35
which has (one form of) a cartogram as a PNG, but which doesn't seem
to have code. (The
2000 Mar 01
1
tiny bug in R installation (redhat)
First, let me join the chorus of praise for R. (Hey, isn't somebody going
to analyse all these praise emails in some statistical way?)
I'm writing to point out an error in the file permissions in the
linux/redhat version. (I'm using R-base-1.0.0-1.i386.rpm, by the way.)
The permissions in /usr/lib/R/doc/html aren't correct, since
'function.html' and
2006 Mar 15
1
R_alloc problem on Mac OSX (PR#8683)
Full_Name: Dan Kelley
Version: 2.2.1
OS: Mac OSX
Submission from: (NULL) (129.173.23.36)
I'm having difficulties getting R_alloc() to work on a 64-bit Mac running R
2.2.1 installed via a .dmg file obtained from the R site. Details are given
below, in a level of detail that I hope is appropriate. My eye was particularly
drawn to line #2 in the gdb 'where' output, but line #1 seems
2004 Mar 19
0
Fwd: osx/fink: cannot do "R INSTALL" (library mixup)
Begin forwarded message:
> From: Dan Kelley <Dan.Kelley at Dal.Ca>
> Date: March 19, 2004 12:00:01 PM AST
> To: Don MacQueen <macq at llnl.gov>
> Subject: Re: [R] osx/fink: cannot do "R INSTALL" (library mixup)
>
> That works perfectly! THanks. I did
> 524 export PKG_LIBS="-L/usr/local/lib -L/sw/lib"
> 525 R INSTALL pspline
> and
2007 May 24
2
Calculation of ratio distribution properties
Hi all,
Looking to calculate the expected mean and variance of a ratio
distribution where the source distributions are gaussian with known
parameters and sample values are correlated. I see (from wikipedia:
http://en.wikipedia.org/wiki/
Ratio_distribution#Gaussian_ratio_distribution) that this calculation
is quite involved, so I'm hoping that someone has already coded a
function to
2012 Mar 14
3
Export a plot/figure to excel or word?
Hi all,
I have created forest plots using the package "meta" that I submitted as pdf for publication. I just received an email from the editor asking me if I could send these files in an Excel or MS Word format such that they can treat them as tables with box plots.
I am not sure if I can do this... Is this possible? I've tried the capture.output command, but I get a blank MS Word