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
Dear List,
I have an atomic vector named "Results"
Results
[1] 1 1 1
attr(,"prob")
[1] 0.667 1.000 1.000
Levels: 0 1
when I type
attributes(Results)
$levels
[1] "0" "1"
$class
[1] "factor"
$prob
[1] 0.667 1.000 1.000
However, when I type
Results$prob
It has the follo
3 matches
Mail list logo