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

[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] 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,

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

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

[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
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

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.

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

[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
; 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

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

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

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

[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] 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' >

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

[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] 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 : +

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

[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

[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 _

[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

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

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

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

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

[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

[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

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

[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 --

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

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

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

[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

[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

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

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

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

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

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

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

Re: [R] Question concerning anova()

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

Re: [R] Question concerning anova()

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

[R] Question concerning anova()

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

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

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

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

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

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

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

  1   2   3   4   5   >