as.PHom | R Documentation |
Converts valid objects to PHom
instances.
as.PHom(x, dim_col = 1, birth_col = 2, death_col = 3)
x |
object being converted to |
dim_col |
either |
birth_col |
either |
death_col |
either |
PHom
instance
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.