2016年5月20日金曜日

access to attributes


xtsAttributes provides access to xts class specific attributes.

> xtsAttributes(PAYEMS)
$src
[1] "FRED"

$updated
[1] "2016-05-18 21:30:19 JST"

use attributes for base class.

> attributes(PAYEMS)
$dim
[1] 928   1

$index
  [1] -978307200 -975628800 -973209600 -970531200 -967939200 -965260800 -962668800 -959990400 -957312000
 [10] -954720000 -952041600 -949449600 -946771200 -944092800 -941587200 -938908800 -936316800 -933638400
 [19] -931046400 -928368000 -925689600 -923097600 -920419200 -917827200 -915148800 -912470400 -910051200

<skip>

[910] 1412121600 1414800000 1417392000 1420070400 1422748800 1425168000 1427846400 1430438400 1433116800
[919] 1435708800 1438387200 1441065600 1443657600 1446336000 1448928000 1451606400 1454284800 1456790400
[928] 1459468800
attr(,"tzone")
[1] "UTC"
attr(,"tclass")
[1] "Date"
$.indexCLASS
[1] "Date"
$tclass
[1] "Date"
$.indexTZ
[1] "UTC"
$tzone
[1] "UTC"
$src
[1] "FRED"
$updated
[1] "2016-05-18 21:30:19 JST"
$dimnames
$dimnames[[1]]
NULL
$dimnames[[2]]
[1] "PAYEMS"
$class
[1] "xts" "zoo"

0 件のコメント: