Created
June 3, 2017 10:42
-
-
Save Hugoberry/918dc2131ee7389fa351b7c420307669 to your computer and use it in GitHub Desktop.
Using R.Execute() in Power Query to export the contents of a table to CSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
seed = {1..1000000}, | |
path = "d:\\Downloads\\out.csv", | |
seedTable = Table.FromList(seed, Splitter.SplitByNothing()), | |
RScript = R.Execute("write.csv(dataset,"""&path&""")",[dataset=seedTable]), | |
out = RScript | |
in | |
out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment