as.PHom {ripserr} | R Documentation |
Convert to PHom Object
Description
Converts valid objects to PHom
instances.
Usage
as.PHom(x, dim_col = 1, birth_col = 2, death_col = 3)
Arguments
x |
object being converted to |
dim_col |
either |
birth_col |
either |
death_col |
either |
Value
PHom
instance
Examples
# construct data frame with valid persistence data
df <- data.frame(dimension = c(0, 0, 1, 1, 1, 2),
birth = rnorm(6),
death = rnorm(6, mean = 15))
# convert to `PHom` instance and print
df_phom <- as.PHom(df)
df_phom
# print feature details to confirm accuracy
print.data.frame(df_phom)
[Package ripserr version 1.0.0 Index]