Re: [R] write.table equivalent for lists?

2011-01-10 Thread Rainer M Krug
on in R base? > > library(R.utils) > saveObject(x, "x.Rbin") > rm(x) > y <- loadObject("x.Rbin") > > HTH, > Ivan > > Le 1/10/2011 15:24, Rainer M Krug a écrit : > Hi > > I am writing simulations in R, and quite regularly, I hav

Re: [R] write.table equivalent for lists?

2011-01-10 Thread Rainer M Krug
ght _occasionally_ find it useful, I don't >> mind if R-Core prefer to pursue other language enhancements. >> >> Peter Ehlers >> >>> >>> Le 1/10/2011 15:42, Rainer M Krug a écrit : >>>> -BEGIN PGP SIGNED MESSAGE- >>>>

[R] Add line to plot from stl decomposed time series?

2011-01-11 Thread Rainer M Krug
nel ("data"), but it is not working. Any help appreciated, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch Un

[R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread Rainer M Krug
d it would work, but shouldn't that be the default behaviour? And if this is not compliant with csv files, shouldn't the function read.csv convert the first column into the row names? Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT

Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/13/2011 02:56 PM, Duncan Murdoch wrote: > On 11-01-13 6:26 AM, Rainer M Krug wrote: > Hi > > Assuming the following: > >>>> x<- data.frame(a=1:10, b=runif(10)) >>>> str(x) > 'data.frame':

Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/13/2011 07:06 PM, Prof Brian Ripley wrote: > On Thu, 13 Jan 2011, Duncan Murdoch wrote: > >> On 11-01-13 6:26 AM, Rainer M Krug wrote: > Hi > > Assuming the following: > >>>>> x<- data.frame(a=1:1

[R] Replace last element in a vector - elegant solution?

2010-07-29 Thread Rainer M Krug
e tail(x, 1) <- 0 , which does not work)? Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus,

[R] How to change size of xlab inplot?

2011-02-01 Thread Rainer M Krug
-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.

[R] SOLVED: How to change size of xlab inplot?

2011-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/01/2011 12:12 PM, Henrique Dallazuanna wrote: > Try cex.lab: > > plot(1,1, xlab="Label", cex.lab = 2) Thanks - that is what I was looking for. Cheers, Rainer > > On Tue, Feb 1, 2011 at 7:31 AM, Rainer M Krug &

[R] sensitivity analysis with external simulation model - decoupling in package "sensitivity" or alternative?

2011-02-04 Thread Rainer M Krug
w can I do this? An example highlighting how to do the decoupling to do a sensitivity analysis, would be very much appreciated. Alternatively, ids there a different approach I could take? Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT),

[R] "matrix is not of full rank" error in package tgp

2011-02-07 Thread Rainer M Krug
is not of full rank error. I must admit ignorance, as I neither know what a "matrix of full rank" is, and how I can fix this so that I can conduct a sensitivity analysis by using sens(). Any help is appreciated, Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc

Re: [R] When is *interactive* data visualization useful to use?

2011-02-14 Thread Rainer M Krug
ice warns far more frequently of multiple > comparisons and validation sets being compromised (not independent) than > of too few data exploration ;-) ) These are very interesting and valid points. But which tools are recommended / usefull for interactive graphs for data evaluation?

Re: [R] When is *interactive* data visualization useful to use?

2011-02-14 Thread Rainer M Krug
n-charts-with-r/ True - forgotten about that one. It looks actually nice fore especially time series. Rainer > > Regards, > > Markus > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Rainer M Krug >

Re: [R] monitor variable change

2011-02-16 Thread Rainer M Krug
t; many messages that makes it useless. > > Best Regards > Alex > > __ > 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, se

Re: [R] monitor variable change

2011-02-16 Thread Rainer M Krug
ing mechanism should not be to difficult. But at the moment, I am happy with ess-tracebug (using it at the moment). By the way - breakpoints are in R, and they can be conditional as well (see ?browser) Cheers, Rainer > > --- On Wed, 2/16/11, Rainer M Krug wrote: > >> From: Rainer

Re: [R] monitor variable change

2011-02-16 Thread Rainer M Krug
t; > > > > > Quoting Alaios : > >> I think we are both talking for watchpoints-breakpoints >> >> --- On Wed, 2/16/11, Rainer M Krug wrote: >> >>> From: Rainer M Krug >>> Subject: Re: [R] monitor variable change >>> To:

Re: [R] monitor variable change

2011-02-16 Thread Rainer M Krug
using if is much more > readable to me (and is much more general!) True - and I probably would use that one as well - but there is the syntax which is like a "conditional breakpoint" - so I just pointed it out. Cheers, Rainer > > Hadley > - -- Rainer M. Krug, PhD (Con

Re: [R] monitor variable change

2011-02-16 Thread Rainer M Krug
t; 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 (Conser

Re: [R] problem installing R in Ubuntu 10.04 -HELP

2011-02-22 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 (Conservati

Re: [R] problem installing R in Ubuntu 10.04 -HELP

2011-02-22 Thread Rainer M Krug
was a >>>> minor >>>> problem. I was trying to install "rattle()" and it failed, and after that I >>>> cannot get R to run AT ALL! I've tried multiple times to reinstall it with >>>> a >>>> clean apt-get removal and install

Re: [R] debugging

2011-02-24 Thread Rainer M Krug
gt; PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of

[R] Analytical Hierarchical Process (AHP) in R?

2011-03-03 Thread Rainer M Krug
Hi Does anybody know anything about an implementation of an AHP in R or any other open source tool? I googled but could not find anything Thanks, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany

Re: [R] Anyone know a forum for stats advice?

2011-03-04 Thread Rainer M Krug
o read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excelle

Re: [R] Time series analysis for a daily series

2011-03-04 Thread Rainer M Krug
posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Buildin

Re: [R] Not sure how to handle hazard in my survival model

2011-03-10 Thread Rainer M Krug
list archive at Nabble.com. > > __ > 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

Re: [R] Not sure how to handle hazard in my survival model

2011-03-10 Thread Rainer M Krug
me I > think. That definitely sounds like a good example for a (rule based) simulation model, as analytical models can gett mathematically quite complex. Cheers, Rainer > > Does that make sense? > > Thank you again. > > Regards, > > Freya > > -Original

[R] How to get all combinations between two character vectors?

2011-03-11 Thread Rainer M Krug
FUNCTION(x, y) z == c("ax", "ay", "bx", "by") I promise I will write the name of the function on my desk! Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for

Re: [R] How to get all combinations between two character vectors?

2011-03-11 Thread Rainer M Krug
bably easier. > > x <- c("a", "b") > y <- c("x", "y") > > as.vector(outer(x, y, function(x, y) paste(x, y, sep = ''))) > [1] "ax" "bx" "ay" "by" > apply(expand.grid(x, y), 1, past

Re: [R] How to get all combinations between two character vectors?

2011-03-11 Thread Rainer M Krug
er the interaction function - but then ther is the trouble with factors - and I am always trying to avoid those. Thanks a lot, Rainer >> >> or >> >> as.vector(t(outer(x,y,paste,sep=""))) >> >> will work. "sort" and "t" respectiv

Re: [R] setting up a R working group

2011-03-17 Thread Rainer M Krug
ct.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. > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecolo

Re: [R] Problem with mclapply -- losing output/data

2011-03-23 Thread Rainer M Krug
tained, reproducible code. > > -- > ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. >   ___    Patrick Connolly >  {~._.~}                   Great minds discuss ideas >  _( Y )_                 Average minds discuss events > (:_~*~_:)                  Smal

Re: [R] new syntax: bash-like pipe operator

2011-03-30 Thread Rainer M Krug
s interesting although note that a simple way to get that order > without introducing new features is to use intermediate variables. > Here we use the variable . in order to save space and use .= to assign > to it. > > # Example 1 above > .= c(1, 2, 3); sum(.) > > # Example 2 abov

Re: [R] Using graphics straight from R into published articles

2011-03-30 Thread Rainer M Krug
s have to be done manually every single time => not my idea of > efficiency. Absolutely - reproducible research. And if you have several graphs, they all share the same layout, font, fontsize, margins, ... I rather spend an hour fiddling on my graphs in R (and sometimes swearing about the layou

Re: [R] calculating the mode in R...

2011-03-30 Thread Rainer M Krug
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 Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosc

Re: [R] Using graphics straight from R into published articles

2011-03-30 Thread Rainer M Krug
> And of course, I agree that jpeg should never be used for graphs. > > cu > Philipp > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suit

Re: [R] calculating the mode in R...

2011-03-30 Thread Rainer M Krug
ail.com> | > 972-52-7275845 > Read me: www.talgalili.com <http://www.talgalili.com> (Hebrew) | > www.biostatistics.co.il <http://www.biostatistics.co.il> (Hebrew) | > www.r-statistics.com <http://www.r-statistics.com> (English) > -

Re: [R] save ordinary numerical calculations as pdf

2011-03-30 Thread Rainer M Krug
z.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, UCT), Dipl. Phys. (Germany) Cent

Re: [R] save ordinary numerical calculations as pdf

2011-03-30 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 30/03/11 15:42, Rainer M Krug wrote: > On 30/03/11 11:51, Maas James Dr (MED) wrote: >> I'd like to save some calculation outputs as a pdf, to incorporate with >> others in a document. I've tried > >> pdf("

Re: [R] Euclidean Distance in R

2011-04-05 Thread Rainer M Krug
; 4. I would like the output file to have each individual measurement on > a seperate line in a single file. > > > I am very new to R, so any help would be appreciated. > > Best regards > Paul - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biolo

[R] plot layout with several plots ON plot area of previous plot

2011-04-07 Thread Rainer M Krug
-| | || || || || || || |-the bargraph---| L: the line graphs Any help appreciated, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology

Re: [R] plot layout with several plots ON plot area of previous plot

2011-04-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/04/11 11:27, Rainer M Krug wrote: > Hi > > I would like to have a plot layout, on which line graphs are on the plot > area of an underlying bar graph. > How can I achieve this? I know about layout() and par() to create a > lay

Re: [R] plot layout with several plots ON plot area of previous plot

2011-04-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/04/11 12:53, Jim Lemon wrote: > On 04/07/2011 07:39 PM, Rainer M Krug wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 07/04/11 11:27, Rainer M Krug wrote: >>> Hi >>> >>

Re: [R] plot layout with several plots ON plot area of previous plot

2011-04-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/04/11 13:09, Jim Lemon wrote: > On 04/07/2011 08:03 PM, Rainer M Krug wrote: >> ... >> Exactly - why is such a gem of a function hiding in a package with Demos >> in the name? I would never have thought about that. >>

Re: [R] plot layout with several plots ON plot area of previous plot

2011-04-11 Thread Rainer M Krug
os > when it is appropriate. I try to point people to Jim's package as > well, but he is usually a bit faster about it. > > Hi Greg, I must say I thoroughly enjoyed reading your response and reasoning and I will definitely take a closer look into the TeahingDemos packa

Re: [R] strategy for writing out file with lines header initiated with comment sign

2011-04-13 Thread Rainer M Krug
esPilot-NCBI36.fasta >> ##contig=> sapiens",taxonomy=x> >> ##phasing=partial >> ##INFO=> Data"> >> ##INFO= >> ##INFO= >> ##INFO= >> ##INFO= >> ##INFO= >> ##FILTER= >> ##FILTER= >> ##FORMAT= >> ##FORMAT= >>

[R] Identify period length of time series automatically?

2011-04-14 Thread Rainer M Krug
utomatically without individual checking? I do not want to do an eyeball assessment for 10.000 time series Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch Uni

Re: [R] Identify period length of time series automatically?

2011-04-14 Thread Rainer M Krug
lysis probably more difficult, as I have seasonal fluctuations, and fluctuations over several years (1, 2, 3, 4, ...?; depending on the parameters used for the simulation). Any ideas on how to do this in R? I have the feeling, that the quesion id more difficult then I thought... Rainer > &g

[R] Reading DESCRIPTION files to create dependency diagram

2011-08-22 Thread Rainer M Krug
function which could help me or has somebody done something similar (I assume the DESCRIPTION file ust be somewhere be read dueing install.packages()? Cheers, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence

Re: [R] Reading DESCRIPTION files to create dependency diagram

2011-08-23 Thread Rainer M Krug
2011/8/22 Uwe Ligges > > > On 22.08.2011 18:43, Rainer M Krug wrote: > >> Hi >> >> I want to create a dependence diagram of a subset of the packages on CRAN >> and would therefore like to read the DEACRIPTION files into a list. The >> list >> shoul

Re: [R] Synchronizing R libraries on N machines?

2011-08-25 Thread Rainer M Krug
gt; 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

Re: [R] X11 problem

2011-08-25 Thread Rainer M Krug
on't use Ubuntu, so I don't know what the name of packages you need > > for the headers. Typically the packages have the devel versions > > separate, you you need those. > > > > __ > R-help@r-project.org mail

Re: [R] Synchronizing R libraries on N machines?

2011-08-26 Thread Rainer M Krug
t; Giovanni > > > On Thu, 2011-08-25 at 15:43 +0200, Rainer M Krug wrote: > > > > > > On Thu, Aug 25, 2011 at 3:25 PM, Giovanni Petris > > wrote: > > Hello! > > > > I am using R on two different machines (under Ubuntu and OS X, > &

Re: [R] Synchronizing R libraries on N machines?

2011-08-26 Thread Rainer M Krug
when using install.packages(), it should mainly automate the task. Cheers, Rainer > > Best > > iain > > --- On Fri, 26/8/11, Giovanni Petris wrote: > > > From: Giovanni Petris > > Subject: Re: [R] Synchronizing R libraries on N machines? > > To: "Rai

Re: [R] Save figure in pdf

2011-08-26 Thread Rainer M Krug
[[alternative HTML version deleted]] > > __________ > 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, m

Re: [R] import csv file into R, strange problem

2011-09-14 Thread Rainer M Krug
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 Invasion Biology Stellenbosch University

Re: [R] import csv file into R, strange problem

2011-09-14 Thread Rainer M Krug
On Wed 14 Sep 2011 10:37:46 CEST, Uwe Ligges wrote: > > > On 14.09.2011 10:28, Rainer M Krug wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 13/09/11 18:08, bonnieyuan wrote: >>> Hi, I used read.csv(file name, header=T, sep=",&q

[R] R as well as Rscript just hangs!

2011-09-19 Thread Rainer M Krug
ight cause this behaviour? The OS is OpenSuSe 64 bit, R 13.1 is installed from source Any help appreciated where I can guide the admin to (as he has no experience with R at all), Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys

Re: [R] Reading data in lisp format

2011-09-22 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. > > David Winsemius, MD West Hartford, CT > > > > >

[R] Creating interactive 3D graphs for embedding in pdf not possible in R?

2012-06-22 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Just to be sure: I couldn't find a way of creating an interactive 3d graph which can be embedded in a pdf - is it correct that this can not be done with R? Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conserv

Re: [R] Creating interactive 3D graphs for embedding in pdf not possible in R?

2012-06-22 Thread Rainer M Krug
into Acrobat :-). Well - as this question was more along the line of "I could use it if it exists", I don't think I will follow any route at the moment. But I will try out the WebGL route for presentations sometime. Cheers and thanks, Rainer > > Duncan Murdoch > >

Re: [R] Running R on a cluster

2012-06-28 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27/06/12 22:02, Xuefeng Gao wrote: > Hello, > > I have R script my_script.R . It loads a large input file "data.txt" and then > outputs a large > matrix "out". (the command of running it on cluster using my.cmd is put at > the end) You will get

[R] regexp problem

2011-07-01 Thread Rainer M Krug
; "suff_20_pref" Version and platform info: > version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 2 minor 13.0 year 2011 month 04 day13 svn rev

Re: [R] regexp problem

2011-07-01 Thread Rainer M Krug
On Fri, Jul 1, 2011 at 5:08 PM, Gabor Grothendieck wrote: > On Fri, Jul 1, 2011 at 11:02 AM, Rainer M Krug wrote: > > Hi > > > > I have a question concerning regexp - I want to select with grep all > > character strings which contain the numbers 11:20 (code below).

Re: [R] data format

2011-07-07 Thread Rainer M Krug
osting 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 Invasion Biology Stellen

Re: [R] R on Multicore for Linux

2011-07-21 Thread Rainer M Krug
> Sent from the R help mailing list archive at Nabble.com. > > __ > 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, minim

Re: [R] R versions and PostScript files

2011-07-22 Thread Rainer M Krug
/bg { 1 0 0 setrgb } def >>>>> >>>>> in each case for exactly the same purpose. Thus [B] the >>>>> slow one uses repeatedly (1157 times) a function setrgb >>>>> which has much higher overheads (see definition above) >>>>> th

Re: [R] R versions and PostScript files

2011-07-22 Thread Rainer M Krug
On Fri, Jul 22, 2011 at 10:02 AM, peter dalgaard wrote: > > On Jul 22, 2011, at 09:04 , Rainer M Krug wrote: > > > On Fri, Jul 22, 2011 at 12:44 AM, Duncan Murdoch > > wrote: > > > >> On 11-07-21 5:17 PM, pilchat wrote: > >> > >>> thank yo

Re: [R] R versions and PostScript files

2011-07-22 Thread Rainer M Krug
mpiled code, so it would not be that straightforward to change this behavior. > > The problem is that I don't know how to do that!!! I am still at the > beginner level with R. PLease, can anyone help me? > Thanks a lot > > G > > > On Fri, Jul 22, 2011 at 9:04 AM, Raine

[R] Comparing two pdf resulting from density() and identify where significantly smaller or larger?

2011-07-26 Thread Rainer M Krug
am not doing any tests, but I am sure there is a way to determine the ranges statistically? Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa T

Re: [R] Comparing two pdf resulting from density() and identify where significantly smaller or larger?

2011-07-27 Thread Rainer M Krug
Sorry for re-iterating - but are there any suggestions on how I could tackle this problem? Thanks, Rainer On Tue, Jul 26, 2011 at 2:58 PM, Rainer M Krug wrote: > Hi > > this might be a little bit off topic, but here it goes: lets assume I have > the following: > >

Re: [R] Comparing two pdf resulting from density() and identify where significantly smaller or larger?

2011-07-27 Thread Rainer M Krug
On Wed, Jul 27, 2011 at 2:09 PM, David Winsemius wrote: > > On Jul 27, 2011, at 5:36 AM, Rainer M Krug wrote: > > Sorry for re-iterating - but are there any suggestions on how I could >> tackle >> this problem? >> > > You could start by providing an oper

Re: [R] R in Linux (Ubuntu)

2011-07-29 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

Re: [R] R in Linux (Ubuntu)

2011-07-29 Thread Rainer M Krug
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 Invasion Biology Stellenb

[R] Finding dependancies?

2011-08-03 Thread Rainer M Krug
, as I am sitting opn a different continent. So my question: is there an easy way (like ldd for programs), to identify the dependencies which are not met, and how could I use that on the packages? Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT

Re: [R] R table as integrable object for large Latex Documents - avoiding SWeave

2012-08-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/08/12 18:46, clangkamp wrote: > Hi, I am wondering whether some of you have a pointer to an alternative. I am > currently writing > my thesis in Latex (several documents), well grown over time, I am sure many > of you are > familiar with the si

Re: [R] Get the filename from the given path

2012-08-17 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/08/12 15:04, Berend Hasselman wrote: > > On Fri, Aug 17, 2012 at 5:28 AM, Rantony wrote: >> Hi, >> >> Here i have a file path, for eg : - FPath <- "D:\\MyFolder\\MyFile.txt" >> >> HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ? >>

[R] define subset argument for function lm as variable?

2012-08-21 Thread Rainer M Krug
at.lm <- lm( formula = feff, # fixed effect in the model data = dat, subset = dead==FALSE & recTreat==FALSE, na.action = na.omit ) Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT),

Re: [R] define subset argument for function lm as variable?

2012-08-21 Thread Rainer M Krug
t I don't get it to work. Rainer -- Bert On Tue, Aug 21, 2012 at 7:44 AM, Rainer M Krug wrote: Hi I want to do a series of linear models, and would like to define the input arguments for lm() as variables. I managed easily to define the formula arguments in a variable, but I also would

Re: [R] define subset argument for function lm as variable?

2012-08-21 Thread Rainer M Krug
<- trt>0 lm(weight ~ group, data=dat, subset=subst) Sorry about this, Rainer Cheers Am 21.08.2012 17:11, schrieb Rainer M Krug: On 21/08/12 16:57, Bert Gunter wrote: ?? I do not groc what you mean. ... subset == subs would work fine in your lm call. So unless someone else does get it,

Re: [R] define subset argument for function lm as variable?

2012-08-21 Thread Rainer M Krug
ct 'trt' not found and lm(weight ~ group, data=dat, subset=subst) # output: Error in xj[i] : invalid subscript type 'expression' > also does not work. Rainer ?? On Tue, Aug 21, 2012 at 8:41 AM, Rainer M Krug wrote: On 21/08/12 17:35, Eik Vettorazzi wrote: H

Re: [R] define subset argument for function lm as variable?

2012-08-21 Thread Rainer M Krug
Sorry - it is working as suggested by Joshua. Thanks a lot and sorry for the horrible confusion and examples, Rainer On 21/08/12 18:12, Rainer M Krug wrote: On 21/08/12 17:54, Joshua Wiley wrote: What is wrong with what I suggested initially? subst <- expression(trt > 0) lm(weight ~

[R] Question concerning anova()

2012-08-22 Thread Rainer M Krug
there a "best" way? I would be reluctant to do several ANOVA's, due to necessary corrections for multple tests (although this should not be a problem here?) I can obviously select the best model based on the AIC. Thanks in advance, Rainer -- Rainer M. Krug, PhD (Conservation Ec

Re: [R] Question concerning anova()

2012-08-22 Thread Rainer M Krug
ects models on the r-sig-mixed-effects mailing lists. You're likely to receive more informative replies there, too. Thanks - wasn't aware of this sig - I'll send the reply there as well. Thanks, Rainer -- Bert On Wed, Aug 22, 2012 at 7:23 AM, Rainer M Krug wrote: Hi I am co

Re: [R] Question concerning anova()

2012-08-22 Thread Rainer M Krug
Further discussed on r-sig-mixed-models Rainer On 22/08/12 17:04, Bert Gunter wrote: Oops -- missed that. OTOH, my reply demonstrates the value of the mixed models list recommendation. -- Bert On Wed, Aug 22, 2012 at 7:55 AM, Rainer M Krug wrote: On 22/08/12 16:36, Bert Gunter wrote

Re: [R] [R-sig-ME] Question concerning anova()

2012-08-23 Thread Rainer M Krug
ailto:aghay...@gmail.com> Mobile: +41794385586 Skype: aghaynes On 22 August 2012 18:04, Rainer M Krug mailto:r.m.k...@gmail.com>> wrote: Further discussed on r-sig-mixed-models Rainer On 22/08/12 17:04, Bert Gunter wrote: Oops -- missed that. OTOH, my reply demonstrates

Re: [R] Upgrade R?

2011-11-15 Thread Rainer M Krug
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, UCT), Dipl. Phys. (Germany) Centre o

Re: [R] spatial analysis

2011-12-06 Thread Rainer M Krug
> cheers, > > Rolf Turner > > __ 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, s

[R] Create checkpoint - was: How to de-source and re-source a file?

2011-12-08 Thread Rainer M Krug
de 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 PLEASE do > read the posting guide h

Re: [R] nice time series viewer?

2011-12-08 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), MSc (Cons

Re: [R] read.table performance

2011-12-08 Thread Rainer M Krug
ctors by default. If you use >>>>>>>>> as.is = TRUE it >>>>> won't >>>>>>>>> do this and that might speed things up also. >>>>>>>>> >>>>>>>>> >>>>>>

Re: [R] About source()

2012-01-04 Thread Rainer M Krug
the "try()" function. >>> >>> Might be a good exercise for you, given that you are starting >>> out in R and looking to upgrade your skills! :-) >>> >>> cheers, >>> >>> Rolf Turner >>> >>> >> >> __

[R] "unload" a library while testing?

2011-10-05 Thread Rainer M Krug
age) > package is not loaded any more Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (

Re: [R] "unload" a library while testing?

2011-10-05 Thread Rainer M Krug
ackage: part. Thanks a lot, Rainer > > Am 05.10.2011 15:04, schrieb Rainer M Krug: > > Hi > > > > I am testing a package, and after I make changes, I have to close R and > open > > R again to load the new version (same version number) of the package I am > > work

Re: [R] new R debugging tool

2011-10-24 Thread Rainer M Krug
couraged, of course. > > Norm Matloff > > __ > 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,

[R] Export interactive linked graphs?

2011-11-08 Thread Rainer M Krug
d, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10

[R] Partial matching when using $ ? Feature or bug?

2012-03-16 Thread Rainer M Krug
is internally a function? Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98

Re: [R] Partial matching when using $ ? Feature or bug?

2012-03-16 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16/03/12 14:54, Sarah Goslee wrote: > Hi Rainer, > > On Fri, Mar 16, 2012 at 9:45 AM, Rainer M Krug wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> Hi >> >> I have the following code: >&

Re: [R] Partial matching when using $ ? Feature or bug?

2012-03-16 Thread Rainer M Krug
. Good to know - I'll keep that in mind. > Someday I'll go back through my packages and get rid of all the lingering $. > > R: lots of ways to do the same thing, but some of them are booby-trapped. Absolutely - but isn't that the fun part of R? Rainer > > Sarah &

Re: [R] install R package on Unix cluster

2012-03-19 Thread Rainer M Krug
contained, >> reproducible code. > > __ 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

Re: [R] Handling 8GB .txt file in R?

2012-03-26 Thread Rainer M Krug
; Sent from the R help mailing list archive at Nabble.com. > > __ > 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 pro

<    1   2   3   4   5   >