I stand corrected. It is possible for the S4 cbind to know the symbol of
unnamed arguments, by "cheating": colnames(base::cbind(...,deparse.level =
deparse.level)) -- which tells me that there ought to be a non-cheating way.
I note that the Rmpfr class union, Mnumber, means that the simple cbind(1
I truly am grateful for all the help.
I never would have thought defining a class union for objects that can be
combined with cbind, as you do in Rmpfr. That does the trick.
Is it true that the only difference in behavior between the S4 cbind and
base::cbind is that, unlike base::cbind, the S4 cb
To be more precise, while the build process worked, the check did not. When
it got to the point "* checking for portable compilation flags in Makevars
..."
a number of shells popped up (to run c:\Rtools\sh.exe) and the process died.
This happens with Rcpp and cxxPack on an AMD machine running
Windo
Hello,
After much tinkering I managed to build packages using the 64bit version of
R with the help of hints from
http://www.murdoch-sutherland.com/Rtools/
and
http://www.stats.ox.ac.uk/~ripley/Win64/W64porting.html
and
R-admin Manual.
But a hack was required, and this seems to be related to
a com
...and, of course, just after sending it off I found out that from R
v2.11.0 there is now an arrayInd() in the 'base' package doing exactly
the same thing. See help(arrayInd).
/Henrik
On Mon, Jul 5, 2010 at 10:49 PM, hb wrote:
> For what it's worth, see arrayIndex() in R.utils, e.g.
>
> # Singl
For what it's worth, see arrayIndex() in R.utils, e.g.
# Single index
print(arrayIndex(21, dim=c(4,3,3)))
# Multiple indices
print(arrayIndex(20:23, dim=c(4,3,3)))
# Whole array
x <- array(1:30, dim=c(5,6))
print(arrayIndex(1:length(x), dim=dim(x)))
# Find (row,column) of maximum value
m <- dia
On 05/07/2010 10:56, Martin Maechler wrote:
"PatB" == Patrick Burns
on Sun, 04 Jul 2010 09:43:44 +0100 writes:
PatB> Is there a reason that 'which.min' and
PatB> 'which.max' don't have an 'arr.ind'
PatB> argument?
well, help(which.min) tells you that they really were a
> Gabor Grothendieck
> on Fri, 2 Jul 2010 18:50:28 -0400 writes:
> In kmeans() in stats one gets an error message with the default
> clustering algorithm if centers = 1. Its often useful to calculate
> the sum of squares for 1 cluster, 2 clusters, etc. and this error
On Jul 5, 2010, at 2:52 AM, Peter Dalgaard wrote:
> Prof Brian Ripley wrote:
>
>>> So there was perhaps an oversight of sorts for 2.11.x in handling
>>> these two JSS related files.
>>
>> That's a different hand. I don't know if the files were intended to
>> be installed in 2.11.x: they a
On Jul 5, 2010, at 1:50 AM, Prof Brian Ripley wrote:
> On Sun, 4 Jul 2010, Marc Schwartz wrote:
>
>> Hi all,
>>
>> A list of some possible issues:
>>
>> 1. In R 2.11.x, in:
>>
>> http://svn.r-project.org/R/branches/R-2-11-branch/share/texmf/
>>
>> there are two files, jss.cls and jss.bst (for
> "PatB" == Patrick Burns
> on Sun, 04 Jul 2010 09:43:44 +0100 writes:
PatB> Is there a reason that 'which.min' and
PatB> 'which.max' don't have an 'arr.ind'
PatB> argument?
well, help(which.min) tells you that they really were aimed at
doing their job *fast* for vector
> "DM" == Daniel Murphy
> on Sun, 4 Jul 2010 11:11:43 -0700 writes:
DM> Thank you, Professor, for drawing my attention to the nifty tracemem
DM> function. I'm using the ..1 syntax to check the properties of the S4
class
DM> at function call.
DM> The Description at ?"
Prof Brian Ripley wrote:
>> So there was perhaps an oversight of sorts for 2.11.x in handling
>> these two JSS related files.
>
> That's a different hand. I don't know if the files were intended to
> be installed in 2.11.x: they are in R-devel so eventually packages
> depending on R >= 2.
13 matches
Mail list logo