Re: [R] Making an if condition variable ?

2016-06-02 Thread Rainer M Krug
uld say a candidate for a fortune? Rainer -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Making an if condition variable ?

2016-06-02 Thread Rainer M Krug
ead of the condition? cond <- function(x){x>0} and than if (cond(4)) {...} might be the easiest in this case? or, more flexible, cond <- function(...){x>0} if (cond(x=3)) {...} Cheers, Rainer > > ce > > > -Original Message- > From: "Rainer M Krug"

Re: [R] New installation

2016-06-10 Thread Rainer M Krug
, self-contained, reproducible code. >>> > >>> >>> [[alternative HTML version deleted]] >>> >>> __ >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> https://stat.et

Re: [R] How to visualize this df

2016-06-20 Thread Rainer M Krug
t for: an interactive presentation may call for different visualizations than a printed report. Cheers, Rainer > Thanks for any help! > Elahe > -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature __ R-h

Re: [R] How to visualize this df

2016-06-20 Thread Rainer M Krug
Sorry - haven't used ggplot in ages. Can't help you with that. Rainer > > > On Monday, June 20, 2016 1:29 PM, Rainer M Krug wrote: > "ch.elahe via R-help" writes: > >> Hi all, >> I have a question about how to visualize my df! here is my df I

Re: [R] save R object into a remote directory

2016-09-06 Thread Rainer M Krug
To UNSUBSCRIBE and more, see > 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 email: Rainerkrugsd

Re: [R] save R object into a remote directory

2016-09-06 Thread Rainer M Krug
out if this is possible or (s)he has other suggestions. > For that reason I was trying to save the object of of the remote server. > > Best, Cheers, Rainer > Simone > > On 6 September 2016 at 10:30, Rainer M Krug wrote: > > Simone Tenan writes: > > > Hi all

Re: [R] Run an external software in R

2016-09-07 Thread Rainer M Krug
.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] using read.csv2()

2016-09-29 Thread Rainer M Krug
lternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.

[R] Reset running R session to --vanilla state?

2015-05-28 Thread Rainer M Krug
2.0 (2015-04-16) | nickname Full of Ingredients ` 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

Re: [R] Reset running R session to --vanilla state?

2015-05-28 Thread Rainer M Krug
Duncan Murdoch writes: > On 28/05/2015 4:52 AM, Rainer M Krug wrote: >> Hi >> >> Is there a way of resetting R to the --vanilla state *without >> closing and restarting* R, i.e. all packages un-loaded (except the >> ones loaded automatically in --vanilla), a

Re: [R] Error in CSV file

2015-05-29 Thread Rainer M Krug
is message in context: > http://r.789695.n4.nabble.com/Error-in-CSV-file-tp4707879.html > Sent from the R help mailing list archive at Nabble.com. > -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature _

Re: [R] Issue with mcapply

2015-06-11 Thread Rainer M Krug
1] "Evaluating a : " | Time difference of 0.001929998 secs | [1] "Evaluating b : " | Time difference of 0.01943302 secs | > c(100) | [1] "Evaluating a : " | Time difference of 1.822959 secs | [1] "Evaluating b : " | Time difference of 1.46111

Re: [R] Issue with mcapply

2015-06-11 Thread Rainer M Krug
ux > Terminal. Might be memory allocation issue (hardware)? I have 1GB of memory. If I am not mistaken, all the data is copied into different R threads when using mclapply - so the memory requirement is much bigger. Cheers, Rainer > > > On Thu, Jun 11, 2015 at 2:15 PM, Rainer M Krug

Re: [R] Issue with mcapply

2015-06-11 Thread Rainer M Krug
this list. Cheers, 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 : +

[R] passing elements of named vector / named list to function

2015-01-15 Thread Rainer M Krug
- In my actual program, x can have different elements as well as fun - this is decided programmatically. Any suggestions how I can achieve this? Thanks, Rainer -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature ___

Re: [R] passing elements of named vector / named list to function

2015-01-16 Thread Rainer M Krug
riesO.O#. #.O#. with > /Software/Embedded Controllers) .OO#. .OO#. rocks...1k > ------- > Sent from my phone. Please excuse my brevity. > > On January 15, 2015 6:25:43

[R] Extracting elements out of list in list in list

2015-01-16 Thread Rainer M Krug
quot;) | x1 x2 | 11 12 ` But how can I do the same for x? I could put an sapply into an sapply, but this would be less then elegant. Is there an easier way of doing this? Thanks, Rainer -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature _

Re: [R] Extracting elements out of list in list in list

2015-01-19 Thread Rainer M Krug
The grep has one problem, as it would also return fields which contain an "A", e.g. "Alpha". I am sure this could be fixed with a regular expression. > f1.x1.A f1.x2.A f2.x3.A f2.x4.A > 11 12 13 14 >> > > I hope this helps. Thanks, Rainer. &g

Re: [R] Extracting elements out of list in list in list

2015-01-19 Thread Rainer M Krug
a is not information. Information is not knowledge. And knowledge > is certainly not wisdom." > Clifford Stoll > > > > > On Fri, Jan 16, 2015 at 7:23 AM, Chel Hee Lee wrote: >> This approach may not be fancy as what you are looking for. >> >>> xl

Re: [R] Extracting elements out of list in list in list

2015-01-19 Thread Rainer M Krug
; >> Bert Gunter >> Genentech Nonclinical Biostatistics >> (650) 467-7374 >> >> "Data is not information. Information is not knowledge. And knowledge >> is certainly not wisdom." >> Clifford Stoll >> >> >> >> >> On

[R] cat() and \r et al. escape sequences - are there more?

2015-01-22 Thread Rainer M Krug
\r as carriage-return \t as tab \v as vertical-tab are there more of these escape sequences? Especially, Can I position the cursor at a specific column? I would like to do this to show progress in an analysis done with mclapply() on multiple cores and, preferably, display each core (7) at a

Re: [R] cat() and \r et al. escape sequences - are there more?

2015-01-22 Thread Rainer M Krug
Envoyé de mon iPhone > Le 22 janv. 2015 à 15:29, Prof Brian Ripley a écrit : > >> On 22/01/2015 14:22, Rainer M Krug wrote: >> >> >> Envoyé de mon iPhone >> >>> Le 22 janv. 2015 à 15:11, Prof Brian Ripley a écrit >>> : >>> &

[R] [BUG] or [undocumented] boxplot - horizontal swaps ylim and xlim

2015-02-13 Thread Rainer M Krug
, ylim = c(0.2, 0.8) ) boxplot( x, ylim = c(0.2, 0.8), horizontal=TRUE ) --8<---cut here---end--->8--- This is either a bug or undocumented. Cheers, Rainer -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc D

Re: [R] [BUG] or [undocumented] boxplot - horizontal swaps ylim and xlim

2015-02-13 Thread Rainer M Krug
S Ellison writes: >> When using the function boxplot() together with the argument >> | horizontal = TRUE >> xlim and ylim become swapped, i.e. ylim refers to the x-axis instead of the >> y- >> axis: > > It is neither a bug nor undocumented, though the documentation is a > not in ?boxplot (becaus

[R] Convert numerical value into function which returns numerical value

2015-04-09 Thread Rainer M Krug
--cut here---end--->8--- But is there a better solution? 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

[R] "function" as variable name - probably better error message

2015-04-16 Thread Rainer M Krug
used in R as variable names (not even as elements in a a list())? This is not a huge problem, but it cost me a few minutes of figuring out. Thanks, Rainer -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature _

Re: [R] security using R at work

2018-08-09 Thread Rainer M Krug
IBE and more, see >> 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] security using R at work

2018-08-09 Thread Rainer M Krug
########## >> >> __ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-proje

[R] comparing two "half-normal production" stochastic frontier functions

2014-10-03 Thread Rainer M Krug
ass "frontier" ` Footnotes: [1] http://stats.stackexchange.com/questions/117319/comparing-coefficients-of-linear-stochastic-frontier-production-and-cost-funct -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 pgp2kBr_N08zn.pgp Description: PGP signature __

Re: [R] comparing two "half-normal production" stochastic frontier functions

2014-10-05 Thread Rainer M Krug
Arne Henningsen writes: > Dear Rainer > > On 3 October 2014 14:51, Rainer M Krug wrote: >> I am using the function frontier::sfa (from the package frontier) to >> estimate several "half-normal production" stochastic frontier functions. >> >> No

[R] evaluate NA to FALSE instead of NA?

2014-10-14 Thread Rainer M Krug
; p[sapply(p<=0.05, isTRUE)] | [1] 0.01 0.02 0.03 0.04 0.05 <<<=== I want this ` Is there a way that I can do this more easily then in my example above? It works, but it strikes me that there is not a better way of doing this - am I missing a command or option? Thanks, Ra

[R] SOLVED: evaluate NA to FALSE instead of NA?

2014-10-14 Thread Rainer M Krug
Thanks Joshua and Sven - I completely forgot about which() . Pascal - I never new about complete.cases - interesting function. Thanks, Rainer Rainer M Krug writes: > Hi > > I want to evaluate NA and NaN to FALSE (for indexing) so I would like to > have the result as in

Re: [R] Symbolic equations to R code?

2014-11-21 Thread Rainer M Krug
gt; > On 11/19/14 1:52 PM, Ista Zahn wrote: >> Hi Scott, >> >> Can you give a couple of examples of the equations you have in mind >> along with how those should be translated to R? >> >> Thanks, >> Ista >> > -- Rainer M. Krug email: Rainer

Re: [R] Gender balance in R

2014-11-25 Thread Rainer M Krug
rs (and users) be worried that the >> 'other half' is excluded? If so, how could female R users/developers be >> persuaded to become more visible (e.g. added as supporting or ordinary >> members)? >> >> Thanks, >> >> Maarten >> -- Rainer

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-12-01 Thread Rainer M Krug
aside, if I were the OP, and wanted to unsubscribe, the volume > of the e-mail messages on this topic alone would have been punishment > enough for the original post:-) > > Best wishes, > Ranjan > > ____ > FREE 3D MARIN

[R] optimizing with non-linear constraints

2015-09-30 Thread Rainer M Krug
somebody provide some info how I can convert these constraints | into arguments for the fitting functions (e.g. hin, heq in the alabama | package)? ` Footnotes: [1] http://stackoverflow.com/questions/32845169/how-to-optimize-with-non-linear-constraints-in-r -- Rainer M. Krug, PhD (Con

Re: [R] optimizing with non-linear constraints

2015-10-01 Thread Rainer M Krug
> 550 N. Broadway, Suite 1111-E > Baltimore, MD 21205 > 410-502-2619 > > > [[alternative HTML version deleted]] > -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature __ R-help@r-project

Re: [R] optimizing with non-linear constraints

2015-10-01 Thread Rainer M Krug
was one question I wanted to ask later. I will do so, Rainer > Best, > Ravi > > -Original Message- > From: Rainer M Krug [mailto:rai...@krugs.de] > Sent: Thursday, October 01, 2015 3:37 AM > To: Ravi Varadhan > Cc: 'r-help@r-project.org' >

[R] Bug in auglag?

2015-10-06 Thread Rainer M Krug
= za, z0sol = z0sol, LAI= LAI, y = ifelse ( missing(y), result$fit$par["y"], y) ) class(result) <- c(class(result), "wpLELFit") return(result) } #+end_src--8<---cut here---end--->8--- Ravi Va

Re: [R] Bug in auglag?

2015-10-06 Thread Rainer M Krug
Please ignore - list members - accidentally CCd. Rainer Rainer M Krug writes: > Hi Ravi, > > I would like come back to your offer. I have a problem which possibly is > caused by a bug or by something I don't understand: > > My function to be minimised is executed even

Re: [R] Bug in auglag?

2015-10-07 Thread Rainer M Krug
; not in the constrained domain. constrOptim.nl() is a barrier method > so it forces the initial value and the subsequent iterates to be > feasible. > Best, > Ravi > ________ > From: Rainer M Krug > Sent: Tuesday, October 6, 2015 9:20 AM > To: Ra

[R] Latin Hyper cube with condition col1+ col2 < x

2015-10-15 Thread Rainer M Krug
-start->8--- h <- 28 x[,"a"] <- x[,"a"] / 2 x[,"b"] <- x[,"b"] / 2 --8<---cut here---end--->8--- But this obviously reduces the individual ranges. Using the rowSum as in https://stat.ethz.ch/p

Re: [R] Latin Hyper cube with condition col1+ col2 < x

2015-10-15 Thread Rainer M Krug
OK - forgotten to state that h <- 1. This is for a sensitivity analysis which I want to conduct on a complex function. Rainer > > > B. > > On Oct 15, 2015, at 8:48 AM, Rainer M Krug wrote: > >> Hi >> >> I need a Latin Hypercube with the following condit

Re: [R] Latin Hyper cube with condition col1+ col2 < x

2015-10-15 Thread Rainer M Krug
gt;> desired distribution of h - x[,"a"] + x[,"b"] should look like. >> >> No? >> >> >> B. >> >> >> >> On Oct 15, 2015, at 9:27 AM, Rainer M Krug wrote: >> >>> Boris Steipe writes: >>>

Re: [R] could not load r package in mac

2015-11-25 Thread Rainer M Krug
ad 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 Invasion Biology Stell

Re: [R] How to install package effects

2016-03-11 Thread Rainer M Krug
; guide.html >> and provide commented, minimal, self-contained, reproducible code. > > [snip: disclaimer (52 lines)] > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R] specify size of box around legend

2016-03-11 Thread Rainer M Krug
of the box, so that L 1 and L 2 have the same width? In the same sense: can I also specify the height of the legend, so that L 1 and L 3 have the same height? Thanks, Rainer -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature __

Re: [R] specify size of box around legend

2016-03-11 Thread Rainer M Krug
Duncan Murdoch writes: > On 11/03/2016 9:01 AM, Rainer M Krug wrote: >> Hi >> >> assume the following code: >> >> --8<---cut here---start->8--- >> plot(1,1) >> legend(x="topleft", legend = LETTERS[1

Re: [R] specify size of box around legend

2016-03-14 Thread Rainer M Krug
2") Interesting - I like it. Thanks, Rainer > > - > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > -Original Message----- > From: R-help [mailto:r-help-bo

Re: [R] Problem installing rgdal.

2016-10-05 Thread Rainer M Krug
library from http://trac.osgeo.org/gdal/wiki/DownloadSource and PROJ.4 (proj >= 4.4.9) from http://download.osgeo.org/proj/";), make sure that they are working from the commandline, and that try again installing the version of rgdal. And if not, there is r-sig-spatial which is a much better place

[R] Getting cited references and times cited from DOI for analysis in R?

2016-10-14 Thread Rainer M Krug
r for getting a list of the cited papers and the count of how often the paper has been cited? I have access to web of science, which can provide this information, but can I somehow do this in a scripted R way as I want to analyse the data in R afterwards? Thanks, Rainer -- Rainer M. Krug emai

[R] bug in readRAST6 function in package spgrass6

2008-08-01 Thread Rainer M Krug
j4string = p4, integer = to_int) : no such file: /home/rkrug/Documents/Projects/AlienSpread/R/../grass/simulation/.tmp/ecolmod/HSericea_seedsDisperse_2007 Thanks Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence

Re: [R] bug in readRAST6 function in package spgrass6

2008-08-01 Thread Rainer M Krug
On Fri, Aug 1, 2008 at 6:03 PM, Roger Bivand <[EMAIL PROTECTED]> wrote: > On Fri, 1 Aug 2008, Rainer M Krug wrote: > >> Hi >> >> if I try to import a raster layer which consists only of NULL values >> from grass by using the readRAST6, I get a

[R] linebreak in mathematical anotation?

2008-09-01 Thread Rainer M Krug
.arg=parse(text=tt)) But I would like to have it with "set" in a second column, like tt <- c("First\nset", "Second\nset", "third\nset") barplot(1:3, names.arg=tt) only in italics. Is this possible? Thanks Rainer -- Rainer M. Krug, PhD (Conservation E

Re: [R] linebreak in mathematical anotation?

2008-09-01 Thread Rainer M Krug
tt) Thanks a lot - that is exactly what I was looking for Rainer > > On Mon, Sep 1, 2008 at 12:17 PM, Rainer M Krug <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> I am using mathematical anotation to make the labels in a barplot in >> italics. as an example (ada

Re: [R] linebreak in mathematical anotation?

2008-09-01 Thread Rainer M Krug
On Mon, Sep 1, 2008 at 5:26 PM, Rainer M Krug <[EMAIL PROTECTED]> wrote: > On Mon, Sep 1, 2008 at 5:22 PM, Henrique Dallazuanna <[EMAIL PROTECTED]> > wrote: >> If I understand: >> >> tt <- c(expression(italic('First\nset')), expression(italic(

[R] List of tags in roxygen and use for S4 classes?

2009-09-01 Thread Rainer M Krug
Hi is there a list of all roxygen tags which are available? I couldn't find them. I am asking specifically towards the use of roxygen in documenting S4 classes - is that implemented yet (i am using roxygen 0.1 from CRAN at the moment)? Thanks Rainer -- Rainer M. Krug, Centre of Excel

Re: [R] List of tags in roxygen and use for S4 classes?

2009-09-07 Thread Rainer M Krug
are in the > process of preparing a paper based on our DSC talks; that should fill > in some of the details w.r.t. S4. That sounds exciting. I am really looking forward to it - because roxygen is the way to go for documenting. Rainer > -- Rainer M. Krug, Centre of Excellence for Inv

Re: [R] List of tags in roxygen and use for S4 classes?

2009-09-07 Thread Rainer M Krug
On Fri, Sep 4, 2009 at 4:47 PM, Bernd Bischl wrote: > Rainer M Krug wrote: >> >> Hi >> >> is there a list of all roxygen tags which are available? I couldn't find >> them. >> >> I am asking specifically towards the use of roxygen in documenting S

[R] getting name from function?

2009-09-07 Thread Rainer M Krug
Hi I have the following function which should return the name of FUN: myFUN <- function(FUN) { return( THE_NAME_OF_FUN(FUN)) } Is it possible? What do I have tio use here instead of THE_NAME_OF_FUN? Thanks, Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbo

Re: [R] getting name from function?

2009-09-07 Thread Rainer M Krug
On Mon, Sep 7, 2009 at 11:26 AM, baptiste auguie < baptiste.aug...@googlemail.com> wrote: > Hi, > > Try this, > > myFUN <- function(FUN) { > return(deparse(substitute(FUN))) > } > > Thanks - that's it Rainer > HTH, > > baptiste > > 20

[R] extracting one element from all list elements

2009-09-16 Thread Rainer M Krug
list(e1=d, e2=d, e3=d, e4=d) f <- sapply(theList, function(l){l$A} ) But I am sure ther is a more elegant way? Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa [[alternative HTML version deleted]] _

Re: [R] extracting one element from all list elements

2009-09-16 Thread Rainer M Krug
On Wed, Sep 16, 2009 at 1:35 PM, Henrique Dallazuanna wrote: > Try this: > > sapply(theList, '[[', 'A') > Thanks Henrique - that is much more elegant. Rainer > > On Wed, Sep 16, 2009 at 8:34 AM, Rainer M Krug wrote: > > Hi > > > > I

Re: [R] Four concurrent Markov chains

2009-09-21 Thread Rainer M Krug
h appreciated. > > Hope this helps, Rainer > Lucy > -- > View this message in context: > http://www.nabble.com/Four-concurrent-Markov-chains-tp25530321p25530321.html > Sent from the R help mailing list archive at Nabble.com. > > __

[R] stringsAsFactors has no impact in expand.grid()?

2009-06-25 Thread Rainer M Krug
os linux-gnu system i486, linux-gnu status major 2 minor 9.0 year 2009 month 04 day17 svn rev48333 language R version.string R version 2.9.0 (2009-04-17) Cheers, Rainer -- Rainer M. Krug, Centre of E

Re: [R] stringsAsFactors has no impact in expand.grid()?

2009-06-25 Thread Rainer M Krug
nx)), orep)] > if(stringsAsFactors){ > if (!is.factor(x) && is.character(x)) > x <- factor(x, levels = unique(x)) > }else{ > x > } > cargs[[i]] <- x > rep.fac <- re

Re: [R] stringsAsFactors has no impact in expand.grid()?

2009-06-25 Thread Rainer M Krug
> > > R.version.string > [1] "R version 2.9.1 RC (2009-06-19 r48804)" > > > On Thu, Jun 25, 2009 at 7:21 AM, Rainer M Krug wrote: > > Hi > > > > I have the feeling, that the argument stringsAsFactors has no impact in > the > > function expand.g

[R] How to get best performance from R on Linux?

2009-06-30 Thread Rainer M Krug
uot; on my computer - compiling myself? specific switches? compile libraries?, ... Thanks Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa [[alternative HTML version deleted]] _

[R] Indexing matrix

2009-06-30 Thread Rainer M Krug
s includes an additional assignment. This is not of practical use at the moment - the question came up when preparing a lecture. Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa [[alternat

Re: [R] Indexing matrix

2009-06-30 Thread Rainer M Krug
On Tue, Jun 30, 2009 at 3:26 PM, Gabor Grothendieck wrote: > On Tue, Jun 30, 2009 at 9:19 AM, Rainer M Krug wrote: > > Hi > > > > imagine the following situation: > > > > a <- runif(100) > > plot(a[a>0.5]) > > > > plots only the ele

Re: [R] How to get best performance from R on Linux?

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 2:47 AM, Dirk Eddelbuettel wrote: > > Rainer, > > On 30 June 2009 at 14:30, Rainer M Krug wrote: > | following a discussion on difference in speed of R between R and Linux, I am > | wondering: is there a howto to get the most (concerning speed) out

[R] sweave output

2009-07-20 Thread Rainer M Krug
Hi I am using sweave and have read somewhere a way of adding ... when printing vectors / dataframes which are longer then a given length, but I can't find this anymore. Could somebody point me into the right direction, where I could find it? Thanks Rainer -- Rainer M. Krug, Cent

[R] SweaveOpts(eval=false) not working

2009-07-23 Thread Rainer M Krug
g eval=FALSE as a global option? Thanks a lot, Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] SweaveOpts(eval=false) not working - CORRECTION

2009-07-23 Thread Rainer M Krug
On Thu, Jul 23, 2009 at 3:04 PM, Duncan Murdoch wrote: > On 23/07/2009 8:58 AM, Rainer M Krug wrote: >> >> Hi >> >> I hope this is the right mailing list - if not, could you please refer >> me to a mora appropriate? >> >> My question: >> >>

[R] Adding picture to graph?

2009-07-29 Thread Rainer M Krug
: is it possibe to define own symbols so that they can be used in the plot function with pch=? Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa __ R-help@r-project.org mailing list https

Re: [R] Adding picture to graph?

2009-07-30 Thread Rainer M Krug
in the TeachingDemos package. > > Hope this helps, > > -- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > >> -Original Message- >> From: r-help-boun...@r-project.org [m

[R] Getting file name from pdf device?

2009-07-31 Thread Rainer M Krug
call of pdftk. My question: how can I get the filename of the pdf from the device before it is closed? Thanks Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa __ R-help@r-project.org mailing

Re: [R] Compress (gzip) a pdf device

2009-09-30 Thread Rainer M Krug
cun modo. > >[[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

[R] fitting logistic model with constant harvesting

2009-09-30 Thread Rainer M Krug
population size, N the carrying capacity, k the growth rate and a the constant harvest. My question is, how can I fit this logistic growth with constant harvesting to my data? Thanks, Raine -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany

Re: [R] Compress (gzip) a pdf device

2009-10-01 Thread Rainer M Krug
tion (pdfname){ > if (0){ >x <- tempfile() >system (paste ("mv", pdfname, x)) >system (paste ("pdftk", x, "output", pdfname, "compress")) >unlink (x) > } > } > > pdf ("test.pdf") > plot (1:10) >

Re: [R] Compress (gzip) a pdf device

2009-10-02 Thread Rainer M Krug
e work I could use it for R > 2.9.2 and works fine. > Thanks - I will look into it and give feedback as soon as I have done. Cheers, Rainer > > Best, > Gabor > > On Fri, Oct 2, 2009 at 8:54 AM, Rainer M Krug wrote: > > On Thu, Oct 1, 2009 at 7:26 PM, Martin Renner &l

[R] nls not accepting control parameter?

2009-10-02 Thread Rainer M Krug
xmid, scal), data = dat, control=c(minFactor=newMinFactor), trace=TRUE) -- 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 C

Re: [R] nls not accepting control parameter?

2009-10-05 Thread Rainer M Krug
27;minFactor' of 0.000976562" and it does not change to whichever value I try to set minFactor. So either I am misunderstanding what the control argument for nls is doing, or there is a bug in nls or in the error message. Rainer > -Peter Ehlers > > > Rainer M Krug wrot

[R] Question about mirroring CRAN

2009-10-07 Thread Rainer M Krug
Hi this might be the wrong mailing list, but it also does not fit the dev list. As we are planning to setup a mirror of CRAN, we would like to know the approximate size of the mirror and the necessary bandwidth requirements to keep it updated. Thanks a lot in advance, Rainer -- Rainer M

[R] Second y-axis --- alternative to par(new=

2009-10-07 Thread Rainer M Krug
uot;l", xlim=xlim) par(new=TRUE) plot(x2, y2, type="p", xlim=xlim) axis(4) Cheers, 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 20

Re: [R] Second y-axis --- alternative to par(new=

2009-10-07 Thread Rainer M Krug
; > plot(x1, y1, type="l") > > par(new=TRUE) > > plot(x2, y2, type="p") > > axis(4) > > > > ## (2) Does plot points where (x-axis) they should be > > xlim <- range(x1) > > plot(x1, y1, type="l", xlim=xlim) > &

Re: [R] Second y-axis --- alternative to par(new=

2009-10-07 Thread Rainer M Krug
> > tickmarks > > > > for axis 4 manually. > > > > > > > > HEre is an example about what I mean: > > > > > > > > x1 <- 1:10 > > > > y1 <- runif(10) > > > > x2 <- 1:11 > > > > y2 <- c(y1*100

Re: [R] Second y-axis --- alternative to par(new=

2009-10-07 Thread Rainer M Krug
On Wed, Oct 7, 2009 at 12:26 PM, Petr PIKAL wrote: > Hi > > Rainer M Krug napsal dne 07.10.2009 12:09:21: > > > > > > On Wed, Oct 7, 2009 at 11:53 AM, Petr PIKAL > wrote: > > r-help-boun...@r-project.org napsal dne 07.10.2009 11:37:22: > > > &g

Re: [R] Second y-axis --- alternative to par(new=

2009-10-07 Thread Rainer M Krug
On Wed, Oct 7, 2009 at 1:48 PM, Petr PIKAL wrote: > Hi > > Rainer M Krug napsal dne 07.10.2009 12:40:39: > > > > > > On Wed, Oct 7, 2009 at 12:26 PM, Petr PIKAL > wrote: > > Hi > > > > Rainer M Krug napsal dne 07.10.2009 12:09:21: > > >

Re: [R] intersection of 2 density curves

2009-10-08 Thread Rainer M Krug
istinfo/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 of Excel

Re: [R] intersection of 2 density curves

2009-10-08 Thread Rainer M Krug
graph until visually i > "hit"= > the intersection point) > > > > > > > > > > abline(v =3D 0.35=2C lty =3D 2) > > > > abline(h =3D 0.34=2C lty =3D 2) > > > > > > > > I really appreciate any hints you may have=2C than

Re: [R] Pausing R

2009-10-19 Thread Rainer M Krug
ourse - I am a Windows user. I am not - I am using Linux. Just for interests sake: how can I pause a task in Linux? Rainer > > DTaskManager did the trick - many thanks! > > /Anders > > __ > R-help@r-project.org mailing list > https://

Re: [R] Pausing R

2009-10-19 Thread Rainer M Krug
/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, UCT), Dipl. Phys. (Germ

Re: [R] Pausing R

2009-10-19 Thread Rainer M Krug
er > > Barry > > __ > 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,

[R] Keeping package sources for recompilation with new R version?

2009-10-21 Thread Rainer M Krug
in which to save the source files of the packages, but how can I use this directory as a first choice, and only download if a newer version exists? Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion

[R] sunflowerplot - digits parameter separate for x and y values?

2009-10-22 Thread Rainer M Krug
Hi I have a sunflowerplot, in which the x and y axis cover different ranges (different orders of magnitude). Is it possible to specify different "digits" for the x and y axis? Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys

Re: [R] Keeping package sources for recompilation with new R version?

2009-10-25 Thread Rainer M Krug
2009/10/25 Uwe Ligges > > > Rainer M Krug wrote: > >> Hi >> >> I am using Ubuntu Hardy, and I installing many packages from source. I am >> keeping my R packages fairly up to date. >> >> My question is: is there a way, of keeping the source pa

Re: [R] Histogram and Density on the the same graph

2009-11-30 Thread Rainer M Krug
iling 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 Ecolog

[R] Creating bibtex file of all installed packages?

2009-12-10 Thread Rainer M Krug
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 Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell

  1   2   3   4   5   >