R/getStati.R

Defines functions getStati

# funzione per il numero di posti in cui ? stata 
getStati<-function(percorso){
  #numero stati
  perA=.getWallPath(percorso)
  #lettura intero file
  pg=htmlParse(perA)
  
  comm=length(getNodeSet(pg,"//div[@class='contents']/div/div[@class='comment']"))
  #creazione dataset
  "stati" <- structure(.Data = list(comm),
                       names = c("N.Stati"),
                       row.names = c(1:1),
                       class = "data.frame")
  return(stati)
}
livioivil/myFBr documentation built on May 21, 2019, 6:43 a.m.