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 code. -

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

2020-06-22 Thread Rainer M Krug
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 >> >> I have

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

2020-06-22 Thread Rainer M Krug
Lines(), 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 > > On 20/06/20 2:56 am, Rainer M Krug wrote: &

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

2020-06-19 Thread Rainer M Krug
. Is there 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] 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, reproducible code.

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.

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

2019-09-05 Thread Rainer M Krug
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 Biology, U

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

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

Re: [R] security using R at work

2018-08-09 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. >> > > __ > R-help@r-project.or

[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

Re: [R] Problem installing rgdal.

2016-10-05 Thread Rainer M Krug
place to ask rgdal related questions than r-help. Hope this helps, Rainer > > cheers, > > Rolf -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature __ R-help@r-project.org mailing list -- To UNSU

Re: [R] using read.csv2()

2016-09-29 Thread Rainer M Krug
e Voirin > > [[alternative 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.

Re: [R] Run an external software in R

2016-09-07 Thread Rainer M Krug
do read the posting guide http://www.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://s

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

2016-09-06 Thread Rainer M Krug
t you administrator to find 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 <rai...@krugs.de> wrote: > >

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

2016-09-06 Thread Rainer M Krug
ect.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. Krug email: Rainerkrugs

Re: [R] How to visualize this df

2016-06-20 Thread Rainer M Krug
or using Bar chart in ggplot 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 <rai...@krugs.de> wrote: > "ch.elahe via R-help" <r-help@r-project.org> writes: > >> Hi all, >> I

Re: [R] How to visualize this df

2016-06-20 Thread Rainer M Krug
use it 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

Re: [R] New installation

2016-06-10 Thread Rainer M Krug
t;> > and provide commented, minimal, self-contained, reproducible code. >>> > >>> >>> [[alternative HTML version deleted]] >>> >>> __ >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] Making an if condition variable ?

2016-06-02 Thread Rainer M Krug
y not use a function instead 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: &qu

Re: [R] Making an if condition variable ?

2016-06-02 Thread Rainer M Krug
ow it from own experience...) and I would 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.e

Re: [R] specify size of box around legend

2016-03-14 Thread Rainer M Krug
> legend(x="bottomleft", legend = y, title = "L 2") Interesting - I like it. Thanks, Rainer > > - > David L Carlson > Department of Anthropology > Texas A University > College Station, TX 77840-4352 > > -Original Message- > From: R-he

Re: [R] specify size of box around legend

2016-03-11 Thread Rainer M Krug
Duncan Murdoch <murdoch.dun...@gmail.com> 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=&quo

[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] How to install package effects

2016-03-11 Thread Rainer M Krug
g/posting- >> 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

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

2015-11-25 Thread Rainer M Krug
elp > 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 Invasion B

[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
u really need "less than", you'll need to specify what your >> desired distribution of h - x[,"a"] + x[,"b"] should look like. >> >> No? >> >> >> B. >> >> >> >> On Oct 15, 2015, at 9:27 AM, Rainer M Krug <rai...@k

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

2015-10-15 Thread Rainer M Krug
whole range from 0 to 1? 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 <rai...@krugs.de> wrote: > >> Hi >> >> I

Re: [R] Bug in auglag?

2015-10-07 Thread Rainer M Krug
hen the parameter values are > 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 <rai...@krugs.de> > Sent: Tue

[R] Bug in auglag?

2015-10-06 Thread Rainer M Krug
adhan <ravi.varad...@jhu.edu> writes: > I would recommend that you use auglag() rather than constrOptim.nl() > in the package "alabama." It is a better algorithm, and it does not > require feasible starting values. > Best, > Ravi > > -Original Message- &g

Re: [R] Bug in auglag?

2015-10-06 Thread Rainer M Krug
Please ignore - list members - accidentally CCd. Rainer Rainer M Krug <rai...@krugs.de> 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 minimis

Re: [R] optimizing with non-linear constraints

2015-10-01 Thread Rainer M Krug
er > Johns Hopkins University > 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 ___

Re: [R] optimizing with non-linear constraints

2015-10-01 Thread Rainer M Krug
asible starting values. Thanks - that 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 <ravi.varad...@jhu.

[R] optimizing with non-linear constraints

2015-09-30 Thread Rainer M Krug
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 (Conservation

Re: [R] Issue with mcapply

2015-06-11 Thread Rainer M Krug
this on 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

Re: [R] Issue with mcapply

2015-06-11 Thread Rainer M Krug
: | Time difference of 1.46111 secs | c(1000) | [1] Evaluating a : | Time difference of 23.55863 secs | [1] Evaluating b : | Time difference of 15.90938 secs | ` Cheers, Rainer -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 signature.asc Description: PGP signature

Re: [R] Issue with mcapply

2015-06-11 Thread Rainer M Krug
. 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 rai...@krugs.de wrote

Re: [R] Error in CSV file

2015-05-29 Thread Rainer M Krug
archive at Nabble.com. -- Rainer M. Krug email: Raineratkrugsdotde 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 PLEASE do

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

2015-05-28 Thread Rainer M Krug
(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 10

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

2015-05-28 Thread Rainer M Krug
Duncan Murdoch murdoch.dun...@gmail.com 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), all options reset, dev

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

2015-04-16 Thread Rainer M Krug
problem, but it cost me a few minutes of figuring out. Thanks, Rainer -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 signature.asc Description: PGP signature __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

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

2015-04-09 Thread Rainer M Krug
--- 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 Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6

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

2015-02-13 Thread Rainer M Krug
(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: Raineratkrugsdotde PGP: 0x0F52F982 signature.asc Description: PGP

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

2015-02-13 Thread Rainer M Krug
S Ellison s.elli...@lgcgroup.com 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

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

2015-01-22 Thread Rainer M Krug
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 fixed position in a line. Thanks, Rainer -- Rainer M. Krug email: Raineratkrugsdotde PGP

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 rip...@stats.ox.ac.uk 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 rip...@stats.ox.ac.uk a écrit : See ?Quotes. Perfect - thanks

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

2015-01-19 Thread Rainer M Krug
wrote: This approach may not be fancy as what you are looking for. xl - unlist(x) xl[grep(A, names(xl))] f1.x1.A f1.x2.A f2.x3.A f2.x4.A 11 12 13 14 I hope this helps. Chel Hee Lee On 01/16/2015 04:40 AM, Rainer M Krug wrote: Hi Consider the following variable

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

2015-01-19 Thread Rainer M Krug
, 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. Chel Hee Lee On 01/16/2015 04:40 AM, Rainer M Krug wrote: Hi

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

2015-01-19 Thread Rainer M Krug
.A f2.x3.A f2.x4.A 11 12 13 14 I hope this helps. Chel Hee Lee On 01/16/2015 04:40 AM, Rainer M Krug wrote: Hi Consider the following variable: --8---cut here---start-8--- x1 - list( A = 11, B = 21, C = 31 ) x2

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

2015-01-16 Thread Rainer M Krug
#. .OO#. rocks...1k --- Sent from my phone. Please excuse my brevity. On January 15, 2015 6:25:43 AM PST, Rainer M Krug rai...@krugs.de wrote: Hi Following scenario: I have a function fun --8---cut here

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

2015-01-16 Thread Rainer M Krug
into an sapply, but this would be less then elegant. Is there an easier way of doing this? Thanks, Rainer -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 signature.asc Description: PGP signature __ R-help@r-project.org mailing list

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

2015-01-15 Thread Rainer M Krug
suggestions how I can achieve this? Thanks, Rainer -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 signature.asc Description: PGP signature __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

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

2014-12-01 Thread Rainer M Krug
-mail messages on this topic alone would have been punishment enough for the original post:-) Best wishes, Ranjan FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks orcas on your desktop! -- Rainer M. Krug email

Re: [R] Gender balance in R

2014-11-25 Thread Rainer M Krug
)? Thanks, Maarten -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 signature.asc Description: PGP signature __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Symbolic equations to R code?

2014-11-21 Thread Rainer M Krug
those should be translated to R? Thanks, Ista -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 signature.asc Description: PGP signature __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] evaluate NA to FALSE instead of NA?

2014-10-14 Thread Rainer M Krug
, 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, Rainer -- Rainer M. Krug email

[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 rai...@krugs.de writes: Hi I want to evaluate NA and NaN to FALSE (for indexing) so I would like to have the result as indicated

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

2014-10-05 Thread Rainer M Krug
Arne Henningsen arne.henning...@gmail.com writes: Dear Rainer On 3 October 2014 14:51, Rainer M Krug rai...@krugs.de wrote: I am using the function frontier::sfa (from the package frontier) to estimate several half-normal production stochastic frontier functions. Now I want to compare

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

2014-10-03 Thread Rainer M Krug
-production-and-cost-funct -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 pgp2kBr_N08zn.pgp Description: PGP signature __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

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

2014-07-21 Thread Rainer M Krug
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 -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence

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

2014-04-01 Thread Rainer M Krug
- 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. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 pgpP5L0HaSJsX.pgp Description: PGP signature

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

2014-04-01 Thread Rainer M Krug
, 2014 at 11:25 AM, Rainer M Krug rai...@krugs.de wrote: Luca Cerone luca.cer...@gmail.com writes: Dear all, in my .bashrc file I have set the environment variable R_HISTFILE like this: export R_HISTFILE=$HOME/.Rhistory I then use it in my .Rprofile to have R writing all the history

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

2014-03-07 Thread Rainer M Krug
/ess-help [2] http://ess.r-project.org/Manual/ess.html#Rdired -- Rainer M. Krug email: RMKrugatgmaildotcom pgpuF5v0vQ3PA.pgp Description: PGP signature __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] alternative to wireframe()

2014-03-04 Thread Rainer M Krug
= simpleTheme( alpha = 0.7, col = column.col, ), scales = list(arrows = FALSE), auto.key = TRUE ) --8---cut here---end---8--- -- Rainer M. Krug email: RMKrugatgmaildotcom pgpZjhGpBQc3e.pgp Description: PGP signature

[R] Assigning function to variable

2014-02-21 Thread Rainer M Krug
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 Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33

Re: [R] Assigning function to variable

2014-02-21 Thread Rainer M Krug
Prof Brian Ripley rip...@stats.ox.ac.uk 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. link - does not work, and link

[R] grep for multiple pattern?

2014-02-13 Thread Rainer M Krug
12 2 but is there a more compact command I am missing? Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44

Re: [R] grep for multiple pattern?

2014-02-13 Thread Rainer M Krug
want to do, not how you want to do it. On Thu, Feb 13, 2014 at 9:43 AM, Rainer M Krug rai...@krugs.de mailto:rai...@krugs.de wrote: Hi I want to search for multiple pattern as grep is doing for a single pattern, but this obviously not work: grep(an, month.name http

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

2014-01-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

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

2014-01-20 Thread Rainer M Krug
{} 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 Invasion Biology Stellenbosch

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

2014-01-20 Thread Rainer M Krug
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), MSc (Conservation Biology

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

2014-01-20 Thread Rainer M Krug
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 want to do, not how you want to do it. On Mon, Jan 20, 2014 at 8:12 AM, Rainer M Krug rai...@krugs.de wrote: Hi I would like to group

[R] reinstall all packages - easy way?

2014-01-09 Thread Rainer M Krug
-of-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 rai...@krugs.de wrote: is there an easy way of re-installing all packages in my user library? I am not referring

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

2013-12-06 Thread Rainer M Krug
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 rai...@krugs.de wrote: -BEGIN PGP SIGNED MESSAGE

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

2013-12-06 Thread Rainer M Krug
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. On Thursday, December 5, 2013 9:58 AM, Rainer M Krug rai...@krugs.de wrote: Hi My

[R] Merging two data frames, but keeping NAs

2013-12-05 Thread Rainer M Krug
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 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax

Re: [R] Thoughts for faster indexing

2013-11-21 Thread Rainer M Krug
. - -- 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 : +33 - (0)9 58 10 27 44 Fax (D

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

2013-09-26 Thread Rainer M Krug
of this ... Babak has too fussy a concept. Ted. - E-Mail: (Ted Harding) ted.hard...@wlandres.net Date: 26-Sep-2013 Time: 09:13:33 This message was sent by XFMail #secure method=pgpmime mode=sign -- Rainer M. Krug email: RMKrugatgmaildotcom

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

2013-09-21 Thread Rainer M Krug
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] #secure method=pgpmime mode=sign -- Rainer M. Krug email: RMKrugatgmaildotcom

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

2013-04-15 Thread Rainer M. Krug
. #secure method=pgpmime mode=sign -- 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

Re: [R] Tablet and executing R

2013-04-09 Thread Rainer M. Krug
-- 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 : +33 - (0)9 58 10 27 44 Fax (D

[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()? Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN

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 the Library tree

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 missing something really basic, but I can't figure it out

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 suffice. I

Re: [R] Connect R and Lyx in UBUNTU

2012-10-11 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!

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] 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 in

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 else's code, thousands of lines, that has

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] 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] [R-sig-ME] Question concerning anova()

2012-08-23 Thread Rainer M Krug
effect I think). Thats covered by Zuur et al too. I'll check it out - thanks. Cheers, Rainer HTH Alan -- Email: aghay...@gmail.com mailto:aghay...@gmail.com Mobile: +41794385586 Skype: aghaynes On 22 August 2012 18:04, Rainer M Krug r.m.k

[R] Question concerning anova()

2012-08-22 Thread Rainer M Krug
corrections for multple tests (although this should not be a problem here?) I can obviously select the best model based on the AIC. Thanks in advance, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence

Re: [R] Question concerning anova()

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

Re: [R] Question concerning anova()

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

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

2012-08-21 Thread Rainer M Krug
in the model data = dat, subset = dead==FALSE recTreat==FALSE, na.action = na.omit ) Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion

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

2012-08-21 Thread Rainer M Krug
, 2012 at 7:44 AM, Rainer M Krug r.m.k...@gmail.com wrote: Hi I want to do a series of linear models, and would like to define the input arguments for lm() as variables. I managed easily to define the formula arguments in a variable, but I also would like to have the subset in a variable. My

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

2012-08-21 Thread Rainer M Krug
, subset=subst) Sorry about this, Rainer Cheers Am 21.08.2012 17:11, schrieb Rainer M Krug: On 21/08/12 16:57, Bert Gunter wrote: ?? I do not groc what you mean. ... subset == subs would work fine in your lm call. So unless someone else does get it, you may need to elaborate. OK - here

  1   2   3   4   >