Learn R Programming

soil.spec (version 2.1.3)

copy: Copying spectral data files

Description

A quick tool to determine newly acquired files kept in one computer and copied to another.Files created from a specified period of time and stored in source A are identified and copied to source B.

Usage

copy(source, destination, ddmonyyyy)

Arguments

source
source This can refer to a pathname found on a local disk or on a remote computer where the data to be copied are stored
destination
Same as in source, but this is where the files meeting the criteria of ddmonyyyy should be copied to
ddmonyyyy
Refers to the day, month and year from when files were created; for examples to search for files created from 30th April 2013 specify as: 30apr2013

Value

  • FilesList of files meeting the criterion specified here will be copied to the destination folder
  • csvfileA csv file with a list of all the copied files is saved to the destination file indicating the time of creation for each file

Details

For the copying to be successful ensure you have right permissions to read from the source path and write permissions to copy files to the specified destination folder

Examples

Run this code
new.files<-copy("d:/Measurements/soil","g:/New scans",12mar2013)

Run the code above in your browser using DataLab