Re: [R] [External] Help with sub-setting

2020-05-26 Thread Burgess, Jamie
ub-group by the two variables I have selected. I was wondering why this new script worked. Kind regards, Jamie From: Bert Gunter Sent: 25 May 2020 18:36:18 To: Richard M. Heiberger Cc: Burgess, Jamie; r-help@r-project.org Subject: Re: [R] [External] Help

[R] Help with sub-setting

2020-05-25 Thread Burgess, Jamie
regards, Jamie Burgess PhD Student Endocrinology and Diabetes University of Liverpool Aintree University Hospital & The Walton Centre Institute of Ageing & Chronic Disease 0151 529 5936 [[alternative HTML version deleted]]

[R] Writing to gzcon with rawConnection

2014-05-02 Thread Jamie Olson
wb")) > writeLines("test",con=gz_out) > flush(gz_out) > rawConnectionValue(raw_out) Error: cannot allocate vector of size 131069.2 Gb > raw_out <- rawConnection(raw(0),open="wb") > writeLines("test",con=raw_out) > rawConnectio

[R] appending data to a row

2013-02-14 Thread Jamie
9 3 6 108 9 106 7 I'm not sure how to tell R to take the specified values from the other row with the same family ID and append them with a new name. Thanks for any ideas you can offer me. Jamie in Illinois [[alterna

Re: [R] save/load and package namespaces

2012-11-14 Thread Jamie Olson
Thanks, I'd started to look through serialize.c but got a bit lost. Thanks again! Jamie Olson On Tue, Nov 13, 2012 at 2:12 PM, Duncan Murdoch wrote: > On 13/11/2012 1:45 PM, Jamie Olson wrote: > >> Correct me if I'm wrong, but it also seems that more generally, >>

Re: [R] save/load and package namespaces

2012-11-13 Thread Jamie Olson
works fine even when there are more inherited environments. I imagine this is because in saving yfun, it also saves the environment and any parent environments until some point? Is it checking to see if the environment inherits from .GlobalEnv or something like that? Jamie Olson On Wed, Nov

[R] Is function(x){x}(5) a valid expression?

2012-11-13 Thread Jamie Olson
t; "PossibleMethod" > h() Error in list(x) : 'x' is missing > h(4) Error in h(4) : attempt to apply non-function > What's going on? Jamie Olson [[alternative HTML version deleted]] __ R-help@r-project.org m

Re: [R] R + Hadoop on Amazon

2012-11-13 Thread Jamie Olson
along with some custom bootstrap sh scripts to install the necessary packages. Jamie Olson On Thu, Nov 8, 2012 at 3:01 AM, Vignesh Prajapati wrote: > Hey Jamie, > > Thanks for your comment. I am able to install R , Rstudio and Hadoop on > Amazon instance with Ubuntu os. But can

Re: [R] save/load and package namespaces

2012-11-07 Thread Jamie Olson
Thank you! This explains the error thrown by getNamespace() for the missing package. So I imagine this will happen for any function's environment? Do you know if this should happen for S3 objects or just S4? Jamie Olson On Wed, Nov 7, 2012 at 4:10 PM, Duncan Murdoch wrote: > On 07

Re: [R] R + Hadoop on Amazon

2012-11-07 Thread Jamie Olson
I've been using Amazon Elastic Mapreduce combined with RHadoop with great success. The only real problem is that the default JAVA_HOME doesn't points to a jdk that works with rJava, so you have to correct it. I've been meaning to do a writeup on it and will update you once it

Re: [R] save/load and package namespaces

2012-11-07 Thread Jamie Olson
sed to see the load failing for being unable to load certain packages. Could anyone help me understand why this happens? Jamie Olson [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] save/load and package namespaces

2012-11-07 Thread Jamie Olson
sed to see the load failing for being unable to load certain packages. Could anyone help me understand why this happens? Jamie Olson [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] working with values from ranef()

2011-07-06 Thread Jamie Smith
eas as to how I can generate a list of coefficients without the accompanying group ID numbers. Jamie [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Traversing KD-tree (or equivalent) for radius-based search

2011-06-15 Thread Jamie Olson
7;d suggest building an R interface to whatever spatial data structures you want, e.g. k-d or r(+/*)-trees. Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA 15213 jfol...@cs.cmu.edu On Thu, Jun 2, 2011 at 8:43 PM, Andrea Taverna wrote: > Hi, >

Re: [R] How can I write methods for 'as()'?

2011-06-15 Thread Jamie Olson
art of the motivation behind the S4 classes. So maybe it really just is that kludgy for s3 classes. Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA 15213 jfol...@cs.cmu.edu On Mon, Jun 6, 2011 at 12:19 PM, Janko Thyson < janko.thyson.rst...@googlema

Re: [R] Pointers in R

2011-06-15 Thread Jamie Olson
of more complicated data structures built in pure R. Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA 15213 jfol...@cs.cmu.edu On Sun, Jun 12, 2011 at 7:36 PM, Jeff Newmiller wrote: > Lists are recursive and heterogenous in R. Just assign the

Re: [R] Calling R from Java

2011-06-14 Thread Jamie Olson
You might have better luck with the rJava mailing list: http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel <http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel> Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsbur

[R] drawing a line that shifts from solid to broken

2010-01-30 Thread Jamie Smith
c(NA, mean(year2$variable1), mean(year3$variable1)) > plot(first.vector, type="b", xlim=c(1,3)) > lines(second.vector, type="b", lty=2) It's clunky, though, and I have a bunch of these to do. Can I streamline it? TIA. J

[R] Memory allocation problem

2008-08-12 Thread Jamie Ledingham
dle by the time the loop reaches 170. Has anyone had any experience of this problem before? Is it possible to 'wipe' R's memory at the end of each loop - all results are plotted and saved or written to text file at the end of each loop so this may be the ideal solutio

[R] Quick fix formatting

2008-04-07 Thread Jamie Ledingham
the format of the second? I could write a loop and if statement but that seems a lot and I thought there must be an easier way out there. However having searched the archives, nothing has appeared. Thanks Jamie __ R-help@r-project.org mailing

[R] Loop problem

2008-03-26 Thread Jamie Ledingham
Dear all, I have a problem with a loop, if anyone has any knowledge on these things I would appreciate some comments. The code below is designed to allow me to extract the top record of the data frame, and them remove rows from the data frame which have an index close to the extracted top record.

[R] Extracting maximums from a sliding window

2008-03-25 Thread Jamie Ledingham
inced it is even the right approach? I need to extract the whole line of data, not just the rainfall amount. Thanks Jamie Ledingham __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://

[R] Finding Maximums in a sliding window time series

2008-03-19 Thread Jamie Ledingham
, for example by making sure that there are at least 2 days (48 hours) between each of the top 50 storm events. Can anyone suggest an approach I could use, or have you done this kind of work before? Thanks Jamie Ledingham __ R-help@r-project.org mailing

[R] selecting consecutive records over a threshold

2008-02-27 Thread Jamie Ledingham
thresholds but it is obviously important to be able to extract consecutive records to capture the whole storm. Can anybody help? Thanks Jamie Ledingham PhD Researcher University of Newcastle Upon Tyne __ R-help@r-project.org mailing list https://stat.ethz.

[R] selecting consecutive records over a threshold

2008-02-27 Thread Jamie Ledingham
thresholds but it is obviously important to be able to extract consecutive records to capture the whole storm. Can anybody help? Thanks Jamie Ledingham PhD Researcher University of Newcastle Upon Tyne __ R-help@r-project.org mailing list https://stat.ethz.

[R] Sliding Window Time Series Analysis - hourly rainfall

2008-01-24 Thread Jamie Ledingham
ent state it seems useless. If anyone could give me some pointers i'd be very pleased, I'm a bit new to the R language so any help appreciated. Thanks Jamie Ledingham __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel