Re: [R] several plots on several pages - bug in par(mfg())?

2007-08-17 Thread Rainer M. Krug
in third row -- NEW EMAIL ADDRESS AND ADDRESS: [EMAIL PROTECTED] [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

[R] several plots on several pages

2007-08-16 Thread Rainer M. Krug
(runif(100)) ) ## Third row par(mfg=c(3,1)) plot(runif(1000)) } ) dev.off() -- NEW EMAIL ADDRESS AND ADDRESS: [EMAIL PROTECTED] [EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation

Re: [R] several plots on several pages

2007-08-16 Thread Rainer M. Krug
] Namens Rainer M. Krug Verzonden: donderdag 16 augustus 2007 14:58 Aan: r-help Onderwerp: [R] several plots on several pages Hi version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 2

Re: [R] Generating vetor (shapefiles) from AscGrid raster in R

2007-06-22 Thread Rainer M. Krug
What about using grass 6, combined with spgrass6 and the command r.to.vect? Rainer Milton Cezar Ribeiro wrote: Hi there, I need to convert a raster (ascGrid) format to Shape files. Is there a way of to do that on R? Kind regards miltinho

[R] make sample() faster

2007-06-14 Thread Rainer M. Krug
-- NEW EMAIL ADDRESS AND ADDRESS: [EMAIL PROTECTED] [EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Leslie Hill Institute for Plant Conservation University of Cape Town Rondebosch 7701 South Africa Fax:+27 - (0

Re: [R] make sample() faster

2007-06-14 Thread Rainer M. Krug
think the problem is not sample (which is written in C), but that you are calling it with size=1. Taking one sample with probabilities from a large discrete distribution is necessarily slow, but you can take a large sample for little more cost. On Thu, 14 Jun 2007, Rainer M. Krug wrote: Hi

Re: [R] Where to find nprq?

2007-05-29 Thread Rainer M. Krug
fax: 217-244-6678Champaign, IL 61820 On May 28, 2007, at 4:32 AM, Rainer M. Krug wrote: 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

[R] Where to find nprq?

2007-05-28 Thread Rainer M. Krug
: [EMAIL PROTECTED] [EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Leslie Hill Institute for Plant Conservation University of Cape Town Rondebosch 7701 South Africa Fax:+27 - (0)86 516 2782 Fax:+27

Re: [R] Question concerning pastecs package

2007-05-25 Thread Rainer M. Krug
( ( ( ( ( .. Rainer M. Krug wrote: Hi I just installed the pastecs package and I am wondering: is there an english (or german) translation of the file pastecs.pdf? If not, is there an explanation somewhere of the object of type 'turnpoints' as a result of turnpoints(), especially the info field

[R] Question concerning pastecs package

2007-05-24 Thread Rainer M. Krug
ADDRESS AND ADDRESS: [EMAIL PROTECTED] [EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Leslie Hill Institute for Plant Conservation University of Cape Town Rondebosch 7701 South Africa Fax:+27 - (0)86 516 2782

[R] Identifying last record in individual growth data over different time intervalls

2007-03-05 Thread Rainer M. Krug
2005013 2005013 S223 2005 0.04 2006038 2006038 S223 2006 0.04 2005012 2005012 S224 2005 0.13 2006039 2006039 S224 2006 0.14 -- NEW EMAIL ADDRESS AND ADDRESS: [EMAIL PROTECTED] [EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation

Re: [R] Identifying last record in individual growth data over different time intervalls

2007-03-05 Thread Rainer M. Krug
2006024 2006025 2006026 2006027 2006028 2006029 2006030 2006031 2006032 2006033 S218S219S220S222S223S224 2006034 2006035 2006036 2006037 2006038 2006039 On 3/5/07, Rainer M. Krug [EMAIL PROTECTED] wrote: Hi I have a plist t which contains size measurements

Re: [R] Identifying last record in individual growth data over different time intervalls

2007-03-05 Thread Rainer M. Krug
/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 OF MARCH Rainer M. Krug, Dipl

[R] Question concerning survival analysis

2007-02-23 Thread Rainer M. Krug
PROTECTED] [EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Leslie Hill Institute for Plant Conservation University of Cape Town Rondebosch 7701 South Africa Fax:+27 - (0)86 516 2782 Fax:+27 - (0)21 650

[R] R Mailing list in Cape Town - South Africa

2007-02-23 Thread Rainer M. Krug
and do not want to draw subscribers away from them - it is a huge advantage that one large list provides the main forum to get help. I hope that the new mailing list will be a useful medium to spread the word and information about R in South Africa, Rainer -- [EMAIL PROTECTED] Rainer M. Krug

Re: [R] Start and Restart R over SSH

2007-02-19 Thread Rainer M Krug
-help@stat.math.ethz.ch 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, Dipl. Phys. (Germany), MSc Conservation Biology

Re: [R] How do I create an object in the Global environment from a function

2006-12-14 Thread Rainer M Krug
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:+27 - (0)21 808 3304 (w) Cell

Re: [R] loop is going to take 26 hours - needs to be quicker!

2006-12-14 Thread Rainer M Krug
, self-contained, reproducible code. -- 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

Re: [R] loop is going to take 26 hours - needs to be quicker!

2006-12-14 Thread Rainer M Krug
David Barron wrote: What about gpcc.array - array(gpcc.data2[,5], dim=c(144,72,46)) I guess this will be slightly faster then my suggestion :-) ? On 14/12/06, Rainer M Krug [EMAIL PROTECTED] wrote: Jenny Barnes wrote: Dear R-help, I have a loop, which is set to take about 26 hours

Re: [R] exporting a table to latex

2006-12-13 Thread Rainer M Krug
Dieter Menne wrote: Rainer M Krug RKrug at sun.ac.za writes: I am using the latex() command from the Hmisc package to export table to latex. For formating of the values, I use the format() function. But I don't manage to get the format of the values right: I don't want scientific

Re: [R] exporting a table to latex

2006-12-13 Thread Rainer M Krug
Rau, Roland wrote: Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rainer M Krug Sent: Wednesday, December 13, 2006 8:47 AM To: r-help@stat.math.ethz.ch Subject: [R] exporting a table to latex Is there another way of formating the values

[R] exporting a table to latex

2006-12-12 Thread Rainer M Krug
the decimal point which I can not control with digits=... and nsmall=... in the format command. Is there another way of formating the values to three decimal digits? Or another way of exporting them to LaTeX? Thanks Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT

[R] two ggplot and colour=x question

2006-12-11 Thread Rainer M Krug
not understand map_colour_brewer. 2) I don't want the legend top be plot. How can I disable the legend to be plotted? Thanks Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch Matieland 7602 South

Re: [R] two ggplot and colour=x question

2006-12-11 Thread Rainer M Krug
(as above) there won't be a legend, or more generally you can do: p$legend.position - none to turn of the legend (see ?ggopt for other options) Hadley -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University

Re: [R] Calling R functions in Delphi

2006-12-04 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, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University

[R] specify point shape for ggplot (equivalent to pch)?

2006-12-01 Thread Rainer M Krug
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

[R] Combining factors

2006-11-10 Thread Rainer M Krug
don't remember the name. I could create a new factor based on F1 and F2, but I would prefer the other soluytion. Any help welcome, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch

Re: [R] Combining factors

2006-11-10 Thread Rainer M Krug
Peter Dalgaard wrote: Rainer M Krug [EMAIL PROTECTED] writes: Hi I know this is a basic question and I know I have done it before but I can't find the answer any more. I have a data set, say: F1, F2, Value F1 and F2 are Factors. I would like to plot plot(TheCombinationOf(F1, F2

[R] error in format.df when using dec

2006-11-07 Thread Rainer M Krug
1.120 3 5 7 2 2.230 4 6 8 attr(,col.just) [1] r r r r -- 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

Re: [R] Compare linear regressios for significant differences of the slopes

2006-11-03 Thread Rainer M Krug
Dieter Menne wrote: Rainer M Krug wrote: I have (8 measures * 96 groups) = 768 datasets for which I did linear regressions using lm(). Sorry for my (probably incorrect) usage of group and measure. Here a (probably better) description of my design: I ran 96 different simulations (spread

Re: [R] Compare linear regressios for significant differences of the slopes

2006-11-02 Thread Rainer M Krug
Hi I haven't received any ideas yet - I just wanted to confirm if this is a simple question? Should I follow the idea of checking if slope +- stddev slope overlap? Thanks, Rainer Rainer M Krug wrote: Hi I have (8 measures * 96 groups) = 768 datasets for which I did linear regressions

[R] Compare linear regressios for significant differences of the slopes

2006-11-01 Thread Rainer M Krug
way to do it for this large number of datasets? Thanks in advance for your help, 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

Re: [R] simplification of code using stamp?

2006-10-26 Thread Rainer M Krug
(a$value[[i]])) l - lapply(1:nrow(x), bind) do.call(rbind.fill, l) } tidy(test) Thanks Hadley - I'll look at the code. (but unless you provide a reproducible example I can't be sure that it works with your data) Regards, Hadley -- Rainer M. Krug, Dipl. Phys. (Germany), MSc

[R] Error bars in ggplot?

2006-10-26 Thread Rainer M Krug
Hi Is it possible to put error bars in ggplot? I couldn't find anything so far. 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

[R] Installation of RGrace

2006-10-26 Thread Rainer M Krug
for package 'RGrace' ** Removing '/usr/lib/R/library/RGrace' -- 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

Re: [R] Error bars in ggplot?

2006-10-26 Thread Rainer M Krug
-help@stat.math.ethz.ch 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, Dipl. Phys. (Germany), MSc Conservation Biology

[R] simplification of code using stamp?

2006-10-25 Thread Rainer M Krug
) ) ) -- 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)21 808 3304 Cell: +27 - (0)83 9479 042 email

Re: [R] simplification of code using stamp?

2006-10-25 Thread Rainer M Krug
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 -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department

[R] Question concerning ggplot

2006-10-24 Thread Rainer M Krug
Hi I am using ggplot under R 2.4 / Linux. When using ggsmooth(method=lm) is there a way to show the results of the separate linear regressions? Thanks Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology

Re: [R] Question concerning ggplot

2006-10-24 Thread Rainer M Krug
values of the linear regressions to analyse them further and to print them in the graphs. Hadley -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch Matieland 7602 South Africa Tel

Re: [R] Question concerning ggplot

2006-10-24 Thread Rainer M Krug
ggtext(p, data=rsqs, aes=list(label=value)) But that doesn't work for some reason I don't understand yet (but I'm working on it) Hadley -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch

Re: [R] Question concerning ggplot

2006-10-24 Thread Rainer M Krug
=list(label=value, x=1, y=8000)) Error in data.frame(data[, c(variables), drop = FALSE], result = data$value) : arguments imply differing number of rows: 6, 0 Can you give me a hint what I am doing wrong? Rainer Hadley -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation

Re: [R] Latex editor recommendations

2006-10-18 Thread Rainer M Krug
-contained, reproducible code. -- 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)21 808 3304 Cell

[R] Piping commands from Kate to R in xterm (Linux)

2006-10-11 Thread Rainer M Krug
that it sends the selection to a pipe which can be read from R (like in vim and eclipse)? Has anybody done something like this with Kate? Thanks a lot for your help, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology

Re: [R] Update to Dillo browser question

2006-09-23 Thread Rainer M Krug
I start the html help with help.start(browser=dillo) and all subsequent requests with ? open in dillo Rainer Dylan Beaudette wrote: hi, how exactly do you get R to open the page in dillo ... ? thanks! On Thursday 21 September 2006 23:54, Rainer M Krug wrote: Hi I asked about

[R] Update to Dillo browser question

2006-09-22 Thread Rainer M Krug
: [Dillo-dev] Opening new URL in same instance and -s option Date: Thu, 21 Sep 2006 21:31:57 -0400 From: Jorge Arellano Cid [EMAIL PROTECTED] To: Rainer M Krug [EMAIL PROTECTED] References: [EMAIL PROTECTED] On Thu, Sep 21, 2006 at 02:10:28PM +0200, Rainer M Krug wrote: Hi Hi. I have two

Re: [R] Beginners manual for emacs and ess

2006-09-21 Thread Rainer M Krug
Thanks for all of your information. I will look into all of them Rainer Gavin Simpson wrote: On Wed, 2006-09-20 at 17:03 +0200, Rainer M Krug wrote: 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

[R] transforming factor back to numbers

2006-09-21 Thread Rainer M Krug
-axis (time axis) does not follow the numerical sorting 1...100, but rather the text sorting of the factor npl.agg$year Is there any way that I can 'defactor' npl.agg$year so that I have again the numerical values for year? Thanks Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc

Re: [R] transforming factor back to numbers

2006-09-21 Thread Rainer M Krug
() or unclass() give the internal codes). On 21/09/06, Rainer M Krug [EMAIL PROTECTED] wrote: 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

[R] Other editor with completion apart from emacs?

2006-09-21 Thread Rainer M Krug
Hi is there any other editor for Linux, apart from emacs, which has the completion feature (i.e. I enter libTAB and it offers me among other options library) Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology

Re: [R] Other editor with completion apart from emacs?

2006-09-21 Thread Rainer M Krug
to the versions on http://www.rosuda.org/R , but still the same. Any ideas? Rainer ronggui wrote: JGR support completion. It can runs under Linux,though JGR is more than a editor. On 9/21/06, Rainer M Krug [EMAIL PROTECTED] wrote: Hi is there any other editor for Linux, apart from emacs, which

Re: [R] Linux configuration (Ubuntu)

2006-09-20 Thread Rainer M Krug
for the tip! Do you have any idea on how to convince dillo to reuse the same browser window again instead of using a new one when using ? ? Frank Thanks in advance, Brian -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology

[R] Calculating mean together with split

2006-09-20 Thread Rainer M Krug
the entries for one parameterset - but where to go from there? 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

Re: [R] Calculating mean together with split

2006-09-20 Thread Rainer M Krug
/09/06, David Barron [EMAIL PROTECTED] wrote: Sorry, that should have been package gdata, not gtools...they're both in the same bundle, though. On 20/09/06, Rainer M Krug [EMAIL PROTECTED] wrote: Hi I have a table called npl containing results of simulations. It contains about 19000

[R] Beginners manual for emacs and ess

2006-09-20 Thread Rainer M Krug
will be stuck with Eclipse and R) 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)21 808 3304

[R] execution of source() command

2006-09-15 Thread Rainer M Krug
of source() load the script file into memory and parses and executes it from there or does it parse and execute the file on the disk? Thanks in advance, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University

Re: [R] execution of source() command

2006-09-15 Thread Rainer M Krug
Prof Brian Ripley wrote: On Fri, 15 Sep 2006, Rainer M Krug wrote: Hi I have two questions concerning the source(test.R) command. 1) Is there any command which I can put into the test.R script file which aborts the execution of the script? At the moment I use CodeToBeExecutedInScript

Re: [R] problem with putting objects in list

2006-09-08 Thread Rainer M Krug
available which explains all this? The normal manual (Introduction into R) didn't made it clear to me. Rainer jim holtman wrote: What is the problem with referencing it with 'dr[[i]]', the way a list is supposed to be referenced? On 9/6/06, Rainer M Krug [EMAIL PROTECTED] wrote: Antonio, Fabio Di

Re: [R] problem with putting objects in list

2006-09-08 Thread Rainer M Krug
on subscripting. Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and A Guide for the Unwilling S User) Rainer M Krug wrote: Hi I use the following code and it stores the results of density() in the list dr: dens - function(run) { density

Re: [R] problem with putting objects in list

2006-09-08 Thread Rainer M Krug
c # a list with one component: x[2] [[1]] [1] 2 3 # the second component itself x[[2]] [1] 2 3 # recursive indexing x[[c(2,1)]] [1] 2 x[[c(3,2)]] [1] b Rainer M Krug wrote: Hi I use the following code and it stores the results of density() in the list dr: dens - function

[R] problem with putting objects in list

2006-09-06 Thread Rainer M Krug
. Is there any way that I can store them in dr[i]? Thanks a lot, 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

Re: [R] problem with putting objects in list

2006-09-06 Thread Rainer M Krug
Antonio, Fabio Di Narzo wrote: Use 'sapply' instead of 'lapply'. Type If I use sapply it seems to simplify / collapse to much. ?lapply for details Antonio, Fabio Di Narzo. University of Bologna, Italy 2006/9/6, Rainer M Krug [EMAIL PROTECTED]: Hi I use the following code

[R] density() with from, to or cut and comparrison of density()

2006-08-30 Thread Rainer M Krug
. An I correct in saying that if I want to compare different density estimates that the bandwidth should be the same for all of them? Thanks in advance for your help, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology

Re: [R] some EPS rotated in journal preview

2006-07-25 Thread Rainer M Krug
() __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation

Re: [R] RMySQL...Can't initialize driver???

2006-06-28 Thread Rainer M Krug
Stephane Cruveiller wrote: Rainer M Krug wrote: I followed your instruction. Here is my .my.cnf: --- [client] user=steff password=XX database=justforfun

Re: [R] RMySQL...Can't initialize driver???

2006-06-27 Thread Rainer M Krug
- dbConnect(m, group = renpatch) q - TheSQLQuery rs - dbSendQuery(con, q) TheResults - fetch(rs, n = -1) dbDisconnect(con) rm(con) and it should work - at least that is what it is doing for me. Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department

[R] How to use mle or similar with integrate?

2006-06-23 Thread Rainer M Krug
() and I also know about integrate(). My problem is to give the parameter values a and b to the integrate function. In other words, how can I write h - function... so that I can estimate a and b? Thanks, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT

[R] problem with integrate() - correction

2006-06-22 Thread Rainer M Krug
Sorry should read: ip - function(x) 1240 * x^(-0.88) Rainer M Krug wrote: Hi System: Linux, SuSE 10 R 2.3.0 I try to do the following ip - function(x) 1240*dip(x, 0.88) iip - function(x) integrate(ip, x - 0.045, x + 0.045)$value f - integrate(iip, 10, 100) Error in integrate(iip

Re: [R] problem with integrate() - correction

2006-06-22 Thread Rainer M Krug
:[EMAIL PROTECTED] På vegne af Rainer M Krug Sendt: 22. juni 2006 14:03 Til: [EMAIL PROTECTED] Cc: R help list Emne: [R] problem with integrate() - correction Sorry should read: ip - function(x) 1240 * x^(-0.88) Rainer M Krug wrote: Hi System: Linux, SuSE 10 R 2.3.0 I try to do

Re: [R] hello Excel... (native/Package/BETA)

2006-06-21 Thread Rainer M Krug
SNIP -- 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)21 808 3304 Cell: +27 - (0)83 9479

Re: [R] Question concerning mle

2006-06-19 Thread Rainer M Krug
of expand.grid and 'optim'. hope this helps. Spencer Graves Rainer M Krug wrote: Hi I hope this is the right forum - if not, point me please to a better one. I am using R 2.3.0 on Linux, SuSE 10. I have a question concerning mle (method=BFGS). I have a few models which I am

[R] Question concerning mle

2006-06-15 Thread Rainer M Krug
- but can I verify it? 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 __ R-help@stat.math.ethz.ch mailing list

Re: [R] How to create list of objects?

2006-06-07 Thread Rainer M Krug
Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/(0)16/336899 Fax: +32/(0)16/337015 Web: http://med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: Rainer M Krug [EMAIL PROTECTED] To: R help list r-help

[R] How to create list of objects?

2006-06-06 Thread Rainer M Krug
a 1242.0185506 44.92341097 b0.8802538 0.01685811 -2 log L: 145.3509 What I want to do is something like: AICs - AIC(logLik(f)) and then have all the AICs in the vector AICs. It must be possible or is this again a namespace issue? Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation

Re: [R] Problem with mle

2006-06-05 Thread Rainer M Krug
(dnbinom(SumSeeds,lambda=est,log=TRUE)) But what do I use for size and prob? 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

[R] Calculation of AIC BIC from mle

2006-06-05 Thread Rainer M KRug
R 2.3.0, all packages up to date Linux, SuSE 10.0 Hi I want to calculate AIC or BIC from several results from mle calculation. I found the AIC function, but it does not seem to work with objects of class mle - If I execute the following: ml1 - mle(...) AIC(ml1) I get the following error

Re: [R] Calculation of AIC BIC from mle

2006-06-05 Thread Rainer M Krug
, Rainer M KRug wrote: R 2.3.0, all packages up to date Linux, SuSE 10.0 Hi I want to calculate AIC or BIC from several results from mle calculation. I found the AIC function, but it does not seem to work with objects of class mle - If I execute the following: ml1 - mle(...) AIC(ml1) I

[R] Problem with mle

2006-06-02 Thread Rainer M KRug
R 2.3.0 Linux, SuSE 10.0 Hi I have two problems with mle - probably I am using it the wrong way so please let me know. I want to fit different distributions to an observed count of seeds and in the next step use AIC or BIC to identify the best distribution. But when I run the script below

Re: [R] pattern instead of colors in bargraph

2006-05-15 Thread Rainer M KRug
Uwe Ligges wrote: Rainer M KRug wrote: Hi I am using R 2.2.0 under SuSE 10. I am creating a graph by using the following script: DietF - read.csv (DietFem.csv, header = TRUE, as.is=TRUE) attach (DietF) PP - array(c(bud,flower,shoot,melon,seed.pod,detritus,other), c(16,7)) M - paste

[R] Title for secondary y-axis (axis(4)) in barplot?

2006-05-15 Thread Rainer M KRug
Hi I am using the following script to plot a barplot with a secondary axis in a bargplot for the line. It works, but I would like to have a title for the secondary y-axis on the right hand side of the axis - is this possible? Rainer RainFog - read.csv (Climate.csv, header = TRUE, as.is=TRUE)

[R] More elegant way to do this?

2006-05-15 Thread Rainer M KRug
, there is a more elegant way of doing it, but I can't think of it. Thanks a lot, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch South Africa

Re: [R] Title for secondary y-axis (axis(4)) in barplot?

2006-05-15 Thread Rainer M KRug
Uwe Ligges wrote: Rainer M KRug wrote: Hi I am using the following script to plot a barplot with a secondary axis in a bargplot for the line. It works, but I would like to have a title for the secondary y-axis on the right hand side of the axis - is this possible? Rainer RainFog

[R] pattern instead of colors in bargraph

2006-05-15 Thread Rainer M KRug
anything in the help which showed me how to do it. Is it possible, and if yes how? Thanks a lot, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch South Africa

[R] Create graphs from text console

2006-03-23 Thread Rainer M Krug
: Error in X11(..snip..) unable to start device jpeg In addition: warning message: unable to open connection to X11 display. Are there any ways to create the plot and save it into a jpeg file from a text console? Thanks, Rainer -- -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology

Re: [R] Create graphs from text console

2006-03-23 Thread Rainer M Krug
Thanks a lot for all your help and tips. As I don't need publishhable quality, I will go with the bitmap option. Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology University of Stellenbosch Matieland 7602 South Africa Tel

[R] R, Eclipse and StatEt plugin under Linux

2006-03-16 Thread Rainer M Krug
is: [Previously saved workspace restored] and that is it - and eclipse's progress bar is stuck. I can cancel it by pressing the cancel button, but the console closes. Any ides on how to solve the problem? Thanks, Rainer -- -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT

[R] How to get the intercept from lm?

2006-03-10 Thread Rainer M Krug
) ~ log(DensNN$MeanDensity)) anovaLM - anova(lmNNDens) Results$slope[No] - ???lmNNDens??? Results$intercept[No] - ???lmNNDens??? any help welcome, Rainer -- -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology University of Stellenbosch

[R] Problems installing R 2.1.1. from rpm (R-base-2.2.0-1.i586.rpm) on SuSE 10

2005-12-20 Thread Rainer M Krug
: _gfortran_filename and R quits. blas version: 3.0-926 Any help appreciated, Rainer -- -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0)72 808 2975 (w) Fax

Re: [R] Problems installing R 2.1.1. from rpm (R-base-2.2.0-1.i586.rpm) on SuSE 10

2005-12-20 Thread Rainer M Krug
Nope - If I enter rpm -qf `which gfortran` I get gcc-fortran-4.0.2_20050901-3 Rainer Peter Dalgaard wrote: Rainer M Krug [EMAIL PROTECTED] writes: 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

Re: [R] Problems installing R 2.1.1. from rpm (R-base-2.2.0-1.i586.rpm) on SuSE 10

2005-12-20 Thread Rainer M Krug
is not compatible with a newer version. Thanks for your help, Rainer Peter Dalgaard wrote: Rainer M Krug [EMAIL PROTECTED] writes: Nope - If I enter rpm -qf `which gfortran` I get gcc-fortran-4.0.2_20050901-3 Rainer Hmm, where did the blas come in? I don't seem to have

[R] Why is bubbles() creating empty png graphs?

2005-12-15 Thread Rainer M Krug
() cat( | Done \n) } } } } -- -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0)72 808 2975 (w) Fax:+27 - (0)21 808 3304 Cell:+27 - (0)83 9479 042

Re: [R] Why is bubbles() creating empty png graphs?

2005-12-15 Thread Rainer M Krug
Thanks a lot for yor help - it is working now Rainer Roger Bivand wrote: On Thu, 15 Dec 2005, Rainer M Krug wrote: 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

[R] O-ring statistic in R?

2005-12-06 Thread Rainer M Krug
://www.oesa.ufz.de/towi/towi_programita.html#ring Is this statistic included in one of the packages in R? Thanks, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0

Re: [R] install.packages under SuSE 10 behind proxy, R 2.2.0 from source

2005-10-27 Thread Rainer M. Krug
Hi I figured it out. if I use install.packages(..., method=wget) it works but if I use the default method, it doesn't. Rainer Rainer M. Krug wrote: Hi I installed R 2.2.0 from source and want to use install.packages but it doesn't work. http_proxy is set to http://proxy.sun.ac.za:3128

[R] tcltk package problems (R 2.2.0, SuSE 10)

2005-10-27 Thread Rainer M. Krug
that Tcl/Tk support is installed on the system? Rainer -- NEW TELEPHONE NUMBER Tel:+27 - (0)72 808 2975 (w) Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology University of Stellenbosch Matieland 7602 South Africa Tel

[R] install.packages under SuSE 10 behind proxy, R 2.2.0 from source

2005-10-26 Thread Rainer M. Krug
NUMBER Tel:+27 - (0)72 808 2975 (w) Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0)72 808 2975 (w) Fax:+27 - (0)21 808 3304 Cell

[R] Show Progress in loop

2005-10-10 Thread Rainer M. Krug
$SigCM[i] - sum(CM, na.rm=TRUE) i #Doesn't display in the loop } -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology University of Stellenbosch Matieland 7602 South Africa

Re: [R] Show Progress in loop

2005-10-10 Thread Rainer M. Krug
I put print(i) in the loop instead of i, but it still only prints (in the Windows R GUI) i after it finished the calculations. I guess it might be due to the output buffering you mentioned - but how do I unset it? Rainer Peter Dalgaard wrote: Rainer M. Krug [EMAIL PROTECTED] writes: Hi I

Re: [R] Show Progress in loop

2005-10-10 Thread Rainer M. Krug
Thanks - flush.console() did the trick. As you might guess, I am quite new to R. I like the idea of vectorizing the calculation, but I guess it is not possible in this case - I will ask in a new thread. Thanks, Rainer Uwe Ligges wrote: Rainer M. Krug wrote: Hi I have a loop which

[R] Vectorizing loop

2005-10-10 Thread Rainer M. Krug
,] * Result$LSim[i,]) / abs(K$r[2] - K$r[1]) Result$SigCM[i] - sum(CM, na.rm=TRUE) print(i) flush.console() } -- NEW TELEPHONE NUMBER Tel:+27 - (0)72 808 2975 (w) Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation

  1   2   >