Export data from R
Arguments
- object
Object.
- con
character(1)
orconnection
. Data connection. Usecharacter(1)
to represent a file path.- ...
Passthrough arguments to
DFrame
method.
Examples
data(cello)
## Cellosaurus ====
object <- cello
tempdir <- AcidBase::tempdir2()
con <- file.path(tempdir, "cello.csv")
x <- export(object = object, con = con)
#> → Exporting /private/var/folders/l1/8y8sjzmn15v49jgrqglghcfr0000gn/T/Rtmp6IOT8e/EUrhFDv6iY-171019356415033/cello.csv using base::`write.table()`.
print(x)
#> [1] "/private/var/folders/l1/8y8sjzmn15v49jgrqglghcfr0000gn/T/Rtmp6IOT8e/EUrhFDv6iY-171019356415033/cello.csv"
AcidBase::unlink2(tempdir)