Returns the last part of a PHom instance.

# S3 method for class 'PHom'
tail(x, ...)

Arguments

x

object of class PHom

...

other parameters

Examples

# create sample persistence data
df <- data.frame(dimension = c(0, 0, 1, 1, 1, 2),
                 birth = rnorm(6),
                 death = rnorm(6, mean = 15))
df_phom <- as.PHom(df)

# look at first 3 features
head(df_phom)
#>   dimension      birth    death
#> 1         0  0.1584506 15.86644
#> 2         0 -1.7542958 15.27127
#> 3         1 -0.3874558 15.63316
#> 4         1  0.7542686 15.78528
#> 5         1  0.6340100 13.60569
#> 6         2  0.3556727 14.87684

# look at last 3 features
tail(df_phom)
#>   dimension      birth    death
#> 1         0  0.1584506 15.86644
#> 2         0 -1.7542958 15.27127
#> 3         1 -0.3874558 15.63316
#> 4         1  0.7542686 15.78528
#> 5         1  0.6340100 13.60569
#> 6         2  0.3556727 14.87684