Extract fhx observations for given series

get_series(x, s)

Arguments

x

An fhx object.

s

Character vector of series to extract from x.

Value

An fhx object.

See also

Examples

data(lgr2)
get_series(lgr2, "LGR46")
#>     year series      rec_type
#> 389 1705  LGR46     pith_year
#> 390 1773  LGR46    dormant_fs
#> 391 1774  LGR46 recorder_year
#> 392 1775  LGR46 recorder_year
#> 393 1776  LGR46 recorder_year
#> 394 1777  LGR46 recorder_year
#> 395 1778  LGR46 recorder_year
#> 396 1779  LGR46 recorder_year
#> 397 1780  LGR46 recorder_year
#> 398 1781  LGR46 recorder_year
#> 399 1782  LGR46 recorder_year
#> 400 1783  LGR46 recorder_year
#> 401 1784  LGR46 recorder_year
#> 402 1785  LGR46 recorder_year
#> 403 1786  LGR46      early_fs
#> 404 1787  LGR46 recorder_year
#> 405 1788  LGR46 recorder_year
#> 406 1789  LGR46 recorder_year
#> 407 1790  LGR46 recorder_year
#> 408 1791  LGR46 recorder_year
#> 409 1792  LGR46 recorder_year
#> 410 1793  LGR46 recorder_year
#> 411 1794  LGR46 recorder_year
#> 412 1795  LGR46 recorder_year
#> 413 1796  LGR46 recorder_year
#> 414 1797  LGR46 recorder_year
#> 415 1798  LGR46 recorder_year
#> 416 1799  LGR46 recorder_year
#> 417 1800  LGR46 recorder_year
#> 418 1801  LGR46 recorder_year
#> 419 1802  LGR46 recorder_year
#> 420 1803  LGR46 recorder_year
#> 421 1804  LGR46 recorder_year
#> 422 1805  LGR46 recorder_year
#> 423 1806  LGR46    dormant_fs
#> 424 1807  LGR46 recorder_year
#> 425 1808  LGR46 recorder_year
#> 426 1809  LGR46 recorder_year
#> 427 1810  LGR46 recorder_year
#> 428 1811  LGR46 recorder_year
#> 429 1812  LGR46 recorder_year
#> 430 1813  LGR46 recorder_year
#> 431 1814  LGR46 recorder_year
#> 432 1815  LGR46 recorder_year
#> 433 1816  LGR46 recorder_year
#> 434 1817  LGR46 recorder_year
#> 435 1818  LGR46 recorder_year
#> 436 1819  LGR46 recorder_year
#> 437 1820  LGR46 recorder_year
#> 438 1821  LGR46 recorder_year
#> 439 1822  LGR46 recorder_year
#> 440 1823  LGR46 recorder_year
#> 441 1824  LGR46 recorder_year
#> 442 1825  LGR46 recorder_year
#> 443 1826  LGR46 recorder_year
#> 444 1827  LGR46 recorder_year
#> 445 1828  LGR46 recorder_year
#> 446 1829  LGR46 recorder_year
#> 447 1830  LGR46 recorder_year
#> 448 1831  LGR46 recorder_year
#> 449 1832  LGR46 recorder_year
#> 450 1833  LGR46 recorder_year
#> 451 1834  LGR46 recorder_year
#> 452 1835  LGR46 recorder_year
#> 453 1836  LGR46 recorder_year
#> 454 1837  LGR46 recorder_year
#> 455 1838  LGR46 recorder_year
#> 456 1839  LGR46 recorder_year
#> 457 1840  LGR46 recorder_year
#> 458 1841  LGR46 recorder_year
#> 459 1842  LGR46 recorder_year
#> 460 1843  LGR46 recorder_year
#> 461 1844  LGR46 recorder_year
#> 462 1845  LGR46 recorder_year
#> 463 1846  LGR46 recorder_year
#> 464 1847  LGR46 recorder_year
#> 465 1848  LGR46 recorder_year
#> 466 1849  LGR46    outer_year

get_series(lgr2, c("LGR41", "LGR46"))
#>     year series      rec_type
#> 389 1705  LGR46     pith_year
#> 390 1773  LGR46    dormant_fs
#> 391 1774  LGR46 recorder_year
#> 392 1775  LGR46 recorder_year
#> 393 1776  LGR46 recorder_year
#> 394 1777  LGR46 recorder_year
#> 395 1778  LGR46 recorder_year
#> 396 1779  LGR46 recorder_year
#> 397 1780  LGR46 recorder_year
#> 398 1781  LGR46 recorder_year
#> 399 1782  LGR46 recorder_year
#> 400 1783  LGR46 recorder_year
#> 401 1784  LGR46 recorder_year
#> 402 1785  LGR46 recorder_year
#> 403 1786  LGR46      early_fs
#> 404 1787  LGR46 recorder_year
#> 405 1788  LGR46 recorder_year
#> 406 1789  LGR46 recorder_year
#> 407 1790  LGR46 recorder_year
#> 408 1791  LGR46 recorder_year
#> 409 1792  LGR46 recorder_year
#> 410 1793  LGR46 recorder_year
#> 411 1794  LGR46 recorder_year
#> 412 1795  LGR46 recorder_year
#> 413 1796  LGR46 recorder_year
#> 414 1797  LGR46 recorder_year
#> 415 1798  LGR46 recorder_year
#> 416 1799  LGR46 recorder_year
#> 417 1800  LGR46 recorder_year
#> 418 1801  LGR46 recorder_year
#> 419 1802  LGR46 recorder_year
#> 420 1803  LGR46 recorder_year
#> 421 1804  LGR46 recorder_year
#> 422 1805  LGR46 recorder_year
#> 423 1806  LGR46    dormant_fs
#> 424 1807  LGR46 recorder_year
#> 425 1808  LGR46 recorder_year
#> 426 1809  LGR46 recorder_year
#> 427 1810  LGR46 recorder_year
#> 428 1811  LGR46 recorder_year
#> 429 1812  LGR46 recorder_year
#> 430 1813  LGR46 recorder_year
#> 431 1814  LGR46 recorder_year
#> 432 1815  LGR46 recorder_year
#> 433 1816  LGR46 recorder_year
#> 434 1817  LGR46 recorder_year
#> 435 1818  LGR46 recorder_year
#> 436 1819  LGR46 recorder_year
#> 437 1820  LGR46 recorder_year
#> 438 1821  LGR46 recorder_year
#> 439 1822  LGR46 recorder_year
#> 440 1823  LGR46 recorder_year
#> 441 1824  LGR46 recorder_year
#> 442 1825  LGR46 recorder_year
#> 443 1826  LGR46 recorder_year
#> 444 1827  LGR46 recorder_year
#> 445 1828  LGR46 recorder_year
#> 446 1829  LGR46 recorder_year
#> 447 1830  LGR46 recorder_year
#> 448 1831  LGR46 recorder_year
#> 449 1832  LGR46 recorder_year
#> 450 1833  LGR46 recorder_year
#> 451 1834  LGR46 recorder_year
#> 452 1835  LGR46 recorder_year
#> 453 1836  LGR46 recorder_year
#> 454 1837  LGR46 recorder_year
#> 455 1838  LGR46 recorder_year
#> 456 1839  LGR46 recorder_year
#> 457 1840  LGR46 recorder_year
#> 458 1841  LGR46 recorder_year
#> 459 1842  LGR46 recorder_year
#> 460 1843  LGR46 recorder_year
#> 461 1844  LGR46 recorder_year
#> 462 1845  LGR46 recorder_year
#> 463 1846  LGR46 recorder_year
#> 464 1847  LGR46 recorder_year
#> 465 1848  LGR46 recorder_year
#> 466 1849  LGR46    outer_year
#> 467 1721  LGR41     pith_year
#> 468 1806  LGR41    unknown_fi
#> 469 1807  LGR41 recorder_year
#> 470 1808  LGR41 recorder_year
#> 471 1809  LGR41 recorder_year
#> 472 1810  LGR41 recorder_year
#> 473 1811  LGR41 recorder_year
#> 474 1812  LGR41 recorder_year
#> 475 1813  LGR41 recorder_year
#> 476 1814  LGR41 recorder_year
#> 477 1815  LGR41 recorder_year
#> 478 1816  LGR41 recorder_year
#> 479 1817  LGR41 recorder_year
#> 480 1818  LGR41 recorder_year
#> 481 1819  LGR41 recorder_year
#> 482 1820  LGR41 recorder_year
#> 483 1821  LGR41 recorder_year
#> 484 1822  LGR41 recorder_year
#> 485 1823  LGR41 recorder_year
#> 486 1824  LGR41 recorder_year
#> 487 1825  LGR41 recorder_year
#> 488 1826  LGR41 recorder_year
#> 489 1827  LGR41 recorder_year
#> 490 1828  LGR41 recorder_year
#> 491 1829  LGR41 recorder_year
#> 492 1830  LGR41 recorder_year
#> 493 1831  LGR41 recorder_year
#> 494 1832  LGR41 recorder_year
#> 495 1833  LGR41 recorder_year
#> 496 1834  LGR41 recorder_year
#> 497 1835  LGR41 recorder_year
#> 498 1836  LGR41 recorder_year
#> 499 1837  LGR41 recorder_year
#> 500 1838  LGR41 recorder_year
#> 501 1839  LGR41 recorder_year
#> 502 1840  LGR41 recorder_year
#> 503 1841  LGR41 recorder_year
#> 504 1842  LGR41 recorder_year
#> 505 1843  LGR41 recorder_year
#> 506 1844  LGR41 recorder_year
#> 507 1845  LGR41 recorder_year
#> 508 1846  LGR41 recorder_year
#> 509 1847  LGR41 recorder_year
#> 510 1848  LGR41 recorder_year
#> 511 1849  LGR41 recorder_year
#> 512 1850  LGR41 recorder_year
#> 513 1851  LGR41 recorder_year
#> 514 1852  LGR41 recorder_year
#> 515 1853  LGR41    outer_year