Skip to content

kewiechecki/dirfns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dirfns

A collection of functions to more cleanly organize output files by specifying directories separately and automatically organizing output by date.

Installation

git clone https://github.com/kewiechecki/dirfns
cd dirfns
make

Usage

library(dirfns)

dir.csv(iris, "example", path = "path/to")

# Open a device
dir.pdf("example", path = "path/to")
plot(iris$Sepal.Length,iris$Petal.Length)
dev.off()

# Write a list of files with filenames taken from names(x).
x <- split(iris,iris$Species)
dir.apply(x, dir.csv, path="path/to")

# Selectively read files matching a given pattern.
dir.csv(iris, "example", path="path/to", append.date = F)
dir.tab(iris, "example", path="path/to", append.date = F)
lrtab("path/to", read.csv, "\\.csv")

About

Functions for organizing output files by date

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published