Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

read.csv.folder

batch import data from files


Description

imports all data files contained in a specified folder.

Usage

read.csv.folder(folder, x, y = 2:4, rownames = NULL, header = TRUE,
  dec = ".", sep = ";", pattern = "csv", addSpec = NULL,
  back = TRUE)

Arguments

folder

character: path to folder

x

either a vector specifiing which rows are to be imported, or character vector containing variable names to be sought for.

y

a vector specifiing, which columns of the speradsheet ist to be imported.

rownames

integer: specifies columns, where variable names are stored.

header

logical : if spreadsheet contains header-row.

dec

character: defines decimal sepearator.

sep

character: defines column seperator.

pattern

character: specify file format (e.g. csv).

addSpec

character: add a custom specifier to the dimnames of the array.

back

logical: where to place the specifier.

Value

arr

array containing imported data

NAs

vector containing position of observations with NAs

NA.list

list: containing vectors containing information which LMs are missing in which observation

Author(s)

Stefan Schlager

See Also


Morpho

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.