write_all_to_disk | R Documentation |
Write a nested list as nested folders, with data.frame objects as csvs.
write_all_to_disk(name, object, folder)
name |
The name of the top-level folder to be written |
object |
The nested list |
folder |
The parent folder where the top-level folder should be placed. |
# For example, if the object is
object = list(
item1 = list(
df1 = data.frame(a=c(1,2),b=c(3,4)),
df2 = data.frame(a=c(1,2),b=c(3,4))
),
item2 = list(
df3=data.frame(a=c(1,2),b=c(3,4))
),
df4 = data.frame(a=c(1,2),b=c(3,4))
)
# and the call is
write_all_to_disk("toplevelfolder", object, ".")
# The following files and folders would be written:
# toplevelfolder/
# item1/
# df1.csv
# df2.csv
# item2/
# df3.csv
# df4.csv
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.