w {easyr}R Documentation

Write

Description

Improved write function. Writes to csv without row names and automatically adds .csv to the file name if it isn't there already. Changes to .csv if another extension is passed. Easier to type than write.csv(row.names=F). Author: Bryce Chamberlain. Tech reveiw: Maria Gonzalez.

Usage

w(x, filename = "out", row.names = FALSE, na = "")

Arguments

x

Data frame to write to file.

filename

(Optional) Filename to use.

row.names

(Optional) Specify if you want to include row names/numbers in the output file.

na

(Optional) String to print for NAs. Defaults to an empty/blank string.

Examples

# write the cars dataset.
path = paste0( tempdir(), '/out.csv' )
w( cars, path )

# cleanup.
file.remove( path )

[Package easyr version 0.5-11 Index]