Displaying 20 results from an estimated 8000 matches similar to: "Keeping package sources for recompilation with new R version?"
2009 Oct 30
2
Ubuntu packages compiled with 2.9
Hi
I upgraded to R 2.10.0, and I encounter a problem with some packages on R,
installed via apt-get..
They are still compiled by 2.9 and give me an warning when I load the
packages. Will these packages be recompiled with R 2.10, or should I rather
switch to self-compiling?
Cheers,
Rainer
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys.
2009 Feb 25
0
R interest group at Stellenbosch University formed: R@SUN
Hi
I know this only affects a small number of subscribers, so I apologize
to the "Non Stellenbosch University subscribers" for the noise.
Two weeks ago, four R users met and discussed the possibility of forming
an interest group of R users at SUN. The interest group (R at SUN) has the
aim of:
? Promote the use of R at SUN (Stellenbosch University);
? Organize Hons stats courses using
2009 Dec 11
1
Creating bibtex file of all installed packages?
Hi
is there an easy and fast way, to generate a BibTeX file of all installed /
loaded packages and R?
I know about toBibtex(citation()) to extract the BibTeX for a single
package, but how can I generate a file containg citations for all installed
/ loaded packages?
Cheers,
Rainer
--
NEW GERMAN FAX NUMBER!!!
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT),
2010 Jul 08
1
x-axis labels for barplot of zoo object
Hi
Let's assume, I have a dataset of 1000 datapoints, which represent daily
recordings of a measurement.
They are stored as a ts object (see example below)
Now I want to represent them as a barplot. I found the barplot in the zoo
package, but I have one problem: the x-axis labels. I would like to have the
x-axis labels as either years only (located at the beginning of the year),
or
2010 Oct 19
1
Implementing R's recycling rule
Hi
I want to use R's recycling rule. At the moment I am using the following:
x <- c(1, 2, 3)
n <- 10
## so using the recycling rules, I would like to get from FUN(x, n)==1
## I am doing:
xRecycled <- rep(x, length.out=n)[n]
This works, but it seems to me that I am missing something really basic here
- is there more straightforward way of doing this?
Cheers,
Rainer
--
NEW
2009 Oct 07
2
Second y-axis --- alternative to par(new=
Hi
is there an alternative to par(new), for ading data to a plot for a
different y-axis?
My problem with par(new=TRUE) is, that it re-defines all axis and labels (as
in example 1) and one has to use xlim=... to fix the x-axis.
I am looking for something, which simply resets the y-axis, so that a new
plot() (or points()/lines()) keeps the x-axis, but re-defines the y-axis.
Is there something
2010 Sep 25
2
OT: What distribution is this?
Hi
This is OT, but I need it for my simulation in R.
I have a special case for sampling with replacement: instead of sampling
once and replacing it immediately, I sample n times, and then replace all n
items.
So:
N entities
x samples with replacement
each sample consists of n sub-samples WITHOUT replacement, which are all
replaced before the next sample is drawn
My question is: which
2009 Oct 02
1
nls not accepting control parameter?
Hi
I want to change a control parameter for an nls () as I am getting an error
message "step factor 0.000488281 reduced below 'minFactor' of 0.000976562".
Despite all tries, it seems that the control parameter of the nls, does not
seem to get handed down to the function itself, or the error message is
using a different one.
Below system info and an example highlighting the
2011 Feb 01
2
How to change size of xlab inplot?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I want to increase the size of the text for xlab in the plot command:
plot(1,1, xlab="Label")
I tried cex, cex.caption and others, but none worked. Is there a way of
using cex=2 for the xlab?
Thanks,
Rainer
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of
2010 Jul 29
2
Replace last element in a vector - elegant solution?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I have to replace the last element of a vector with 0, but the length of
x is not known at coding time. So I do the following:
x <- 1:10
x
x[length(x)] <- 0
x
it is working nicely, but I am wondering: is there a more elegant
solution( like tail(x, 1) <- 0 , which does not work)?
Thanks,
Rainer
- --
Rainer M. Krug, PhD (Conservation
2006 Dec 01
2
specify point shape for ggplot (equivalent to pch)?
Hi
is it possible to specify the shape of the point to be used in ggplot
(as with pch in plot)? I couldn't find anything in the help.
Thanks
Rainer
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Department of Conservation Ecology and Entomology
University of Stellenbosch
Matieland 7602
South Africa
Tel: +27 - (0)72 808 2975 (w)
Fax: +27 - (0)86 516 2782
Fax:
2011 Mar 11
2
How to get all combinations between two character vectors?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I know there is a function - I have used it before - but I always forget
what it is called...
I need the combination of two character vectors, i.e:
x <- c("a", "b")
y <- c("x", "y")
z <- THEFUNCTION(x, y)
z == c("ax", "ay", "bx", "by")
I promise I will
2011 Jan 13
1
Unexpected behaviour of write.csv - read.csv
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
Assuming the following:
> x <- data.frame(a=1:10, b=runif(10))
> str(x)
'data.frame': 10 obs. of 2 variables:
$ a: int 1 2 3 4 5 6 7 8 9 10
$ b: num 0.692 0.325 0.634 0.16 0.873 ...
> write.csv(x, "x.csv")
> x2 <- read.csv("x.csv")
> str(x2)
'data.frame': 10 obs. of 3 variables:
$ X:
2006 Sep 22
1
Update to Dillo browser question
Hi
I asked about if there is any way of opening URLs from the help browser
in the same window of the same dillo browser - here is the answer.
Just to reiterate: dillo is for me the perfect browser for the help of R
when you use ?...
Rainer
-------- Original Message --------
Subject: Re: [Dillo-dev] Opening new URL in same instance and -s option
Date: Thu, 21 Sep 2006 21:31:57 -0400
From:
2011 Jan 11
0
Add line to plot from stl decomposed time series?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I would like to add a line to the plot of the data panel of a stl
decomposed time series.
Example:
plot(stl(nottem, "per"))
plots a 4(or is t 8?) panel graph. I thought that I might be able to use
mfg to plot in the top (left?) panel ("data"), but it is not working.
Any help appreciated,
Rainer
- --
Rainer M. Krug,
2007 Sep 20
2
referencing packages?
Hi
I know how to referenc R in a scientific paper - but is there a
standardised way to reference packages?
Thanks
Rainer
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE DISCONTINUED END OF MARCH
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
2010 Dec 08
1
RGL crashes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
rgl crashes my R session, when resizing the rgl graphic window.
I am using Ubuntu Maversick, with dual monitor setup. If I disconnect
one monitor, I can resize it "a little bit", but it still craches if I
enlarge it to much.
I assume that the problem has to do with allocated graphic memory in the
kernel, but why is R crashing
2010 Dec 08
1
RGL crashes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
rgl crashes my R session, when resizing the rgl graphic window.
I am using Ubuntu Maversick, with dual monitor setup. If I disconnect
one monitor, I can resize it "a little bit", but it still craches if I
enlarge it to much.
I assume that the problem has to do with allocated graphic memory in the
kernel, but why is R crashing
2007 May 28
1
Where to find "nprq"?
Hi
I am trying to install the package "pheno", but it needs the package
"nprq" by Roger Koenker et al. which I can I find this package? It does
not seem to be on CRAN and googling also doesn't give me an URL - is it
still somewhere available?
Thanks,
Rainer
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE DISCONTINUED END OF
2010 Nov 12
1
Optimizing compilation of R
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I know this has been asked before, but I can not find it - so my apologies.
I want to compile R myself, to optimize it for speed. There is a small
section (a few lines actually) in the R-admin manual (Compilation-flags)
which states that the LDFLAGS "on recent systems
?'-Bdirect,--hash-style=both,-Wl,-O1'? is recommended".
But