Thanks a lot! It works.
Jack
On Jan 9, 2008 10:35 PM, jim holtman <[EMAIL PROTECTED]> wrote:
> There are a couple of ways of getting the values:
>
> > x <- cbind(a=1:3, pi=pi) # simple matrix w/ dimnames
> > attributes(x)
> $dim
> [1] 3 2
>
> $dimnames
> $dimnames[[1]]
> NULL
>
> $dimnames[[2]]
There are a couple of ways of getting the values:
> x <- cbind(a=1:3, pi=pi) # simple matrix w/ dimnames
> attributes(x)
$dim
[1] 3 2
$dimnames
$dimnames[[1]]
NULL
$dimnames[[2]]
[1] "a" "pi"
> attributes(x)$dim
[1] 3 2
> attr(x, 'dim')
[1] 3 2
>
So in your case,
attr(Results, 'prob')
or
2 matches
Mail list logo