Returns the last part of a PHom
instance.
# S3 method for PHom tail(x, ...)
x | object of class |
---|---|
... | other parameters |
# 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 -1.26047622 14.17945 #> 2 0 -0.11465603 15.52880 #> 3 1 1.39502319 14.77455 #> 4 1 -1.47615111 15.15845 #> 5 1 -0.08441358 13.24570 #> 6 2 0.54650824 14.61254#> dimension birth death #> 1 0 -1.26047622 14.17945 #> 2 0 -0.11465603 15.52880 #> 3 1 1.39502319 14.77455 #> 4 1 -1.47615111 15.15845 #> 5 1 -0.08441358 13.24570 #> 6 2 0.54650824 14.61254