Re: [R] read.csv and field containing single quotes

2012-03-27 Thread Rainer M Krug
n(x) gsub("\"", "\"\"", x))) > if (header){ > nms <- txt[1,] > txt <- txt[-1,] > } > txt <- as.data.frame(txt, stringsAsFactors=stringsAsFactors) > if (header) names(txt) <- nms > txt > } > &g

Re: [R] R Large Dataset Problem

2012-04-13 Thread Rainer M Krug
quot; "1" "0" "0" "1" "1" "1" "0" "0" "1" "1" "1" "1" "0" "0" "1" "1" "0" Cheers, Rainer > > > Regards > > _

Re: [R] test if text is part of vector

2012-01-20 Thread Rainer M Krug
; > > Probably a very easy thing to do, but I am missing the logical > operator... and help(if) is not working check out %in% help: ?"%in%" Cheers, Rainer > > best regards, johannes - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), D

Re: [R] Virus Infection in colorspace_1.1-1.zip (R x64 2.14.1)

2012-01-25 Thread Rainer M Krug
__ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the >> posting guide http://www.R-project.org/posting-guide.html and >> provide commented, minimal, self-contained, reproducible code. > &

Re: [R] using mclapply (multi core apply) to do matrix multiplication

2012-02-07 Thread Rainer M Krug
that is less computation-intensive. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Rainer M. Krug, P

Re: [R] using mclapply (multi core apply) to do matrix multiplication

2012-02-07 Thread Rainer M Krug
even more control. Cheers and good luck, Rainer for the many cores system and our system administrator want to have easy instructions to follow. Thanks a gain. *From:* Rainer M Krug *To:* Alaios *Cc:* Ernest Adrogué

Re: [R] Version control (git, mercurial) for R packages

2012-02-09 Thread Rainer M Krug
know about rforge. Hope this helps, Cheers, Rainer > > Thanks, > > Peter > > __ R-help@r-project.org > mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do > read the posting guide http://www.R-project.org/posting-guide.html > an

Re: [R] Version control (git, mercurial) for R packages

2012-02-09 Thread Rainer M Krug
t.org > mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do > read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biolog

Re: [R] Version control (git, mercurial) for R packages

2012-02-09 Thread Rainer M Krug
Why was that option scraped? Rainer > > b. > > On 9 February 2012 21:59, Rainer M Krug wrote: > On 09/02/12 00:33, Tom Roche wrote: >>>> >>>> Peter Langfelder Thu Feb 9 00:01:31 CET 2012 >>>>> I'm exploring using a version control syst

[R] Workflow when using git (e.g. github) as SVN repo for package

2012-02-09 Thread Rainer M Krug
age are then created - but what is the best workflow for this? As many packages are hosted on github, there should be an easy and way to do it? Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence

Re: [R] Version control (git, mercurial) for R packages

2012-02-10 Thread Rainer M Krug
ent but thanks to > the hard work of Simon Urbanek, Duncan Murdoch, Brian Ripley and > others, this is a one-install process on all major platforms. True - no problem for developers. Cheers, Rainer > > Hadley > > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc

Re: [R] configure lyx2.0.2 with sweave in windows 32 bit.

2012-02-14 Thread Rainer M Krug
g mailing list > https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the > posting guide http://www.R-project.org/posting-guide.html and > provide commented, minimal, self-contained, reproducible code. - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,

Re: [R] matching a sequence in a vector?

2012-02-15 Thread Rainer M Krug
350, Qld ph: 0746 881372 fax: 0746 881192 > > > DISCLAIMER**...{{dropped:15}} > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the > posting guide http://www.R-project.org/pos

Re: [R] matching a sequence in a vector?

2012-02-15 Thread Rainer M Krug
p PLEASE do read the > posting guide http://www.R-project.org/posting-guide.html and > provide commented, minimal, self-contained, reproducible code. - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invas

Re: [R] parallel processing with multiple directories

2012-04-18 Thread Rainer M Krug
; www.public.asu.edu/~schaef/ > > __ R-help@r-project.org mailing > list > https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html and provide commented, minimal, > sel

[R] version problems of rkward in ubuntu hardy repository

2008-07-09 Thread Rainer M Krug
e the feeling, that the dependencies are not correct (it is looking for libqt4GUI, but I have a libqt4-GUI from the ubuntu repository). Just for information, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Plant Conservation

Re: [R] version problems of rkward in ubuntu hardy repository

2008-07-10 Thread Rainer M Krug
On Thu, Jul 10, 2008 at 6:26 AM, Vincent Goulet <[EMAIL PROTECTED]> wrote: > Le mer. 09 juil. à 06:20, Rainer M Krug a écrit : > >> Hi >> >> I tried to install rkward under ubuntu hardy heron, but it tried to >> use the one from the cran repository which was new

[R] RMySQL and R 2.7.0 - "Error in field.types$row.names : $ operator is invalid for atomic vectors"

2008-05-08 Thread Rainer M Krug
t <- data.frame(n1=runif(10), n2=runif(10)) > dbWriteTable( conn, tblName, dat, overwrite=FALSE, append=TRUE ) Error in field.types$row.names : $ operator is invalid for atomic vectors -- Rainer M. Krug, PhD (Conserv

[R] rpart with circular data?

2008-05-12 Thread Rainer M Krug
could use to transform aspect? Thanks Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Plant Conservation Unit Department of Botany University of Cape Town Rondebosch 7701 South Africa

[R] Using density() and turnpoint to Identify maxima in data

2007-11-19 Thread Rainer M. Krug
CH Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department of Botany University of Cape Town Rondebosch 7701 South Africa Tel:+27 - (0)21 650 5776 (w) Fax:+27 - (0)86 516 2782 Fax:+27 - (0)21 650 244

[R] Looking for simpler solution to probabilistic question

2008-01-15 Thread Rainer M Krug
Hi I have two processes which take with a certain probability (p1 and p2) x number of years to complete (age1 and age2). As soon as thge first process is completed, the second one begins. I want to calculate the time it takes for the both processes to be completed. I have the following script

Re: [R] Looking for simpler solution to probabilistic question

2008-01-15 Thread Rainer M Krug
tp://med.kuleuven.be/biostat/ > http://www.student.kuleuven.be/~m0390867/dimitris.htm > > > - Original Message - From: "Rainer M Krug" <[EMAIL PROTECTED]> > To: "r-help" <[EMAIL PROTECTED]> > Sent: Tuesday, January 15, 2008 1:2

Re: [R] Looking for simpler solution to probabilistic question

2008-01-15 Thread Rainer M Krug
Berwin A Turlach wrote: > G'day Rainer, > > On Tue, 15 Jan 2008 14:24:08 +0200 > Rainer M Krug <[EMAIL PROTECTED]> wrote: > > >> ager <- range(age1) + range(age2) >> ager <- ager[1]:ager[2] >> pp1 <- c(cumsum(p1), rev(cumsum(rev(p1)

[R] Question concerning pdfs

2008-01-16 Thread Rainer M Krug
Hi I have a dataset of absolute growth rates g ranging from close to 0 to around whatever of which I want to calculate a pdf. If I use density(g) the pdf will extend to below 0 so I logtransform g and do d <- density(log(g)). Now I would like to transform this pdf back, i.e. d$x <- exp(d$x) but wh

Re: [R] Question concerning pdfs

2008-01-16 Thread Rainer M Krug
> Web: http://med.kuleuven.be/biostat/ > > http://www.student.kuleuven.be/~m0390867/dimitris.htm<http://www.student.kuleuven.be/%7Em0390867/dimitris.htm> > > > > - Original Message - > From: "Rainer M Krug" <[EMAIL PROTECTED]> > T

[R] Calculating sum of squares from density estimates

2008-01-24 Thread Rainer M Krug
Hi I have some density estimates obtained from density(). I would like to calculate the sum of squares of these. As the x values of the estimates are not the same, and I would prefer not to restrict the estiomate to a certain range of x values, how can I do the calculation? Lets say: d1 <- de

[R] evaluate return values of commands executed with system()

2008-09-19 Thread Rainer M Krug
Hi I would like to check the return value of commands executed with system() I am using Linux (Ubuntu Hardy) and I am executing GRASS commands and would like to call stop() when they return an error (i.e. return code = 1). Thanks Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN

[R] use of system() under Linux

2008-09-22 Thread Rainer M Krug
exclusive, either the one or the other. Is this true, or is there another way of accomplishing this? My prefered return value would be a list, consisting of thre entries: return code of the command stderr and the result Thanks Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc

[R] Problem with R on dual core under Linux - can not execute mpi.spawn.Rslaves()

2008-09-27 Thread Rainer M Krug
Comm_spawn API > I followed the pdf "Developing parallel programs using snowfall" by Jochen Knaus,. installed the relevant libraries and programs, but it does not work. I am stuck. Any help appreciated, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Bio

Re: [R] Problem with R on dual core under Linux - can not execute mpi.spawn.Rslaves()

2008-09-29 Thread Rainer M Krug
On Mon, Sep 29, 2008 at 12:19 AM, Martin Morgan <[EMAIL PROTECTED]> wrote: > "Rainer M Krug" <[EMAIL PROTECTED]> writes: > >> Hi >> >> I am trying to utilize my dual core processor (and later a >> High-performance clusters (HPC) ) by using

Re: [R] Problem with R on dual core under Linux - can not execute mpi.spawn.Rslaves()

2008-09-29 Thread Rainer M Krug
u may need > to uninstall mpich (almost surely that can be avoided but it may be > easier if you don't really need mpich). OK - I don't mind if I am using lam or mpich, so which one should I use? I am confused. If it helps, I am using Ubuntu Hardy Rainer > > Best, > > luke &

Re: [R] Problem with R on dual core under Linux - can not execute mpi.spawn.Rslaves()

2008-09-29 Thread Rainer M Krug
, and MPI (on the level of the whole simulation) to run one complete simulation on one node. Thanks Rainer On Mon, Sep 29, 2008 at 3:46 PM, Rainer M Krug <[EMAIL PROTECTED]> wrote: > On Mon, Sep 29, 2008 at 3:05 PM, Luke Tierney <[EMAIL PROTECTED]> wrote: >> Look at the co

Re: [R] Desperatly seeking Parallel R simulation with Windows XP

2008-09-30 Thread Rainer M Krug
> R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Rainer M. Krug, PhD (Conservation Ecology, SUN

[R] Mallows' distance or Earth Mover's distance in R?

2008-10-26 Thread Rainer M Krug
Hi I am looking for an implementation (or alternative to) Mallow's distance or the Earth Mover's distance to compare distributions or unnormalized distributions (signatures). Is there an implementation in R or can somebody recommend an alternative? Thanks Rainer -- Rainer M.

Re: [R] Running R under Sun Grid Engine with OpenMPI tight integration

2009-01-26 Thread Rainer M Krug
ng it going. > > Thanks! > > Peter Waltman > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Faculty of Science Natural Sciences Building Private Bag X1 University of St

Re: [R] Running R under Sun Grid Engine with OpenMPI tight integration

2009-01-27 Thread Rainer M Krug
On Tue, Jan 27, 2009 at 11:04 AM, Marce wrote: > 2009/1/27 Rainer M Krug : >> On Tue, Jan 27, 2009 at 2:30 AM, Peter Waltman >> wrote: >>> Hi - >>> >>> I saw your posting on the R-help mailing list. Were you ever able to get >>> this working

Re: [R] maptools: Test if point is in polygon

2009-02-05 Thread Rainer M Krug
llow > Graduate School of Management > St Petersburg State University > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minima

[R] R interest group at Stellenbosch University formed: r...@sun

2009-02-25 Thread Rainer M Krug
he body of the email. Please feel free to contact me if you have further questions me (Rainer Krug)        rai...@krugs.de or, the easier solution, subscribe to the mailing list and post your question there. Hope to see you there, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN

Re: [R] R parser for If-else

2009-02-25 Thread Rainer M Krug
f again') >    D> }else print('else') > > > >    D> cheers, >    D> --------- >    D> Daniela > >    D> __ >    D> R-help@r-project.org mailing list >    D> http

[R] Installing different versions of R simultaneously on Linux

2009-02-26 Thread Rainer M Krug
ix for the executables? Thanks Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Faculty of Science Natural Sciences Building Private Bag X1 University of Stellenbosch Matieland 7602 So

Re: [R] Installing different versions of R simultaneously on Linux

2009-02-27 Thread Rainer M Krug
Hi On Fri, Feb 27, 2009 at 10:41 AM, Berwin A Turlach wrote: > G'day Rainer, > > On Fri, 27 Feb 2009 09:34:11 +0200 > Rainer M Krug wrote: > >> I want to install some versions of R simultaneously from source on a >> computer (running Linux). [...] > > What

Re: [R] Installing different versions of R simultaneously on Linux

2009-02-27 Thread Rainer M Krug
On Fri, Feb 27, 2009 at 12:37 PM, Prof Brian Ripley wrote: > This is really an R-devel question. sorry about the wrong list. > > On Fri, 27 Feb 2009, Rainer M Krug wrote: > >> Hi >> >> I want to install some versions of R simultaneously from source on a >

Re: [R] Installing different versions of R simultaneously on Linux

2009-02-27 Thread Rainer M Krug
On Fri, Feb 27, 2009 at 1:49 PM, Berwin A Turlach wrote: > G'day Rainer, > > On Fri, 27 Feb 2009 10:53:12 +0200 > Rainer M Krug wrote: > >> > What flavour of Linux are we talking about? >> >> Sorry - I am running SuSE on the machine where I need it. >

[R] Fwd: Converting R to Sweave (Rnw)

2009-03-02 Thread Rainer M Krug
2,type="l",ylab=expression(exp(-z^2)),xlab="z") ### ### chunk number 3: Normal1 ####### mu <- 3 sigma <- 5 -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Bio

[R] Automatically execute traceback when execution of script causes error?

2009-03-06 Thread Rainer M Krug
Hi I am using R scripts which are running remotely. To make debugging easier, I would like to have the possibility to execute traceback() automatically when an error occurs. Is this possible? OS: Linux Thanks Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation

Re: [R] limiting simulated animal movement

2009-03-21 Thread Rainer M Krug
- b[i-1] > } > > Where x and y are co-ordinates for the centre of the home range > > But this is not working - giving NA values for x and y co-ordinates. Does > anyone know what to do? > > Thanks and cheers, > Umesh > >        [[alternative HTML version deleted]] > > _

Re: [R] Calculating sum of squares from density estimates

2008-01-24 Thread Rainer M Krug
David Winsemius wrote: > Rainer M Krug <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > >> Hi >> >> I have some density estimates obtained from density(). I would like >> to calculate the sum of squares of these. As the x values of the >> e

[R] lapply without return values?

2008-01-25 Thread Rainer M Krug
Hi I am looking for a function which is executing some code repeatedly, exactly like lapply() and sappl() are doing, but do not return anything as I am not interested in the return values. An example would be: > p <- data.frame(runif(10), runif(10), runif(10)) > lapply( p, function(ps) {x11(

Re: [R] lapply without return values?

2008-01-25 Thread Rainer M Krug
Berwin A Turlach wrote: > G'day Rainer, > > On Fri, 25 Jan 2008 10:34:32 +0200 > Rainer M Krug <[EMAIL PROTECTED]> wrote: > > [...] > >> > p <- data.frame(runif(10), runif(10), runif(10)) >> > lapply( p, function(ps) {x11(); plot(ps)}

[R] using facet_grid() from ggplot2 with additional text in labels

2008-01-26 Thread Rainer M Krug
Hi I am using ggplot2 at the moment and I must say it is definitely better then ggplot - good work. My problem is that I am using facet_grid() in the following way: > p <- ggplot(ssq, aes(x=year, y=-log(ssq))) > p + geom_point() + facet_grid(me*gi~cs*rz) and it works nicely, except that I wo

[R] Putting frame around single panels in ggplot 2 and facet_grid()

2008-01-27 Thread Rainer M Krug
Hi I want to highlight two panels in a grid created with facet_grid() by putting a box around it or usiong another background colour. Is this possible, and if yes, how? Thanks Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department

Re: [R] using facet_grid() from ggplot2 with additional text in labels

2008-01-28 Thread Rainer M Krug
Hi Hadley On 27/01/2008, hadley wickham <[EMAIL PROTECTED]> wrote: > > > I am using ggplot2 at the moment and I must say it is definitely better > > then ggplot - good work. > > > > My problem is that I am using facet_grid() in the following way: > > > > > p <- ggplot(ssq, aes(x=year, y=-log(ssq)

Re: [R] using facet_grid() from ggplot2 with additional text in labels

2008-01-28 Thread Rainer M Krug
be > > Do not put your faith in what statistics say until you have carefully > considered what they do not say. ~William W. Watt > A statistical analysis, properly conducted, is a delicate dissection of > uncertainties, a surgery of suppositions. ~M.J.Moroney > > -Oorspronk

Re: [R] problem getting multiple densityplots on one page

2008-02-01 Thread Rainer M Krug
/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department of Botany University of Cape Town Rondebosch 7701 South Africa [[alternative HTML version dele

Re: [R] problem getting multiple densityplots on one page

2008-02-01 Thread Rainer M Krug
Sorry - I thought about plot(density()) should read more carefull... On 01/02/2008, Gavin Simpson <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-02-01 at 14:00 +0200, Rainer M Krug wrote: > > On 01/02/2008, Ng Stanley <[EMAIL PROTECTED]> wrote: > > > > >

Re: [R] advice requested re: building "good" system (R, SQL db) for handling large datasets

2008-02-06 Thread Rainer M Krug
ide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > > > __________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help &

[R] Analysis with spatstat and Kcross() requires to much memory

2008-02-14 Thread Rainer M Krug
6.2 year 2008 month 02 day08 svn rev44383 language R version.string R version 2.6.2 (2008-02-08) -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department of Botany University of Cape Town Rondebosch 77

[R] Plan to build Package to use GRASS from R

2008-02-27 Thread Rainer M Krug
full? 2) Is there a way to obtain easily all commands from GRASS and the parameters possible and required? Any ideas and comments welcome, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department of Botany University of Cape Town Ro

Re: [R] [R-sig-Geo] Plan to build Package to use GRASS from R

2008-02-27 Thread Rainer M Krug
er Bivand will think, > but maybe it would be better to add waht you develop to that package. Sounds like a perfect suggestion - otherwise everything could become to fragmented and difficult to use. Regards, > > > Virgilio > > > -- -- Rainer M. Krug, Dipl. Phys. (Ge

[R] How to navigate in layout() created graph?

2008-03-07 Thread Rainer M Krug
I am using a function which is converting the number to mfg parameter for par, but it does not seem to work as expected. Thanks, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department of Botany University of Cape Town Rondebosch 7701

[R] How to plot raster obtained from readRAST6 in grey scale?

2008-03-07 Thread Rainer M Krug
Hi I have a raster which I would like to plot in a greyscale instead of colour. Is this possible, and how? Thanks Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department of Botany University of Cape Town Rondebosch 7701 South Africa

Re: [R] How to navigate in layout() created graph?

2008-03-07 Thread Rainer M Krug
On 07/03/2008, Charilaos Skiadas <[EMAIL PROTECTED]> wrote: > On Mar 7, 2008, at 7:18 AM, Rainer M Krug wrote: > > > Hi > > > > I created a complex layout with using layout() and it looks exactly as > > I need it. But I don't want to print in the order

Re: [R] How to navigate in layout() created graph?

2008-03-07 Thread Rainer M Krug
On 07/03/2008, Charilaos Skiadas <[EMAIL PROTECTED]> wrote: > On Mar 7, 2008, at 8:02 AM, Rainer M Krug wrote: > > > On 07/03/2008, Charilaos Skiadas <[EMAIL PROTECTED]> wrote: > >> On Mar 7, 2008, at 7:18 AM, Rainer M Krug wrote: > >> > >>

Re: [R] How to plot raster obtained from readRAST6 in grey scale?

2008-03-09 Thread Rainer M Krug
Thanks - I was quite in a rush when writing the question - sorry about that. But it works now with image(TheImage, col=gray.colors(10, start=0.9, end=0.3) On 08/03/2008, Roger Bivand <[EMAIL PROTECTED]> wrote: > Uwe Ligges statistik.tu-dortmund.de> writes: > > > > &g

[R] Selecting elements in vector

2008-03-14 Thread Rainer M Krug
of elements long. Is there any way, that I can do that easily? Thanks Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department of Botany University of Cape Town Rondebosch 7701 South Africa __

Re: [R] Selecting elements in vector

2008-03-14 Thread Rainer M Krug
Thanks - that is exactly what I was looking for Rainer On Fri, Mar 14, 2008 at 1:10 PM, Henrique Dallazuanna <[EMAIL PROTECTED]> wrote: > Try this: > > x[x %in% y] > > > > On 14/03/2008, Rainer M Krug <[EMAIL PROTECTED]> wrote: > > Hi > > >

Re: [R] Mallows' distance or Earth Mover's distance in R?

2008-10-27 Thread Rainer M Krug
es distance. Combined with our package > distrMod one can compute minimum distance estimators. Thanks a lot for this info - I will look into these options. Rainer > > library(distrMod) > ?MCEstimator > ?MDEstimator > > hth, > Matthias > > Rainer M Krug wrote: >>

[R] Need help in calling C code from R

2008-11-16 Thread Rainer M Krug
f the code from R should be rather straight forward, but there are still several things I don't understand. Could somebody please help me in calling the code from R? Thanks, Rainer P.S: if the code works nicely, I would like to either put it into a package or add it to one. --

[R] C++ code from R

2008-11-19 Thread Rainer M Krug
/Documents/Projects/EMD/EmdL1_vs/emdL1_R.so': /home/rkrug/Documents/Projects/EMD/EmdL1_vs/emdL1_R.so: undefined symbol: _ZN5EmdL1D1Ev > --- The two other files (emdL1.h and emdL1.cpp) are in the following zip file: http://vision.ucla.edu/~hbling/code/EmdL1_v2.zip Any s

Re: [R] C++ code from R

2008-11-19 Thread Rainer M Krug
On Wed, Nov 19, 2008 at 2:57 PM, Duncan Temple Lang <[EMAIL PROTECTED]> wrote: > > > Rainer M Krug wrote: >> >> Hi >> >> I managed to compile (and use) C code from R, but now I have to use C++ >> code. >> After reading "Writing R extension

[R] skeleton for package containing C code?

2008-11-19 Thread Rainer M Krug
he package to make it easier to install the function on several Linux computers - no windows required at the moment. Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Faculty

[R] matlab style of storing arrays compared to R

2008-11-21 Thread Rainer M Krug
found the following reference http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_prog/f1-86528.html#f1-86846 And it seems to be the same, but another source says it is different. Could somebody confirm, if it is the same? Thanks, Rainer -- Ra

Re: [R] matlab style of storing arrays compared to R

2008-11-21 Thread Rainer M Krug
s an interactive > wrapper around Eispack and Linpack) and uses the same representation > of arrays. Thanks a lot for your detailed explanation. This will make my life much easier. Rainer > > On Fri, Nov 21, 2008 at 2:41 AM, Rainer M Krug <[EMAIL PROTECTED]> wrote: >> H

[R] Latin Hypercube with condition sum = 1

2008-11-23 Thread Rainer M Krug
<- ws / wsSums but I think I can't do that, as after the normalization > min(wss) [1] 0.0001113015 > max(wss) [1] 0.5095729 Therefore my question: how can I create a Latin Hypercube whicgh fulfills the conditions 1) and 2)? Thanks a lot Rainer -- Rainer M. Krug, PhD (Conservatio

Re: [R] Latin Hypercube with condition sum = 1

2008-11-23 Thread Rainer M Krug
On Sun, Nov 23, 2008 at 7:43 PM, Ben Bolker <[EMAIL PROTECTED]> wrote: > Rainer M Krug gmail.com> writes: > >> >> Hi >> >> I want to du a sensitivity analysis using Latin Hypercubes. But my >> parameters have to fulfill two conditions: >>

Re: [R] Latin Hypercube with condition sum = 1

2008-11-24 Thread Rainer M Krug
t > since transformation makes min(x)=0 and max(x)=1 (and therefore > sum(x)>1 -- although it won't work if length(x)<2 or var(x)==0) > transformation 2 will necessarily reduce the range and therefore > not violate criterion 1 ... ? > > Ben Bolker > > > Rai

[R] Problem with Rmpi and snow - makeCluster(type="MPI") not working

2008-11-24 Thread Rainer M Krug
x86_64, linux-gnu status major 2 minor 7.2 year 2008 month 08 day25 svn rev46428 language R version.string R version 2.7.2 (2008-08-25) > Any help welcome, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conserv

Re: [R] Problem with Rmpi and snow - makeCluster(type="MPI") not working

2008-11-24 Thread Rainer M Krug
Sorry - posting reposted at R-sig-hpc Rainer On Mon, Nov 24, 2008 at 4:45 PM, Rainer M Krug <[EMAIL PROTECTED]> wrote: > Hi > > I managed tio install Rmpi and to load it, but I get the following > errormessage when I try to create an MPI cluster and R hangs (no > respon

Re: [R] Latin Hypercube with condition sum = 1

2008-11-25 Thread Rainer M Krug
On Tue, Nov 25, 2008 at 4:16 PM, Rob Carnell <[EMAIL PROTECTED]> wrote: > Rainer M Krug gmail.com> writes: > >> >> Hi >> >> I want to du a sensitivity analysis using Latin Hypercubes. But my >> parameters have to fulfill two conditions: >>

Re: [R] command files

2008-12-02 Thread Rainer M Krug
dical Research > 1000 East 50th St. > > Kansas City, MO 64110 > > Tel: 816-926-4071 > Cell: 816-726-8419 > Fax: 816-926-2018 > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE

Re: [R] Running R under Sun Grid Engine with OpenMPI tight integration

2008-12-04 Thread Rainer M Krug
@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conse

Re: [R] Running R under Sun Grid Engine with OpenMPI tight integration

2008-12-04 Thread Rainer M Krug
On Fri, Dec 5, 2008 at 12:11 AM, Sean Davis <[EMAIL PROTECTED]> wrote: > On Thu, Dec 4, 2008 at 5:21 AM, Rainer M Krug <[EMAIL PROTECTED]> wrote: >> Did you make any progress in using R in the SGE / OpenMPI environment? >> I am asking, because I am struggling with t

Re: [R] How to calculate the distance between two density functions

2008-12-06 Thread Rainer M Krug
mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservatio

[R] referencing packages?

2007-09-20 Thread Rainer M. Krug
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: [EMAIL PROTECTED] [EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology

Re: [R] referencing packages?

2007-09-20 Thread Rainer M. Krug
Thanks a million Rainer Katharine Mullen wrote: > use citation("pkg-name") > > On Thu, 20 Sep 2007, Rainer M. Krug wrote: > >> Hi >> >> I know how to referenc R in a scientific paper - but is there a >> standardised way to reference packages? &

[R] Concatenating one character vector into one string

2007-10-01 Thread Rainer M. Krug
ROTECTED] [EMAIL PROTECTED] 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 South Africa Tel:+27 - (0)21 650 5776 (w) Fax:+27 - (

Re: [R] Concatenating one character vector into one string

2007-10-01 Thread Rainer M. Krug
Thanks a million Rainer [EMAIL PROTECTED] wrote: > x <- c("This ", "is ", "one ", "sentence.") > paste(x,collapse="") > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Beha

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-08 Thread Rainer M. Krug
Christian Salas wrote: > Using Tinn-R (in windows) is possible to run latex and R from the same > editor, which was great. Now, I am using Ubuntu-linux, which has been > better than WinXP. Currently, I am using Emacs (and then install ESS) > for running LaTeX and R from a same editor-program (li

[R] error message with option checkBuild in update.packages in R 2.6.0

2007-10-10 Thread Rainer M Krug
Hi System: Linux Open SuSE 10.2 I upgraded to R 2.6.0 and wanted to upgrade my packages as well. I tried to use the checkBuild=TRUE option in update.packages, it asked me if I wanted to update the package and I answered with yes, and finally ig tave me the error message unknown parameter "chec

Re: [R] error message with option checkBuild in update.packages in R2.6.0

2007-10-10 Thread Rainer M Krug
Van Campenhout Bjorn wrote: >> I upgraded to R 2.6.0 and wanted to upgrade my packages as >> well. I tried to use the checkBuild=TRUE option in >> update.packages, it asked me if I wanted to update the >> package and I answered with yes, and finally ig tave me the >> error message unknown param

Re: [R] R-2.6.0 - packages installation through a proxy - not working

2007-10-16 Thread Rainer M. Krug
.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- NEW EMAIL ADDRESS AND ADDRESS: [EMAIL PROTECTED] [EMAIL PROTECTED] WILL BE DISCONTINUED END O

Re: [R] R-2.6.0 - packages installation through a proxy - not working

2007-10-16 Thread Rainer M Krug
Liviu Andronic wrote: > On 10/16/07, Rainer M. Krug <[EMAIL PROTECTED]> wrote: >> I always change the variables in the terminal window before I start R, i.e. >> >> export http_proxy=SERVER:3128 >> export ftp_proxy=SERVER:3128 >> >> and then start R -

[R] One pdf file with plots and text output

2007-10-17 Thread Rainer M Krug
Hi I create one pdf file with plots via pdf() and one text file with text via sink() that works very nice. But I would prefer to have one pdf file with plots and the text which I store in the te=xt file via sink(). I.e. x.lm<-lm(...) pdf() plot(x.lm) NOW THE TEXT OF summary(xlm) IN THE PDF FILE

Re: [R] One pdf file with plots and text output

2007-10-17 Thread Rainer M Krug
Prof Brian Ripley wrote: > On Wed, 17 Oct 2007, Rainer M Krug wrote: > >> Hi >> >> I create one pdf file with plots via pdf() and one text file with text >> via sink() that works very nice. But I would prefer to have one pdf file >> with plots and the text whic

Re: [R] One pdf file with plots and text output

2007-10-17 Thread Rainer M Krug
ve carefully > considered what they do not say. ~William W. Watt > A statistical analysis, properly conducted, is a delicate dissection of > uncertainties, a surgery of suppositions. ~M.J.Moroney > > > >> -Oorspronkelijk bericht- >> Van: [EMAIL PROTECTED] &

Re: [R] One pdf file with plots and text output

2007-10-17 Thread Rainer M. Krug
Olivier Delaigue * wrote: > Maybe with: > >> print(plot.new()) >> mtext(summary(xlm)) Thanks Olivier - that sounds like an easy approach - I'll try itr out and report back. Rainer > > Regards, > > Olivier Delaigue > > > Rainer M Krug-2 wrote:

Re: [R] One pdf file with plots and text output

2007-10-17 Thread Rainer M Krug
Rainer M. Krug wrote: > Olivier Delaigue * wrote: >> Maybe with: >> >>> print(plot.new()) >>> mtext(summary(xlm)) > > Thanks Olivier - that sounds like an easy approach - I'll try itr out > and report back. It prints the summary, but in one line

Re: [R] One pdf file with plots and text output

2007-10-17 Thread Rainer M Krug
t say. ~William W. Watt > A statistical analysis, properly conducted, is a delicate dissection of > uncertainties, a surgery of suppositions. ~M.J.Moroney > > > >> -Oorspronkelijk bericht- >> Van: Rainer M Krug [mailto:[EMAIL PROTECTED] >> Verzon

Re: [R] One pdf file with plots and text output

2007-10-17 Thread Rainer M. Krug
o much additional coding. Sweave seems to be the way to go - I'll play with it. Thanks a lot Rainer > > Olivier Delaigue > > Rainer M Krug-2 wrote: >> >> It prints the summary, but in one line which is obviously to long to fit >> on one page >> &g

Re: [R] One pdf file with plots and text output

2007-10-17 Thread Rainer M Krug
tics say until you have carefully > considered what they do not say. ~William W. Watt > A statistical analysis, properly conducted, is a delicate dissection of > uncertainties, a surgery of suppositions. ~M.J.Moroney > > > >> -Oorspronkelijk bericht- >> Van: R

<    1   2   3   4   5   >