Displaying 3 results from an estimated 3 matches for "macprogramming".
Did you mean:
cprogramming
1998 Feb 25
1
R-beta: Mac version
...w... I suspect that some actual coding changes are needed
for the event loop and the graphics interface, whereas the main body
of the parser and the internals, as well as the interpreted code are
highly portable. That's the situation with the Windows version anyway,
and I can't believe that MacProgramming can be worse that the Win32
API.
One thing that I have been looking at a bit is the possibility of
coding up a Tcl/Tk version of R. This could be made portable between
all three architectures (X/Win32/Mac) and probably evolve into a set
of R/Tk language bindings a.m. STk (Scheme Tk), so we could h...
1998 Feb 24
3
R-beta: qr(A)$rank
I would like to find the rank of a matrix using R. Looking through a list
of commands it seems that the command qr should do the job. Checking a
simple example gave me the wrong answer. Here is the example:
> A <- c(1,2,3,4,5,6)
> A <- matrix(A, nrow=2, ncol=3)
> A
[,1] [,2] [,3]
[1,] 1 3 5
[2,] 2 4 6
> qr(A)$rank
[1] 3
The correct answer is two.
I
1998 Feb 24
3
R-beta: qr(A)$rank
I would like to find the rank of a matrix using R. Looking through a list
of commands it seems that the command qr should do the job. Checking a
simple example gave me the wrong answer. Here is the example:
> A <- c(1,2,3,4,5,6)
> A <- matrix(A, nrow=2, ncol=3)
> A
[,1] [,2] [,3]
[1,] 1 3 5
[2,] 2 4 6
> qr(A)$rank
[1] 3
The correct answer is two.
I