Re: [R] Creating bibtex file of all installed packages?

2009-12-11 Thread Rainer M Krug
On Fri, Dec 11, 2009 at 9:41 AM, Achim Zeileis wrote: > On Fri, 11 Dec 2009, Rainer M Krug wrote: > > Hi >> >> is there an easy and fast way, to generate a BibTeX file of all installed >> / >> loaded packages and R? >> >> I know about toBibtex(c

Re: [R] Playing with rgl: a Youtube video

2009-12-23 Thread Rainer M Krug
> cbind(sin(theta) + sin(2*theta)/2, sin(theta-pi) + sin(2*theta)/2, theta) > > in the local coordinates of the knot. > > Overall it's about 100 lines of R code, too ugly to post. > > Duncan Murdoch > > > __ > R-h

[R] creating list with 200 identical objects

2009-06-01 Thread Rainer M Krug
ze in one go, to avoid the continuous reallocation of memory when a new "track" is added, and fill it wit the object created by new("track"). How can I do this? thanks Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, S

Re: [R] creating list with 200 identical objects

2009-06-01 Thread Rainer M Krug
] now this is a really sneaky one - I like it, although it is the most difficult to understand. Thanks for these options. I think I will go with the first one, as it is the most intuitive one. Thanks, Rainer > > Romain > > Rainer M Krug wrote: >> >> Hi >> >> I

Re: [R] creating list with 200 identical objects

2009-06-01 Thread Rainer M Krug
On Mon, Jun 1, 2009 at 12:27 PM, Chuck Cleland wrote: > On 6/1/2009 6:08 AM, Rainer M Krug wrote: >> Hi >> >> I am doing an simulation, and I a large proportion of the simulation >> time is taken up by memory allocations. >> >> I am creating an object, an

Re: [R] creating list with 200 identical objects

2009-06-02 Thread Rainer M Krug
he last one;  i got caught by that redefining 'foo' with > setClass does not remove the initializer.  so here's another situation > (best to execute in a fresh session) you should beware: > >    setClass('foo', >        representation=representation(content='

Re: [R] creating list with 200 identical objects

2009-06-02 Thread Rainer M Krug
On Tue, Jun 2, 2009 at 10:44 AM, Wacek Kusnierczyk wrote: > Rainer M Krug wrote: >> Thanks a lot Wacek for this clear description of the problem - I was >> not aware, that it is that complex. >> I definitely did not consider the initialize() function in writing my code. >

[R] order() with randomised order in ties?

2009-06-04 Thread Rainer M Krug
5 8 9 11 14 16 17 20 > rank(x, ties.method="random") [1] 2 4 5 7 9 12 14 15 18 19 1 3 6 8 10 11 13 16 17 20 Thanks Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa

Re: [R] order() with randomised order in ties?

2009-06-04 Thread Rainer M Krug
Sorry for replying to my own post, but I found a solution. Still, a more elegant solution would be preferred. On Thu, Jun 4, 2009 at 12:02 PM, Rainer M Krug wrote: > Hi > > I want to use order() to get the order of a vector. > > But I would need a different behavior when ties oc

Re: [R] order() with randomised order in ties?

2009-06-04 Thread Rainer M Krug
erno" and "A Guide for the Unwilling S User") > > Rainer M Krug wrote: >> >> Sorry for replying to my own post, but I found a solution. Still, a >> more elegant solution would be preferred. >> >> On Thu, Jun 4, 2009 at 12:02 PM, Rainer M Krug wr

Re: [R] order() with randomised order in ties?

2009-06-04 Thread Rainer M Krug
On Thu, Jun 4, 2009 at 12:45 PM, Rainer M Krug wrote: > On Thu, Jun 4, 2009 at 12:36 PM, Patrick Burns > wrote: >> How about: >> >> order(x, runif(length(x))) > > Thanks - that is really elegant. One thing: it is saver to use sample(length(x)) instead of runif(len

[R] Problem with generic methods

2009-06-05 Thread Rainer M Krug
) setMethod( + "beginYear", + signature( object = "numeric" ), + beginYear + ) [1] "beginYear" > beginYear.Fun(4) [1] 16 > beginYear(4) Error: evaluation nested too deeply: infinite recursion / options(expressions=)? > -- Rainer

Re: [R] Problem with generic methods

2009-06-08 Thread Rainer M Krug
On Sat, Jun 6, 2009 at 12:14 AM, Martin Morgan wrote: > Rainer M Krug writes: > >> Hi >> >> I want to create a new generic method, but I end up with an error >> (evaluation nested too deeply). see the transcript below. >> The function beginYear.Fun() works, but

[R] Calculating Modal value and huge dataset

2009-04-02 Thread Rainer M Krug
list(as.numeric(x[1:3])), sum) result <- result[[1]][which.max(result[[2]])] return(result) } } ) > p 158726 158727 158728 158729 158730 158731 3 3 3 3 NA

Re: [R] Can I save R graphs as a R objects

2010-01-15 Thread Rainer M Krug
ing 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 Excellence for Invasio

Re: [R] OT: Software for specific visualisation of data...ideas?

2010-01-19 Thread Rainer M Krug
ide commented, minimal, self-contained, reproducible code. > > > > > > -- > Ista Zahn > Graduate student > University of Rochester > Department of Clinical and Social Psychology > http://yourpsyche.org > > __ > R-help@r-project.org mailing list > https://stat.ethz

Re: [R] superimpose histogram and fitted gamma pdf

2010-01-20 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. > > -- NEW GERM

Re: [R] R Output and ArcGIS

2010-01-26 Thread Rainer M Krug
_ > Got a cool Hotmail story? Tell us now > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-p

Re: [R] Inappropriate color name

2020-11-16 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-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible cod

Re: [R] New Work Based on R

2019-08-29 Thread Rainer M Krug
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 > PLEASE do read the posting guide http://www.R-project.org/posti

[R] Bug in "==" with empty data frames

2019-09-05 Thread Rainer M Krug
en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_3.6.1 ### -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation B

Re: [R] Strange behaviour of R?

2020-01-16 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-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Rainer M.

Re: [R] How to read a file containing two types of rows - (for the Netflix challenge data format)

2020-01-31 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-project.org/posting-guide.html > and provide commented, minimal, self-contained,

[R] Load svg, eps or png into graphics device?

2020-06-19 Thread Rainer M Krug
a way of bringing graphics files (png, sag, eps, …) into a graphics device in R? Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Orcid ID: -0002-7490-0066 Department of Evolutionary Biology and Environmental

Re: [R] Load svg, eps or png into graphics device?

2020-06-22 Thread Rainer M Krug
gt; format, which you could read in with readLines(), but I'm not sure you want > an ASCII art version :) Actually, it could actually be an option if none of the above is installed. Kind of cascading, depending if installed: eps - sag - png - ASCII art. Thanks, Rainer > > Paul >

Re: [R] Load svg, eps or png into graphics device?

2020-06-22 Thread Rainer M Krug
for the raster representation. > image file, and then reading it back into a vector graphics system, > would create unnecessary problems. That one is true. Thanks, Rainer > > > On Sat, Jun 20, 2020 at 2:56 AM Rainer M Krug wrote: >> >> >> Hi >> &

Re: [R] Help with functions as arguments

2013-02-12 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/02/13 08:30, Ian Renner wrote: > Hi, > > I am trying to write a function which defines some arguments, then uses those > arguments as > arguments of other function calls. It's a bit tricky to explain, so a simple > example will have > to suff

[R] Remove site path from .libPaths

2013-02-15 Thread Rainer M Krug
" > .Library.site [1] "" > > .libPaths("") .libPaths() [1] "/usr/lib/R/site-library" "/usr/lib/R/library" > even executing > .libPaths(.libPaths()) does not change anything. Am I missing something or is there a bug in .libPaths()? Che

Re: [R] Remove site path from .libPaths

2013-02-15 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15/02/13 15:41, Duncan Murdoch wrote: > On 13-02-15 9:28 AM, Rainer M Krug wrote: Hi > > I am sure I am missing something really basic, but I can't figure it out. > > I want to start R so that I can specify the location for

Re: [R] Remove site path from .libPaths

2013-02-15 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15/02/13 16:06, Duncan Murdoch wrote: > On 13-02-15 9:54 AM, Rainer M Krug wrote: On 15/02/13 15:41, Duncan Murdoch > wrote: >>>> On 13-02-15 9:28 AM, Rainer M Krug wrote: Hi >>>> >>>> I am sure I am m

Re: [R] Tablet and executing R

2013-04-09 Thread Rainer M. Krug
ainer > > [[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, minimal, self-con

Re: [R] how to transform string to "Camel Case"?

2013-04-15 Thread Rainer M. Krug
t;>> get: >>> c('R Project', 'Hello World', 'Something Else') >>> >>> >>> Regards, >>> Liviu >>> >>> >>> -- >>> Do you know how to read? >>> http://www.alienetworks.com/s

Re: [R] rstudio client on the i-pad

2012-09-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wrong mailing list: http://rstudio.org/docs/help_with_r Cheers, Rainer On 13/09/12 11:20, Frans Marcelissen wrote: > Hi, The combination of ipad+rstudio (server) would be a fantastic > combination-if it worked. It > _is_ possible to run rstudio in

Re: [R] Memory usage in R grows considerably while calculating word frequencies

2012-09-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/09/12 01:29, mcelis wrote: > I am working with some large text files (up to 16 GBytes). I am interested > in extracting the > words and counting each time each word appears in the text. I have written a > very simple R > program by following

Re: [R] Modern Symbolic debugger for R programmes?

2012-10-09 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/10/12 06:12, Worik R wrote: > I think I am whistling in the wind, but is there a modern symbolic debugger > for R programmes? > > I am working through some one else's code, thousands of lines, that has the > occasional bug in > it, and a lot

Re: [R] Modern Symbolic debugger for R programmes?

2012-10-09 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/10/12 09:42, Rainer M Krug wrote: > On 09/10/12 06:12, Worik R wrote: >> I think I am whistling in the wind, but is there a modern symbolic debugger >> for R >> programmes? > >> I am working through some one e

Re: [R] Connect R and Lyx in UBUNTU

2012-10-10 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/10/12 11:57, ATANU wrote: > Recently I have been using R in UBUNTU 11.10. Can anyone please tell me how > to connect R and > Lyx in UBUNTU? I have been successful in doing that under Windows but I got > stuck for Ubuntu. This is a LyX question

Re: [R] Connect R and Lyx in UBUNTU

2012-10-10 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have pointed out already: This is a LyX question - please ask on their mailing list (http://www.lyx.org/MailingLists#toc2 and http://dir.gmane.org/gmane.editors.lyx.general) There are many users who use LyX / sweave or knitr / R under Ubuntu! Rai

[R] Include plotting symbals pch 16 and 17 into captions / text in pdf graph

2014-07-21 Thread Rainer M Krug
->8--- which results in the attached pdf (hope it comes through). If not: the utf symbol for the upward error is displayed as an empty square with a question mark in it). Is there a way that I can show the plotting symbol pch=17 in the caption when using this font? Thanks, Rainer --

[R] reinstall all packages - easy way?

2014-01-09 Thread Rainer M Krug
-packages-for-r-3-0/ But I am wondering if there is an easier approach? 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

Re: [R] reinstall all packages - easy way?

2014-01-09 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/09/14, 10:35 , Berwin A Turlach wrote: > G'day Rainer, Hi Berwin, > > On Thu, 09 Jan 2014 10:10:43 +0100 Rainer M Krug > wrote: > >> is there an easy way of re-installing all packages in my user >>

[R] Grouping commands so that variablas are removed automatically - like functions

2014-01-20 Thread Rainer M Krug
more # but x is still defined {} is great for grouping the commands, but the variables are not deleted afterwards. Am I missing a language feature in R? Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for

[R] "non-deletable" varibles like in packages but during runtime?

2014-01-20 Thread Rainer M Krug
ables from org-mode to R. But these are "normal" variables, so that I can overwrite them and delete them, and they are gone. I would like to have a mechanism so that the original value would always be available. Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN

Re: [R] Grouping commands so that variablas are removed automatically - like functions

2014-01-20 Thread Rainer M Krug
.0001819203 >> gc() > used (Mb) gc trigger (Mb) max used (Mb) Ncells 199666 10.7 > 407500 21.8 35 18.7 Vcells 308780 2.42975200 22.7 > 3710863 28.4 >> > > Jim Holtman Data Munger Guru > > What is the problem that you are trying to solve? Tell me what you &g

Re: [R] Publication-ready figures in R?

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

[R] grep for multiple pattern?

2014-02-13 Thread Rainer M Krug
the strict full-string matching of match()? I could obviously do: > unlist( sapply(pat, grep, month.name ) ) an em1 em2 em3 eb 1 9 11 12 2 but is there a more compact command I am missing? Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation

Re: [R] grep for multiple pattern?

2014-02-13 Thread Rainer M Krug
> What is the problem that you are trying to solve? > Tell me what you want to do, not how you want to do it. > > > On Thu, Feb 13, 2014 at 9:43 AM, Rainer M Krug <mailto:rai...@krugs.de>> wrote: > > Hi > > I want to search for multiple pattern as grep

[R] Assigning & function to variable

2014-02-21 Thread Rainer M Krug
. So how can I assign the logical function to the variable link, so that I can do TRUE link FALSE 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 A

Re: [R] Assigning & function to variable

2014-02-21 Thread Rainer M Krug
Prof Brian Ripley writes: > On 21/02/2014 10:07, Rainer M Krug wrote: >> Hi >> >> I want to assign the function & and | to a variable, because I want to >> specify as a function argument if inside the function & or | should be >> used. >> >>

[R] alternative to wireframe()

2014-03-04 Thread Rainer M Krug
p(columns, each=length(x$tss)) ### layout(matrix(1:4, ncol=2), c(1,2,3,4)) ### wireframe( zp ~ xp * yp, xlab = "threshold 1", ylab = "threshold 2", zlab = paste(columns, collapse="\n"), groups = grp, par.settings = simple

Re: [R] Emacs/R/SSH But View( ) Doesn't Work

2014-03-07 Thread Rainer M Krug
rnative HTML version deleted]] > Footnotes: [1] https://stat.ethz.ch/mailman/listinfo/ess-help [2] http://ess.r-project.org/Manual/ess.html#Rdired -- Rainer M. Krug email: RMKruggmailcom pgpuF5v0vQ3PA.pgp Description: PGP signature __ R-hel

Re: [R] Environment variable defined in .bashrc is not recognized by R

2014-04-01 Thread Rainer M Krug
ll be sourced by the login shell - different between OS and distros. Cheers, Rainer > > If I type: Sys.getenv("R_HISTFILE") > the output is: "" > > How can I get R recognizing environment variables? > > Best, > Luca -- Rainer M.

Re: [R] Environment variable defined in .bashrc is not recognized by R

2014-04-01 Thread Rainer M Krug
> > On Tue, Apr 1, 2014 at 11:25 AM, Rainer M Krug wrote: >> Luca Cerone writes: >> >>> Dear all, >>> in my .bashrc file I have set the environment variable R_HISTFILE like this: >>> >>> export R_HISTFILE="$HOME/.Rhistory" >>&

Re: [R] Re : Privacy rights of an old user of this list

2013-09-21 Thread Rainer M Krug
ago to publish here. I don't think that they > own the rights of what I wrote and I wonder what I have done wrong to be > disrespected in such a way. Best regards, John Gonzalez (pseudonym) > [[alternative HTML version! > deleted]] __

Re: [R] Why does sin(pi) not return 0?

2013-09-26 Thread Rainer M Krug
lation to R: > > all.equal(0,sin(pi)) > # [1] TRUE > > So it depends on what you mean by "different from". Computers > have their own fuzzy concept of this ... Babak has too fussy > a concept. > > Ted. > > ------------

Re: [R] Thoughts for faster indexing

2013-11-21 Thread Rainer M Krug
ommented, 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 http://www.R-project.org/posting-guide.html > and provide co

[R] Merging two data frames, but keeping NAs

2013-12-05 Thread Rainer M Krug
that I can tell merge() to keep the NA, or how can I achieve what I want? 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

Re: [R] Merging two data frames, but keeping NAs

2013-12-06 Thread Rainer M Krug
e > data, sort on the index column, then delete it. Thanks Sarah - that works nicely, although it is a not so nice workaround 0 there should be an argument in merge to keep NA... Cheers, Rainer > > Sarah > > On Thu, Dec 5, 2013 at 9:56 AM, Rainer M Krug > wrote: >> -

Re: [R] Merging two data frames, but keeping NAs

2013-12-06 Thread Rainer M Krug
y,by="ref") > ref id val 1 NA NA NA 2 NA NA NA 3 NA NA NA 4 10 NA NA > 59 9 106 68 8 107 77 7 105 86 6 104 95 NA > NA 10 NA NA NA 11 1 NA NA 12 2 2 101 13 3 3 102 14 4 > 4 103 15 5 NA NA > > > A.K. > > >

Re: [R] sharing experience - installing R Spatial Views

2010-06-14 Thread Rainer M Krug
ands for the most widely used Linux distros on how to install them? This could save quite some time in installing those. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Inva

Re: [R] how to process this in R

2010-07-07 Thread Rainer M Krug
t; -- > View this message in context: > http://r.789695.n4.nabble.com/how-to-process-this-in-R-tp2281283p2281283.html > 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 > PLE

[R] x-axis labels for barplot of zoo object

2010-07-08 Thread Rainer M Krug
<- ts(runif(1000), start=c(2000, 150), frequency=365) barplot(zoo(x)) Cheers, Rainer -- 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 Building Office Su

Re: [R] x-axis labels for barplot of zoo object

2010-07-08 Thread Rainer M Krug
On Thu, Jul 8, 2010 at 12:42 PM, Gabor Grothendieck wrote: > On Thu, Jul 8, 2010 at 4:17 AM, Rainer M Krug wrote: > > Hi > > > > Let's assume, I have a dataset of 1000 datapoints, which represent daily > > recordings of a measurement. > > They are st

Re: [R] Syntax Highlightning and Editor for Linux

2010-07-23 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 Ec

Re: [R] Syntax Highlightning and Editor for Linux

2010-07-23 Thread Rainer M Krug
the Run menu or keyboard shortcuts. Cheers, Rainer > > Best Regards > Alex > > -------- > *From:* Federico Andreis > *To:* Rainer M Krug > *Cc:* Alaios ; r-help@r-project.org > *Sent:* Fri, July 23,

Re: [R] Reproducible research

2010-09-09 Thread Rainer M Krug
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 Natural Sciences Building Office Suite 2039

Re: [R] Which language is faster for numerical computation?

2010-09-09 Thread Rainer M Krug
ting-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 Stellenbos

Re: [R] Object oriented programming in R.

2010-09-14 Thread Rainer M Krug
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. look at ?rep: x <- rep(list(createTheObject(), 10) x will be a list containing 10

Re: [R] Enumerating unit cell traversals Re: Interpolate? a line

2010-09-15 Thread Rainer M Krug
;> rect(cellid2[,1], cellid2[,2], cellid2[,1]+1, cellid2[,2]+1, col="blue") >>> rect(cellidxs[,1], cellidxs[,2], cellidxs[,1]+1, cellidxs[,2]+1, >>> col="red") >>> lines(2:62, 3+(34-3)/(62-2)*(0:60)) >> >> (Trying by=0.001 did not change the cou

Re: [R] Enumerating unit cell traversals Re: Interpolate? a line

2010-09-15 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15/09/10 15:23, David Winsemius wrote: > > On Sep 15, 2010, at 8:58 AM, Rainer M Krug wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 15/09/10 14:46, Michael Bedward wrote: >>> Nic

Re: [R] R Founding

2010-09-17 Thread Rainer M Krug
managed through the Italien OSGeo Chapter. Maybe something similar would be an option for R as well? 3) Funding not only has to contribute to financing coding, but also to organise conferences, support participants, organise courses, etc. Cheers, Rainer - -- Rainer M. Krug, PhD (Conservat

Re: [R] count frequency

2010-09-17 Thread Rainer M Krug
1 > I am sure, there are better ones Cheers, Rainer > > Best Regards > Alex > > > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo

Re: [R] Measure Difference Between Two Distributions

2010-09-25 Thread Rainer M Krug
On Sat, Sep 25, 2010 at 3:53 PM, Lorenzo Isella wrote: > On 09/25/2010 03:23 PM, Rainer M Krug wrote: > > >> Evaluate, for me, does not necessary mean "test if they are >> significantly different", but rather to quantify the difference. If that >> is what y

[R] OT: What distribution is this?

2010-09-25 Thread Rainer M Krug
WITHOUT replacement, which are all replaced before the next sample is drawn My question is: which distribution can I use to describe how often each entity of the N has been sampled? Thanks for your help, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc

Re: [R] Measure Difference Between Two Distributions

2010-09-25 Thread Rainer M Krug
n B, piling everything up in the last element, gives you the most work you have to du, which equals the largest distance. Even though it is rather straight forward, I should probably integrate a function in the package which gives you the largest distance between two distributions - I'll think a

Re: [R] Measure Difference Between Two Distributions

2010-09-25 Thread Rainer M Krug
reproducible code. > > > > [[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

Re: [R] OT: What distribution is this?

2010-09-26 Thread Rainer M Krug
what about the range in between? Thanks again, Cheers, Rainer On Sat, Sep 25, 2010 at 5:19 PM, Peter Dalgaard wrote: > On 09/25/2010 04:24 PM, Rainer M Krug wrote: > > Hi > > > > This is OT, but I need it for my simulation in R. > > > > I have a special c

Re: [R] compare histograms

2010-10-14 Thread Rainer M Krug
ical histograms? How i can know if these > >> >> histograms are equivalent or not?? > >> >> > >> >> Regards > >> >> > >> >> > >> >> > >> >> [[alternative HTML version deleted]] > >> &g

Re: [R] compare histograms

2010-10-15 Thread Rainer M Krug
send us the offending entry in your .Rprofile (or the whole .Rprofile?), so that we can see if it is an OSX or general problem? > > Now that it's installed I look forward to trying it out shortly. > Great - please give us some feedback on what you think about it. Cheers,

[R] Implementing R's recycling rule

2010-10-19 Thread Rainer M Krug
mething really basic here - is there more straightforward way of doing this? Cheers, Rainer -- 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 Building Off

Re: [R] Implementing R's recycling rule

2010-10-19 Thread Rainer M Krug
--- > Scanned by MailMarshal - Marshal's comprehensive email content security > solution. Download a free evaluation of MailMarshal at www.marshal.com > &g

Re: [R] 0.3 is not 0.3, bug in seq() function?

2010-10-28 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 (Conserv

Re: [R] Checking existance of a directory

2010-10-29 Thread Rainer M Krug
info/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 Excellence for Inv

[R] Optimizing compilation of R

2010-11-12 Thread Rainer M Krug
version 2.12.0 (2010-10-15) 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, Merriman Avenue Stel

Re: [R] Optimizing compilation of R

2010-11-12 Thread Rainer M Krug
ompiling-64-bit-r-2101-with-mkl-in.html > > > > Best, > > Patrick > > > -Original Message- From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Rainer M Krug > Sent: Friday, November 12, 2010 9:51 AM To: R-help Subject: [R] >

Re: [R] Debugging segfault in foreach

2010-11-16 Thread Rainer M Krug
shape_0.8.3 > [7] doMC_1.2.1multicore_0.1-3 foreach_1.3.0 > [10] codetools_0.2-2 iterators_1.0.3 data.table_1.5.1 > [13] plyr_1.2.1GenomeGraphs_1.10.0 biomaRt_2.6.0 > [16] bitops_1.0-4.1Rsamtools_1.2.0 RSQLite_0.9-2 > [19

Re: [R] How to catch warnings

2010-11-18 Thread Rainer M Krug
t;> 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. >> >> > > > > > [[alternative HTML versi

Re: [R] How to catch warnings

2010-11-18 Thread Rainer M Krug
he rkward windows while the prompt is shown. Cheers, Rainer > > Regards > Alex > > --- On *Thu, 11/18/10, Rainer M Krug //* wrote: > > > From: Rainer M Krug > Subject: Re: [R] How to catch warnings > To: "Alaios" > Cc: "Michael Be

Re: [R] using foreach (parallel processing)

2010-12-02 Thread Rainer M Krug
from 100.000 to 1.000.000 and see how long it takes to initialize the threads? You are not mentioning how long you wait? Cheers, Rainer > > Thank you. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting gui

Re: [R] Loading .RData from Internet

2010-12-06 Thread Rainer M Krug
cs.unt.edu/Rdoc/library/twang/data/raceprofiling.RData', > probable reason 'Invalid argument' > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office S

Re: [R] LaTeX, MiKTeX, LyX: A Guide for the Perplexed

2010-12-08 Thread Rainer M Krug
projects with others? > > Thanks, > > Paul > > > [[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

[R] Lists and functions in data.frame?

2010-12-08 Thread Rainer M Krug
t length. Is this possible? 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 2039 Stellenbosch University Main Campus, Merriman Avenue Stellen

[R] RGL crashes

2010-12-08 Thread Rainer M Krug
alid command stream ! - -- 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 T

Re: [R] Lists and functions in data.frame?

2010-12-08 Thread Rainer M Krug
>> d[[length(d)]]$fun <- cos # another function >> d[[length(d)]]$val <- 42 # some value >> d > [[1]] > [[1]]$fun > function (x) .Primitive("sin") > > > [[2]] > [[2]]$fun > function (x) .Primitive("cos") > > [[2]]$val &g

Re: [R] RGL crashes

2010-12-08 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/08/2010 12:05 PM, Duncan Murdoch wrote: > Rainer M Krug wrote: > Hi > > rgl crashes my R session, when resizing the rgl graphic window. > > I am using Ubuntu Maversick, with dual monitor setup. If I disconnect > one monito

[R] X11 --> Wayland under Ubuntu WAS: Re: RGL crashes

2010-12-09 Thread Rainer M Krug
understand >> correctly. >> >> Matthew >> >> >> "Duncan Murdoch" wrote in message >> news:4cffca13.7070...@gmail.com... >>> Matthew Dowle wrote: >>>> Might Wayland fix it in Narwhal ? >>> >>> I hope those na

Re: [R] 300 dpi and eps:

2010-12-15 Thread Rainer M Krug
somewhere downstream from that. Any > postprocessing, conversion or editing? Or in Adobe illustrator? It strikes me, that 72dpi is usually the screen resolution. Cheers, Rainer > > cu > Philipp > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservati

Re: [R] LaTeX, MiKTeX, LyX: A Guide for the Perplexed

2010-12-17 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 (

Re: [R] algorithm help

2011-01-07 Thread Rainer M Krug
ength. Cheers, Rainer > > Hoping this helps, > Ted. > > > E-Mail: (Ted Harding) > Fax-to-email: +44 (0)870 094 0861 > Date: 06-Jan-11 Time: 22:57:44 > ---

[R] write.table equivalent for lists?

2011-01-10 Thread Rainer M Krug
load.list <- function(file) { load(file) return(x) } which I could then use as: x <- list(x=1:10, y=letters(1:10)) save.list(x, "test.rdata") rm(x) y <- load.list("test.rdata") but: why is there not such a function? Am I missing something here? Cheers, Rain

<    1   2   3   4   5   >