Export CSVY data

Share:

Description

Export data.frame to CSVY

Usage

1
2
write_csvy(x, file = "", sep = ",", sep2 = ".", comment_header = TRUE,
  ...)

Arguments

x

A data.frame.

file

A character string or R connection specifying a file.

sep

A character string specifying a between-field separator. Passed to write.table.

sep2

A character string specifying a within-field separator. Passed to write.table.

comment_header

A logical indicating whether to comment the lines containing the YAML front matter. Default is TRUE.

...

Additional arguments passed to write.table.

See Also

write_csvy

Examples

1
2
3
4
5
library("datasets")
write_csvy(head(iris))

# write yaml w/o comment charaters
write_csvy(head(iris), comment_header = FALSE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.