Learn R Programming

RPMG (version 2.2-7)

local.file: Get name for a Local file

Description

Get a name for a local file for writing ascii files or postscript output. This code checks to see if file exists and if so it increments a counter int he name.

Usage

local.file(pref, suf)

Value

character string for new file name

Arguments

pref

prefix for file name

suf

suffix for file name

Author

Jonathan M. Lees<jonathan.lees.edu>

Details

File name is located in the current directory.

Examples

Run this code

psfile = local.file("JML", "eps")


Run the code above in your browser using DataLab