Dear Duncan and Rolf,
That's funny! Thanks a lot.
Best regards,
Craig
Duncan Murdoch wrote:
On 30/06/2009 5:11 PM, Craig P. Pyrame wrote:
Dear Rolf,
What do you mean?
He was talking about the fortunes package. Install it, type
fortune(), and you'll get a fortune cookie message. Maybe o
Cc: R-help Forum; Barry Rowlingson
> Subject: Re: [R] Question about creating lists with functions as
> elements
>
> Dear Rolf,
>
> What do you mean?
>
> Best regards,
> Craig
>
> Rolf Turner wrote:
> >
> > On 1/07/2009, at 12:34 AM, Craig P. Py
On 30/06/2009 5:11 PM, Craig P. Pyrame wrote:
Dear Rolf,
What do you mean?
He was talking about the fortunes package. Install it, type fortune(),
and you'll get a fortune cookie message. Maybe one with your name on it.
Duncan Murdoch
Best regards,
Craig
Rolf Turner wrote:
On 1/07/200
Dear Rolf,
What do you mean?
Best regards,
Craig
Rolf Turner wrote:
On 1/07/2009, at 12:34 AM, Craig P. Pyrame wrote:
... it's probably not a good idea to submit bug
reports just because I misunderstand what R does.
Gotta be a fortune!!!
cheers,
Rolf
##
On 1/07/2009, at 12:34 AM, Craig P. Pyrame wrote:
... it's probably not a good idea to submit bug
reports just because I misunderstand what R does.
Gotta be a fortune!!!
cheers,
Rolf
##
Attention:\
Dear Barry,
Thank you for the suggestion, it does work. I think the documentation
might be improved, but it's probably not a good idea to submit bug
reports just because I misunderstand what R does.
Best regards,
Craig
Barry Rowlingson wrote:
On Tue, Jun 30, 2009 at 1:00 PM, Craig P. Pyram
On Tue, Jun 30, 2009 at 1:00 PM, Craig P. Pyrame wrote:
> But this fails, as above. Why? Why can c(character, character) create a
> list of two functions, but rep(character, 2) can't?
>
> Another solution to my problem I could find (and you'll hopefully suggest an
> even better one) is to use cl
Dear Henrique,
Thanks! This does work, and I find the following solution to my
original problem elegant enough:
> rep(list(character, integer, numeric, ...), c(3, 2, 2, ...))
Best regards,
Craig
Henrique Dallazuanna wrote:
From the help page of rep:
"Value:
An object of the same
>From the help page of rep:
"Value:
An object of the same type as 'x' (except that 'rep' will coerce
pairlists to vector lists)."
So, you can do:
rep(list(character), 2)
On Tue, Jun 30, 2009 at 9:00 AM, Craig P. Pyrame wrote:
> Dear list,
>
> I am trying to construct a list of fun
Dear list,
I am trying to construct a list of functions using rep. I can't
understand the following:
> c(character, character) => list with two functions
> rep(character, 2) => error
The error says that "object of type 'special' is not subsettable", and I
have no idea what this means. Woul
10 matches
Mail list logo