Defines functions FileInfo

FileInfo <- function(path, include.dirs=FALSE) {
  # Returns info on files in path in a data.frame
  info.on.files <- ldply(paste(path, "/", dir(path), sep=""), file.info)
  info.on.files <- data.frame(name=dir(path), info.on.files, stringsAsFactors=FALSE)
  if(!include.dirs) info.on.files <- info.on.files[!info.on.files$isdir,]

Try the GDELTtools package in your browser

Any scripts or data that you put into this service are public.

GDELTtools documentation built on May 30, 2017, 4:58 a.m.