[R] reshape() not dropping varaibles

2023-12-10 Thread Bob O';Hara
, idvar = "Subject", timevar = "time", v.names = "conc", sep= "_") names(wide) There are some obvious work-arounds and alternatives, but it would be nice to have this sorted. Can anyone help? Bob Bob -- Bob O'Hara Institutt

Re: [R] Loop Repetition

2019-08-06 Thread Bob O';Hara
> > > __ > > > 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.htm

Re: [R] Loop Repetition

2019-08-06 Thread Bob O';Hara
posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Bob O'Hara Institutt for matematiske fag NTNU 7491 Trondheim Norway Mobile: +47 915 54 416 Journal of Negative Results - EEB: www.jnr-eeb.org

Re: [R] Blocking and Nesting ANOVA

2019-07-02 Thread Bob O';Hara
__ > 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-containe

Re: [R] very slow code execution

2019-02-07 Thread Bob O';Hara
> > > > > > __ > > > 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:

Re: [R] How to visualise what code is processed within a for loop

2018-04-24 Thread Bob O';Hara
lman/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. -- Bob O'Hara NOTE NEW ADDRESS!!! Institutt for matematiske fag NTNU 7491 Trondheim Norway Mobile: +49 1515 888 54

Re: [R] arguments imply differing number of rows

2017-09-20 Thread Bob O';Hara
t; PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Bob O'Hara NOTE NEW ADDRESS!!! Institutt for matematiske fag NTNU 7491 Trondheim Norway Mobile: +49 1515 888 5440 Journal of Negative Results

Re: [R] Help : glm p-values for a factor predictor

2017-06-29 Thread Bob O';Hara
_ > 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. -- Bob O&#

Re: [R] Factors and Alternatives

2017-05-09 Thread Bob O';Hara
odd. Maybe > there is a way dealing with that kind of problems in R and I am eager to > learn how it can be solved using R. > > What would you suggest? > > Kind regards > > Georg > > > > > Von:"Bob O'Hara" > An: g.maub...@weinwolf.de, &g

Re: [R] Factors and Alternatives

2017-05-09 Thread Bob O';Hara
ible to use a factor with labels for filtering with the > original values? > Is there a data structure that works like a factor but gives also access > to the original values? > > Kind regards > > Georg > > __ > R-help@r-proj

Re: [R] sort()ing strings

2016-10-13 Thread Bob O';Hara
Bob On 13 October 2016 at 13:00, Martin Maechler wrote: >>>>>> Bob O'Hara >>>>>> on Thu, 13 Oct 2016 11:55:04 +0200 writes: > > > Yes, thanks. That seems to be it: > > thing <- c("M1", "M2", "M.1"

Re: [R] (no subject)

2016-10-13 Thread Bob O';Hara
> > Cheers > Petr > >> -Original Message- >> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bob >> O'Hara >> Sent: Thursday, October 13, 2016 10:29 AM >> To: r-help >> Subject: [R] (no subject) >> >> I&#x

[R] (no subject)

2016-10-13 Thread Bob O';Hara
Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.1 LTS locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_GB.UTF-8LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_GB.UTF-8 LC_NAME=C [9] LC_ADDRESS=C

Re: [R] Ordinal regression with some categories combined for some data

2016-01-17 Thread Bob O';Hara
t; Armidale NSW 2351 > Email: home: mac...@northnet.com.au > > > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bob O'Hara > Sent: Saturday, 16 January 2016 01:49 > To: r-help > Subject: [R] Ordinal regression with some

[R] Ordinal regression with some categories combined for some data

2016-01-15 Thread Bob O';Hara
e categories are interval censored? Or is it easier to go straight to a full interval-censored survival analysis? Bob -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganlage 25 D-60325 Frankfurt am Main, Germany Tel: +49 69 798 40226 Mobile: +49 1515 888 5440 WWW: http

Re: [R] r-markdown - keeping figures

2015-10-21 Thread Bob O';Hara
ki > > __ > 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, sel

Re: [R] Maxent Jarfile

2015-07-09 Thread Bob O';Hara
ency.test(samples, preds, reps, maxent.exe) net; > plot(net) bst <- bg.similarity.test(samples, preds, reps, app = maxent.exe) > bst; plot(bst)} else { message("get a copy of MAXENT (see Details)")} > [[alternative HTML version deleted]] > > ___

Re: [R] Plotting times at night and getting plot limits correct

2015-05-15 Thread Bob O';Hara
r >> wrote: >>> >>> Try this. >>> >>>> From the full data-time value subtract 18:00:00. >>> >>> This places the times you are interested in into the range 00:00:00 - >>> 12:00:00 >>> Remove the date from these adjusted

[R] Plotting times at night and getting plot limits correct

2015-05-12 Thread Bob O';Hara
ng <- rnorm(length(Times)) # just something for the y-axis plot(Times,Thing) # x-axis wrong plot(Times,Thing, xlim=chron(times.=c("05:00:00", "18:00:00"))) # x-axis right plot(Times,Thing, xlim=chron(times.=c("18:00:00", "05:00:00"))) # would like this to

[R] end of string in a character class in grep

2015-03-11 Thread Bob O';Hara
uot; character(0) > VarNames[grep(paste('^',TryNames[2], '[$\\[]', sep=""), VarNames)] # Gives > waht I want [1] "beta[1]" "beta[2]" > VarNames[grep(paste('^',TryNames[3], '[$\\[]', sep=""), VarNames)] # wan

Re: [R] truncated normal

2014-10-05 Thread Bob O';Hara
t; __ > 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. > -- Bo

Re: [R] Generating a polygon around points

2014-08-15 Thread Bob O';Hara
y phone. Please excuse my brevity. > > On August 15, 2014 7:51:37 AM PDT, Bob O'Hara wrote: > >I've been struggling for half a day on what should be a simple > >problem... > > > >I have a data frame of lat/long coordinates that describe a region, and >

[R] Generating a polygon around points

2014-08-15 Thread Bob O';Hara
anyone suggest a way to sort this out? Preferable without having to mess around transforming the coordinates. Bob -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganlage 25 D-60325 Frankfurt am Main, Germany Tel: +49 69 798 40226 Mobile: +49 1515 888 5440 WWW: http://ww

Re: [R] Rstudio: is it possible to create a document out of a working script?

2014-06-20 Thread Bob O';Hara
thing, > I would like to hear them from you. > > Cheers, > Luca > > __ > 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,

Re: [R] File coding problem: how to read a windows-1252 encoded file

2014-05-13 Thread Bob O';Hara
ng names vary between platforms, "ISO-8859" is > almost surely wrong, because there is "ISO-8859-1", "ISO-8859-2", ... > > - Peter > > > On 13 May 2014, at 15:35 , Bob O'Hara wrote: > > > I'm trying to read a text file (actually

[R] File coding problem: how to read a windows-1252 encoded file

2014-05-13 Thread Bob O';Hara
CATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_3.1.0 > -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganlage 25 D-60325 Frankfurt am Main, Germany Tel: +49 69

Re: [R] Bayesian Regression with half-normal distributions

2014-03-25 Thread Bob O';Hara
p >>> 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.org mailing list >> https://stat.ethz.ch/mailman

Re: [R] GLM with Binomial Distribution

2013-07-23 Thread Bob O';Hara
__ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide http://www.R-project.org/** > posting-guide.html <http://www.R-project.org/posting-guide.html> > and

Re: [R] Winbugs from R

2012-12-04 Thread Bob O';Hara
odc)save(C:/Users/Gunal/AppData/Local/Temp/RtmpCYxtDZ/log.txt) > > Any help would be greatly appreciated. > Cheers > Gunal > [[alternative HTML version deleted]] > > > __ > R-help@r-project.org mailing list > https://stat.

Re: [R] Mystery!!!

2012-06-28 Thread Bob O';Hara
ct.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. > -- Bob O'Hara Biodiversity and Climate Research Centre Sencken

Re: [R] BRugs crash, question

2012-04-03 Thread Bob O';Hara
amplesStats() calls internal OpenBUGS functions (not R functions), so that would mean saving the whole BUGS run (like externalise in OpenBUGS itself. From you code fit$Stats should give you the same as sampleStats('*'): if you want more use BRugsFit(..., coda=T) and work with the coda o

Re: [R] what's wrong with plot(..., type="p")?

2011-04-26 Thread Bob O';Hara
;)) works, but you then need to play a bit with the x axis to get the labels etc. right: with(df, plot(Sq~as.numeric(FACETTE), type="p", xaxt="n")) axis(1, c("base", "tip"), at=c(1,2)) Bob -- Bob O'Hara Biodiversity and Climate Research Centre

Re: [R] inter-specific competition - community matrices and two species models using Lotka-Volterra

2011-02-20 Thread Bob O';Hara
tz model: <http://rspb.royalsocietypublishing.org/content/276/1669/2923> which reduces to a VAR(1) model, which is a multivariate time series model, check here: <http://cran.r-project.org/web/views/TimeSeries.html> Bob -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganl

Re: [R] BRugs

2010-04-19 Thread Bob O';Hara
. Sometimes you have to check the data files that are saved, to make sure they contain what you want. BTW, you have some loops written as 2:13. It might be better to write them as 2:Lagegp, just for consistency. Bob -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganlage 25

Re: [R] a small question about R with Winbugs

2010-04-09 Thread Bob O';Hara
<- mu.star[S[i],d]] There might be other errors too: I always develop my BUGS code in BUGS, and go to R afterwards. Bob -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganlage 25 D-60325 Frankfurt am Main, Germany Tel: +49 69 798 40216 Mobile: +49 1515 888 5440 WW

Re: [R] histogram-like barplot? (or reverse?)

2010-04-03 Thread Bob O';Hara
l is just as wrong as thinking the earth is > flat, then your view is wronger than both of them put together." > > Isaac Asimov (1989). "The Relativity of Wrong." The Skeptical Inquirer, > 14(1), 35-44. Fall 1989. > http://chem.tufts.edu/AnswersInScience/RelativityofWrong.htm > > _

Re: [R] R2WinBUGS/ trap

2010-01-26 Thread Bob O';Hara
s, you might want to tweak the what you're doing. e.g. set up initial values close to the posterior, and make sure your priors aren't too vague. Bob -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganlage 25 D-60325 Frankfurt am Main, Germany Tel: +49 69 798

[R] Substituting vectors into a legend

2009-11-12 Thread Bob O';Hara
re mortals. Could someone explain how to do this? Bob -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganlage 25 D-60325 Frankfurt am Main, Germany Tel: +49 69 798 40216 Mobile: +49 1515 888 5440 WWW: http://www.RNI.Helsinki.FI/~boh/ Blog: http://network.nature.com/blogs/us