Dear R-users,
It is my understanding that cat(shQuote(a.string)) should print the origintal
a.string. Is this right?
I am not sure cat() correctly prints strings which are generated by
triple-shQuote():
> shQuote(shQuote("a"))
[1] "\"\\\"a\\\"\""
> cat(shQuote(shQuote(shQuote("a"))), '\n')
"\"\
Dear R-users,
I am looking for a way to assign to slices of arrays where dimensionality of
the array is not a-priory known.
Specifically, I would like to be able to generalize the following example of
dimensionality 2 to an arbitrary diminsionality:
In this example we create an array x, a smal
Dear R-users,
Could someone please explain why the message printed by function stopifnot2,
see below, is different from that of stopifnot itself?
Thank you for your help,
Vadim
> stopifnot2 <- function(...) stopifnot(...)
> stopifnot(F)
Error: F is not TRUE
> stopifnot2(F)
Error: ..1 is not TR
Vadim
From: Charles C. Berry [EMAIL PROTECTED]
Sent: Friday, August 15, 2008 2:27 PM
To: Vadim Organovich
Cc: r-help@r-project.org
Subject: Re: [R] stopifnot message mutation
On Fri, 15 Aug 2008, Vadim Organovich wrote:
> Dear R-users,
>
> Could someone please explain why the message prin
Dear R-users,
I am trying to write a wrapper function around save() that will report the file
which is being saved to.
So I thought that the followintg would do the trick, but it doesn't. I
understand that 'y' is somehow not visible inside save.verbose, but don't know
how to fix this.
save.ve
Dear R-users,
Suppose I have an expression:
expr = expression(a>0)
and now I want to modify it to expression(a>0 & b>0). The following doesn't
work:
expr = expression(expr & b>0)
What would be a good way of doing this?
Thanks,
Vadim
Note: This email is for t
Thanks!
Here is a less verbose variation based on suggestion by Phil Spector:
parse(text=paste(expression(a>0), "& b>0"))
From: Henrique Dallazuanna [EMAIL PROTECTED]
Sent: Friday, October 03, 2008 11:08 AM
To: Vadim Organovich
Cc:
Dear R Users,
Given two vectors, say a = seq(2) and b = seq(3), I want to make an 2*3 array,
where (i,j) element is list(a=a[i], b=b[j]). I tried the outer() function but
it generates an error message that I don't understand, see below.
What do I do wrong?
The expan.grid function is not
8 matches
Mail list logo