import.df {ANTs}R Documentation

Imports data frames


Imports all current directory files in the format of a list of data frames.


  header = TRUE,
  sep = ",",
  quote = "\"",
  dec = ".",
  fill = TRUE,
  comment.char = "",



a logical value indicating whether the file contains the names of the variables as its first line. If missing, the value is determined from the file format: header is set to TRUE if and only if the first row contains one fewer field than the number of columns.


the field separator character. Values in each line of the file are separated by this character. If sep = "" (the default for read.table) the separator is 'white space, that is one or more spaces, tabs, newlines or carriage returns.


the set of quoting characters. To disable quoting altogether, use quote = "". See scan for the behaviour on quotes embedded in quotes. Quoting is only considered for columns read as character, which is all of them unless colClasses is specified.


the character used in the file for decimal points.


logical If TRUE then in case the rows have unequal lengths, blank fields are implicitly added. See 'Details'.


a character vector of length 1 containing a single character or an empty string. Use "" to turn off the interpretation of comments altogether.


Further arguments to be passed to read.csv.


After selecting the directory, this function returns a single data frame if there is only one file in the folder or a list of data frames in the same order as in the original folder if there are several files in the folder. by default it considers that the data frame has header= TRUE and row names= 1.


a single data frame or a list of data frames according to the number of files in the selected folder.


Sebastian Sosa, Ivan Puga-Gonzalez.

See Also


[Package ANTs version 0.0.16 Index]