-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsave_customer_stats_output.R
More file actions
37 lines (31 loc) · 2.07 KB
/
save_customer_stats_output.R
File metadata and controls
37 lines (31 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
library(dplyr)
library(flextable)
library(officer)
working_directory
## Saving descriptive and inferential output
### customer stats
flextable::save_as_docx(descriptive_inferential_year_customers_merge,
path = base::file.path(output_Dir, "descriptive_inferential_year_customers.docx"),
align = "center", #left, center (default) or right.
pr_section = officer::prop_section(
page_size = officer::page_size(), #Use NULL (default value) for no content.
page_margins = officer::page_mar(), #Use NULL (default value) for no content.
type = "nextPage", # "continuous", "evenPage", "oddPage", "nextColumn", "nextPage"
section_columns = NULL, #Use NULL (default value) for no content.
header_default = NULL, #Use NULL (default value) for no content.
header_even = NULL, #Use NULL (default value) for no content.
header_first = NULL, #Use NULL (default value) for no content.
footer_default = NULL, #Use NULL (default value) for no content.
footer_even = NULL, #Use NULL (default value) for no content.
footer_first = NULL #Use NULL (default value) for no content.
)
)
flextable::save_as_docx(inferential_customers_merge,
path = base::file.path(output_Dir, "inferential_customers.docx"),
align = "center", #left, center (default) or right.
pr_section = officer::prop_section(
page_size = officer::page_size(orient = "landscape"), #Use NULL (default value) for no content.
page_margins = officer::page_mar(), #Use NULL (default value) for no content.
type = "nextPage", # "continuous", "evenPage", "oddPage", "nextColumn", "nextPage"
)
)