file.findByType: Find By File Type in Directory

Description Usage Arguments Examples

View source: R/file.R View source: R/.ipynb_checkpoints/file-checkpoint.R

Description

Find By File Type in Directory

Usage

1
2
file.findByType(directory, type = "shp", first_only = FALSE,
  full_path = FALSE)

Arguments

type

Type of file file extension without a period, e.g. "zip", "shp".

first_only

Only return first found. default FALSE.

full_path

Return file name with full path. defualt FASLE.

Examples

1
2
file.findByType(tmpdir, "shp", first_only = TRUE)
[1] "some_shape_file.shp"

dads2busy/dataplumbr documentation built on July 2, 2021, 3:24 a.m.