[R] reshape() not dropping varaibles

2023-12-10 Thread Bob O'Hara
var = "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 for matem

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.html > > > and provide c

Re: [R] Loop Repetition

2019-08-06 Thread Bob O'Hara
ide 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-contained, reproducible code

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://www.R-project.org/posti

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

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

Re: [R] arguments imply differing number of rows

2017-09-20 Thread Bob O'Hara
.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 NOTE NEW ADDRESS!!! Institutt for matematiske fag NTNU 7491 Trondheim Norway Mobile: +49 1515 888

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

Re: [R] Factors and Alternatives

2017-05-09 Thread Bob O'Hara
eve my findings are not 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" <rni

Re: [R] Factors and Alternatives

2017-05-09 Thread Bob O'Hara
e 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-project.org mailing

Re: [R] sort()ing strings

2016-10-13 Thread Bob O'Hara
2016 at 13:00, Martin Maechler <maech...@stat.math.ethz.ch> wrote: >>>>>> Bob O'Hara <rni@gmail.com> >>>>>> on Thu, 13 Oct 2016 11:55:04 +0200 writes: > > > Yes, thanks. That seems to be it: > > thing <- c("M1&quo

Re: [R] (no subject)

2016-10-13 Thread Bob O'Hara
yourself by > > sort(ls()) > > 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 <r-help@r-project.org>

[R] (no subject)

2016-10-13 Thread Bob O'Hara
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 LC_TELEPHONE=C LC_ME

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

2016-01-17 Thread Bob O'Hara
ity of New England > 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

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

2016-01-15 Thread Bob O'Hara
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://www.bik-f.de/root/index.php

Re: [R] r-markdown - keeping figures

2015-10-21 Thread Bob O'Hara
Witold > > > -- > Witold Eryk Wolski > > __ > 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 commen

Re: [R] Maxent Jarfile

2015-07-09 Thread Bob O'Hara
and provide commented, minimal, self-contained, reproducible code. -- 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://www.bik-f.de/root/index.php?page_id=219 Blog: http

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

2015-05-15 Thread Bob O'Hara
from these adjusted date-time values and plot y against the new times. Take control of the tick-labels and display 18:00 - 0600 instead of the default 00:00 - 12:00 Rich On Tue, May 12, 2015 at 10:34 AM, Bob O'Hara rni@gmail.com wrote: I'm helping colleagues with analysis of frog calls

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

2015-05-12 Thread Bob O'Hara
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 work... Can anyone suggest a solution? Bob -- Bob O'Hara Biodiversity and Climate Research Centre

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

2015-03-11 Thread Bob O'Hara
) VarNames[grep(paste('^',TryNames[3], sep=), VarNames)] # gives more than m [1] mmu.k mu.r Is it possible to do this, or will I have to resort to using '|' (which works but is ugly will only get uglier in the future)? Bob -- Bob O'Hara Biodiversity and Climate Research Centre

Re: [R] truncated normal

2014-10-05 Thread Bob O'Hara
://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 Senckenberganlage 25 D-60325 Frankfurt am Main, Germany Tel

[R] Generating a polygon around points

2014-08-15 Thread Bob O'Hara
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://www.bik-f.de/root/index.php

Re: [R] Generating a polygon around points

2014-08-15 Thread Bob O'Hara
brevity. On August 15, 2014 7:51:37 AM PDT, Bob O'Hara rni@gmail.com 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 I want to draw a polygon around them so I can use that as a boundary

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

2014-06-20 Thread Bob O'Hara
-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. -- Bob O'Hara Biodiversity and Climate Research Centre

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

2014-05-13 Thread Bob O'Hara
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 798 40226 Mobile: +49 1515 888 5440 WWW: http://www.bik-f.de/root/index.php?page_id=219 Blog: http

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

2014-05-13 Thread Bob O'Hara
, ... - Peter On 13 May 2014, at 15:35 , Bob O'Hara rni@gmail.com wrote: I'm trying to read a text file (actually the ftp file in command below), and I'm getting an error: SpCodes=read.fwf( ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/SpeciesList.txt

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

2014-03-25 Thread Bob O'Hara
-project.org/ posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- 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://www.bik-f.de/root/index.php

Re: [R] GLM with Binomial Distribution

2013-07-24 Thread Bob O'Hara
/mailman/**listinfo/r-helphttps://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 provide commented, minimal, self-contained, reproducible code. -- Bob O'Hara Biodiversity

Re: [R] Winbugs from R

2012-12-04 Thread Bob O'Hara
and provide commented, minimal, self-contained, reproducible code. -- 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://www.bik-f.de/root/index.php?page_id=219 Blog: http

Re: [R] Mystery!!!

2012-06-28 Thread Bob O'Hara
. -- 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.bik-f.de/root/index.php?page_id=219 Blog: http://blogs.nature.com/boboh Journal of Negative Results - EEB: www.jnr

Re: [R] BRugs crash, question

2012-04-03 Thread Bob O'Hara
$Stats should give you the same as sampleStats('*'): if you want more use BRugsFit(..., coda=T) and work with the coda object it produces (check the documentation for BRugsFit and coda). Bob -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganlage 25 D-60325 Frankfurt am Main

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

2011-04-26 Thread Bob O'Hara
(1,2)) 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.bik-f.de/root/index.php?page_id=219 Blog: http://blogs.nature.com/boboh Journal of Negative Results - EEB

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

2011-02-20 Thread Bob O'Hara
: 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 Senckenberganlage 25 D-60325

Re: [R] BRugs

2010-04-19 Thread Bob O'Hara
. 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 D-60325 Frankfurt am Main, Germany Tel: +49 69 798 40216 Mobile: +49 1515 888 5440 WWW: http://www.bik

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

2010-04-09 Thread Bob O'Hara
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 WWW: http://www.bik-f.de/root/index.php?page_id=219 Blog

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

2010-04-03 Thread Bob O'Hara
://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 Senckenberganlage 25 D-60325 Frankfurt am Main, Germany

Re: [R] R2WinBUGS/ trap

2010-01-26 Thread Bob O'Hara
, 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 40216 Mobile: +49 1515 888 5440 WWW: http://www.RNI.Helsinki.FI/~boh/ Blog: http://network.nature.com/blogs/user/boboh

[R] Substituting vectors into a legend

2009-11-12 Thread Bob O'Hara
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/user/boboh Google Wave