powered by
Export a query dataset (e.g., from rd_query or rd_event) to an .xlsx file. The function can optionally convert a column of URLs into Excel hyperlinks and apply password protection to the worksheet.
rd_query
rd_event
.xlsx
rd_export( project = NULL, queries = NULL, column = NULL, sheet_name = NULL, path = NULL, password = NULL )
An .xlsx file written to the specified path.
A list containing the dataframe of queries and results (expected rd_query or rd_event output). Overrides queries.
queries
A data frame of identified queries.
Name of the column containing URLs to convert into hyperlinks. If NULL, hyperlinks are added only if a Link column exists.
NULL
Link
Name of the Excel sheet in the resulting .xlsx file. Default: "Sheet1".
"Sheet1"
File path for saving the .xlsx file. If NULL, the file is saved as "example.xlsx" in the working directory.
"example.xlsx"
Optional password to protect the worksheet from edits.
if (FALSE) { rd_export( queries = my_queries, column = "Link", sheet_name = "My Queries", path = "queries.xlsx" ) }
Run the code above in your browser using DataLab