Returns the first part of a PHom
instance.
# S3 method for PHom head(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.8638951 14.87582 #> 2 0 -1.2745089 14.38725 #> 3 1 -1.7817708 15.16066 #> 4 1 -0.5085934 14.33764 #> 5 1 -1.7368783 14.66515 #> 6 2 0.0404813 15.62301#> dimension birth death #> 1 0 -1.8638951 14.87582 #> 2 0 -1.2745089 14.38725 #> 3 1 -1.7817708 15.16066 #> 4 1 -0.5085934 14.33764 #> 5 1 -1.7368783 14.66515 #> 6 2 0.0404813 15.62301