Using R.Execute() in Power Query to export the contents of a table to CSV
✓ Published0🌍 Public
HHugoberry
Last edited Jun 3, 2017
Created on Jun 3, 2017
This example demonstrates how to use R.Execute() in Power Query to export a table’s contents to a CSV file. The code generates a seed list of numbers from 1 to 1,000,000, converts it into a table, and then passes that dataset to R’s write.csv() function via the R.Execute() API. The R script writes the data to a specified file path. The visualization highlights the integration between Power Query and R, showing how R’s data-export capabilities can be invoked directly within a query pipeline, without additional manual steps.
AI-generated description