Write data sets to a file in the same format as read_datasets()
.
Examples
x <- read_datasets(text="1 2\n3 4\n\n5 6\n7 8\n", col_names=c("obj1", "obj2"))
write_datasets(x)
#> # obj1 obj2
#> 1 2
#> 3 4
#>
#> 5 6
#> 7 8
Write data sets to a file in the same format as read_datasets()
.
x <- read_datasets(text="1 2\n3 4\n\n5 6\n7 8\n", col_names=c("obj1", "obj2"))
write_datasets(x)
#> # obj1 obj2
#> 1 2
#> 3 4
#>
#> 5 6
#> 7 8