如何访问interval-R语言的下限/上限?

如何访问interval-R语言的下限/上限?,r,R,下午好 假设在R中,我们有这个间隔列表: i <- Intervals( matrix( c(0,5000, 0,5000, 7000,10000, 7000,10000, 7000,10000, 10000,15000, 10000,15000 ), byrow = TRUE, ncol = 2 ), closed = c( TRUE, TRUE ),

下午好

假设在R中,我们有这个间隔列表:

    i <- Intervals(
  matrix(
    c(0,5000,  
      0,5000,
      7000,10000,  
      7000,10000,
      7000,10000,
      10000,15000,  
      10000,15000
    ),
    byrow = TRUE,
    ncol = 2
  ),
  closed = c( TRUE, TRUE ),
  type = "R"
)

i您应该在
interval
包中包含
interval
是S4类的信息。我不熟悉该软件包,但以下内容似乎有效:

min(i)
max(i)
n <- 7
e <- matrix(as.integer(rep(NA, n*2)), nrow=n)
j <- Intervals(e)
min(i)
马克斯(一)
N