create.variable.name: Convert file name to variable name

Description Usage Arguments Examples

Description

Convert a file name into a variable name

Usage

1
2
create.variable.name(filename, prefix = NULL,
  fsep = .Platform$file.sep)

Arguments

filename

character string

prefix

character string: optional prefix to be added

fsep

character used to separate path components

Examples

1
2
3
4
## Not run: 
create.variable.name("C:/my-path/my-file-name.Rd",prefix="res")

## End(Not run)

Example output

Loading required package: gstat
Loading required package: shapefiles
Loading required package: foreign

Attaching package: 'shapefiles'

The following objects are masked from 'package:foreign':

    read.dbf, write.dbf

Loading required package: plyr
[1] "res.my.file.name"

RSAGA documentation built on May 2, 2019, 11:01 a.m.