read.csv.folder {Morpho} | R Documentation |
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