Standard tail and head methods can be applied along any dimension of an FLQuant object.
Examples
x <- FLQuant(1:10)
# Extract the last 3 years
tail(x, 3)
#> An x of class "FLQuant"
#> , , unit = unique, season = all, area = unique
#>
#> year
#> quant 8 9 10
#> all 8 9 10
#>
#> units: NA
# Extract all but the first 3 years
tail(x, -3)
#> An x of class "FLQuant"
#> , , unit = unique, season = all, area = unique
#>
#> year
#> quant 4 5 6 7 8 9 10
#> all 4 5 6 7 8 9 10
#>
#> units: NA
# Extract the first 3 years
head(x, 3)
#> An x of class "FLQuant"
#> , , unit = unique, season = all, area = unique
#>
#> year
#> quant 1 2 3 4 5 6 7 8 9 10
#> all 1 2 3 4 5 6 7 8 9 10
#>
#> units: NA
# Extract all but the last 3 years
head(x, -3)
#> An x of class "FLQuant"
#> , , unit = unique, season = all, area = unique
#>
#> year
#> quant 1 2 3 4 5 6 7 8 9 10
#>
#> units: NA