| yywrite | R Documentation | 
Function from data.table.
yywrite(
  x,
  file = "",
  rownames.id,
  col.names = TRUE,
  method = c("vroom", "write"),
  sep,
  eol = c("\n", "\r\n", "\r"),
  ...
)
| x | Any  | 
| file | Output file name.  | 
| rownames.id | A string: the name of a new column. Existing rownames are transferred into this column and the row.names attribute is deleted. | 
| col.names | Should the column names (header row) be written? The default is  | 
| method | c("vroom", "fwrite"). The function used to write file, the default is "vroom". | 
| sep | The separator between columns. Default "," for "csv" file; "\t" otherswise. | 
| eol | Default "\n", you can also use "\r\n" and "\r". | 
| ... | others params from  | 
## Not run: a1 <- data.frame(matrix(1:9, 3)) yywrite(a1, "a1.tsv") yywrite(a1, "a1.csv") rownames(a1) <- letters[1:3] yywrite(a1, "a1_name.tsv", row.names = TRUE) yywrite(a1, "a1_name_no_colname.tsv", row.names = TRUE, col.names = FALSE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.