I would like to know about functionality of "@" (at sign) in R.
Let's say:
In the example below if I call perf1@x.values
it starts to show all x.values
. but I cann't access to second value of x.values by calling perf@x.values[2]
!
> str(perf1)
Formal class 'performance' [package "ROCR"] with 6 slots
..@ x.name : chr "False positive rate"
..@ y.name : chr "True positive rate"
..@ alpha.name : chr "Cutoff"
..@ x.values :List of 1
.. ..$ : num [1:3966] 0 0.0005 0.001 0.0015 0.0015 0.002 0.0025 0.0025 0.003 0.0035 ...
..@ y.values :List of 1
.. ..$ : num [1:3966] 0e+00 0e+00 0e+00 0e+00 5e-04 5e-04 5e-04 1e-03 1e-03 1e-03 ...
..@ alpha.values:List of 1
.. ..$ : num [1:3966] Inf 0.996 0.993 0.986 0.98 ...
I wonder what is usage of "@" sign in R?
and how can I call certain values by using @ sign?
thanks