export_dataset: Export a dataset.

Description Usage Arguments Value

View source: R/utilities.r

Description

This function allows users to export a dataset to Excel or SPSS.

Usage

1
2
3
4
5
export_dataset(
  x,
  path = paste0(getwd(), "/", deparse(substitute(x))),
  type = "xlsx"
)

Arguments

x

A data frame.

path

The path to the location on the user's local computer where the data frame should be stored. This parameter is set to the working directory #' by default.

type

A character element representing the type of export to perform (options: "xlsx" or "spss"). This parameter is set to "xlsx" by default.

Value

Returns none.


barnzilla/glebe.datasets documentation built on Oct. 29, 2020, 1:54 a.m.