Re: [R] indexing lists, using brobdingnagian

From: Redding, Matthew <>
Date: Wed, 28 May 2008 10:25:08 +1000

Hi all,

Sorry about this, my brain finally ticked over.

I just
need to convert the list of brobs to a numeric vector (which I can do,as the answer to
the calculation need not be a brob -- just the terms along the way).



Does the trick in my case, I think.

Matt Redding  

-----Original Message-----
From: [] On Behalf Of Redding, Matthew
Sent: Wednesday, 28 May 2008 10:18 AM
Subject: [R] indexing lists, using brobdingnagian

Dear R-Gurus,

I have ended up with a calculation problem where I need to use brobs. I have to work my way through a vector with a for loop to act on each element in a calculation (refering to the previous value in the new vector of results -- so as far as I know I can't use "apply") -- this produces a list of brobs.

My problem is, how do I act on, plot this list, or do vector calculations with the elements? From the other emails I have read there does not seem to be a means of indexing a range of elements from a list.

t<-c(as.brob(5), as.brob(6), as.brob(7), as.brob(8), as.brob(10))

> t
[1] +exp(1.6094)

[1] +exp(1.7918)

[1] +exp(1.9459)

[1] +exp(2.0794)

[1] +exp(2.3026)

> t[2:4]
[1] +exp(1.7918)

[1] +exp(1.9459)

[1] +exp(2.0794)

So if you try plotting that against another variable:


you get nothing useful.

Does anyone have some suggestions as to how to make this list of brobs more useful?
I thought cbind might help (cbind(t)) but that did not work.

Kind regards,

Matt Redding

} mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code.
The information contained in the above e-mail message or messages (which includes any attachments) is confidential and may be legally privileged. It is intended only for the use of the person or entity to which it is addressed. If you are not the addressee any form of disclosure, copying, modification, distribution or any action taken or omitted in reliance on the information is unauthorised. Opinions contained in the message(s) do not necessarily reflect the opinions of the Queensland Government and its authorities. If you received this communication in error, please notify the sender immediately and delete it from your computer system network. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 28 May 2008 - 02:45:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 28 May 2008 - 04:30:43 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive