Displaying 20 results from an estimated 200 matches similar to: "C++ code from R"
2011 Sep 19
1
Rscript path problem on R 2.13.1 for Ubuntu 11.04?
Dear all,
finally decided to do an Ubuntu upgrade and a new clean R install from
http://cran.r-project.org/bin/linux/ubuntu/.
However, while trying to install a package from R-forge I encountered
problems, involving error messages saying "Rscript execution error: No
such file or directory" (see below).
The same procedure works on Ubuntu 11.04 running R 2.12.1-1 from the
Ubuntu
2011 Feb 11
1
Help optimizing EMD::extrema()
Hi folks,
I'm attempting to use the EMD package to analyze some neuroimaging
data (timeseries with 64 channels sampled across 1 million time points
within each of 20 people). I found that processing a single channel of
data using EMD::emd() took about 8 hours. Exploration using Rprof()
suggested that most of the compute time was spent in EMD::extrema().
Looking at the code for EMD:extrema(),
2011 Nov 03
1
EMD arguments default values
Hi,
i'm using this command line with EMD package
filename<-emd(y,x,boundary="wave",plot.imf=F)
i'd like to know if this EMD uses default values for non-specified arguments. i'm especially interested in "stoprule", "max.imf", "tol" behavior in such cases.
Thanks
2013 Feb 15
1
Remove site path from .libPaths
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I am sure I am missing something really basic, but I can't figure it out.
I want to start R so that I can specify the location for the Library tree. In principel simple:
As I only want it dependent on the directory I stat R in, I put a .Rprofile file in the directory.
My default path is:
> .libPaths()
[1]
2006 Sep 06
4
problem with putting objects in list
Hi
I use the following code and it stores the results of density() in the
list dr:
dens <- function(run) { density( positions$X[positions$run==run], bw=3,
cut=-2 ) }
dr <- lapply(1:5, dens)
but the results are stored in dr[[i]] and not dr[i], i.e. plot(dr[[1]])
works, but plot([1]) doesn't.
Is there any way that I can store them in dr[i]?
Thanks a lot,
Rainer
--
Rainer M. Krug,
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:
2006 Sep 20
4
Calculating mean together with split
Hi
I have a table called npl containing results of simulations.
It contains about 19000 entries and the structure looks like this:
NoPlants sim run year DensPlants
1 6 lng_cs99_renosterbos 1 4 0.00192
.
.
.
it has 43 different entries for sim and year goes from 1 to 100, and run
from 1 to 5.
I would like to calculate the mean of DensPlants for each
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
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:
2005 Dec 15
2
Why is bubbles() creating empty png graphs?
This code below produces empty XXX.png files - if I use plot(), it works
and if I enter the commands
png(filename=fn)
bubble(positions, do.sqrt=FALSE, main=q)
dev.off()
manually, it works as well.
I am lost - any help appreciated.
The weird thing is that it worked before I made some changes... (I don't
have a copy of the working version...).
R version:
platform i686-pc-linux-gnu
arch
2007 Oct 01
4
Concatenating one character vector into one string
Hi
I am sure this is simple - but how can I convert one charecter vector
into one string?
example:
x <- c("This ", "is ", "one ", "sentence.")
should become
"This is one entence"
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.
2005 Dec 20
1
Problems installing R 2.1.1. from rpm (R-base-2.2.0-1.i586.rpm) on SuSE 10
Hi
I have problems installing R 2.1.1. from rpm (R-base-2.2.0-1.i586.rpm)
on SuSE 10. It installs fine, all dependances are OK (at least Yast does
not complain) but when I try to run R, it gives the following error message:
symbol lookup error: /usr/lib/libblas.so.3: undefined symbol:
_gfortran_filename
and R quits.
blas version: 3.0-926
Any help appreciated,
Rainer
--
--
Rainer M.
2006 Sep 21
1
transforming factor back to numbers
Hi
I generate a new dataframe by doing:
npl.agg <- aggregate(npl$DensPlants, list(year=npl$year, sim=npl$sim),
mean, na.rm=TRUE )
Now I want to plot it by using
coplot(npl.agg$x ~ npl.agg$year | npl.agg$sim, type="l")
but, as npl.agg$year is seen as a factor, the order of the points on the
x-axis (time axis) does not follow the numerical sorting 1...100, but
rather the text
2000 Jul 17
3
No subject
We are looking for another solution besides Samba, which will allow our
application developers using Windows 95/98/NT to access share on our Sun Box
running Solaris 2.6 operating systems. Our supervisor feels the Samba
installation process is more complex than what we really need.
Any suggestions?
Steven Hawks
NCR Corporation
IT Services - GAD Sales and Business Infrastructure
* 1529 Brown St.,
2006 Sep 20
5
Beginners manual for emacs and ess
Hi
I heard so much about Emacs and ESS that I decided to try it out - but I
am stuck at the beginning.
Is there anywhere a beginners manual for Emacs & ESS to be used with R?
even M-x S tells me it can't start S-Plus - obviously - but I want it to
start R...
Any help welcome (otherwise I will be stuck with Eclipse and R)
Rainer
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc
2008 Aug 01
1
bug in readRAST6 function in package spgrass6
Hi
if I try to import a raster layer which consists only of NULL values
from grass by using the readRAST6, I get an error message:
> readRAST6("HSericea_seedsDisperse_2007")
ERROR: Invalid value for null (integers only)
Error in readBinGrid(rtmpfl11, colname = vname[i], proj4string = p4,
integer = to_int) :
no such file:
2006 Oct 25
3
simplification of code using stamp?
Hi
I have the following code which I would like to simplify. Id does linear
regressions and returns the r-squares, and the coefficients.
It runs slow, as it is doing the regressions for each - is it possible
to get the values in a dataframe which looks as follow:
expert | xx | seeds | r.squared | slope | intercept
Thanks in advance,
Rainer
library(reshape)
rsqs <- as.data.frame(
2006 Dec 21
5
cft through changes (new tool based on puppet)
I''ve started working on a new tool that should help with modifying the
configuration of a system under the control of puppet. The tool is
called cft (pronounced ''sift'') and is inspired by Gnome''s Sabayon[1] in
taht it watches how an admin changes a system and spits out a puppet
manifest based on its observations.
Cft''s website is
2006 Mar 23
4
Create graphs from text console
Hi
I am using R 2.2.1 under Linux (SuSE 10) and would like to know if it is
possible to create graphs, i.e.
jpeg(filename=fn)
try( coplot( mor$I_Morisita ~ mor$Year | mor$RunStr, show.given=FALSE) )
dev.off()
from a text console?
It gives me an error message on the jpeg() command:
Error in X11(..snip..) unable to start device jpeg
In addition: warning message:
unable to open connection to
2004 Aug 06
3
[Re: icecast2 ??]
Behold, gtgbr@gmx.net hath decreed:
> Dale Ghent wrote:
> > Icecast2 is icecast2. I'm talking about it's lack of innovation (ogg
> > streaming! woopdefuckingdoo) as well as it's lack of functionality that
> > doesnt even near icecast 1.x (yp, acls, metadata, web-based admin).
>
> Apparently, you haven't tried Icecast2-alpha, yet.
So... we have to try an