head.PHom {ripserr} | R Documentation |
First Part of PHom Object
Description
Returns the first part of a PHom
instance.
Usage
## S3 method for class 'PHom'
head(x, ...)
Arguments
x |
object of class |
... |
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)
# look at last 3 features
tail(df_phom)
[Package ripserr version 0.3.0 Index]