-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathargs_of_read.Rout
More file actions
60 lines (54 loc) · 2.9 KB
/
args_of_read.Rout
File metadata and controls
60 lines (54 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> args(read.csv) # you have control over sep = ","
function (file, header = TRUE, sep = ",", quote = "\"", dec = ".",
fill = TRUE, comment.char = "", ...)
NULL
> args(read.table)
function (file, header = FALSE, sep = "", quote = "\"'", dec = ".",
numerals = c("allow.loss", "warn.loss", "no.loss"), row.names,
col.names, as.is = !stringsAsFactors, na.strings = "NA",
colClasses = NA, nrows = -1, skip = 0, check.names = TRUE,
fill = !blank.lines.skip, strip.white = FALSE, blank.lines.skip = TRUE,
comment.char = "#", allowEscapes = FALSE, flush = FALSE,
stringsAsFactors = FALSE, fileEncoding = "", encoding = "unknown",
text, skipNul = FALSE)
NULL
> args(readr::read_csv) # comma separated. use read_csv2 for ";" sep
function (file, col_names = TRUE, col_types = NULL, col_select = NULL,
id = NULL, locale = default_locale(), na = c("", "NA"), quoted_na = TRUE,
quote = "\"", comment = "", trim_ws = TRUE, skip = 0, n_max = Inf,
guess_max = min(1000, n_max), name_repair = "unique", num_threads = readr_threads(),
progress = show_progress(), show_col_types = should_show_types(),
skip_empty_rows = TRUE, lazy = should_read_lazy())
NULL
> args(data.table::fread)
function (input = "", file = NULL, text = NULL, cmd = NULL, sep = "auto",
sep2 = "auto", dec = ".", quote = "\"", nrows = Inf, header = "auto",
na.strings = getOption("datatable.na.strings", "NA"), stringsAsFactors = FALSE,
verbose = getOption("datatable.verbose", FALSE), skip = "__auto__",
select = NULL, drop = NULL, colClasses = NULL, integer64 = getOption("datatable.integer64",
"integer64"), col.names, check.names = FALSE, encoding = "unknown",
strip.white = TRUE, fill = FALSE, blank.lines.skip = FALSE,
key = NULL, index = NULL, showProgress = getOption("datatable.showProgress",
interactive()), data.table = getOption("datatable.fread.datatable",
TRUE), nThread = getDTthreads(verbose), logical01 = getOption("datatable.logical01",
FALSE), keepLeadingZeros = getOption("datatable.keepLeadingZeros",
FALSE), yaml = FALSE, autostart = NA, tmpdir = tempdir(),
tz = "UTC")
NULL
>
> proc.time()
user system elapsed
0.452 0.046 0.487