I know that you can import data (i.e. from URL or local file) using the custom R Script in Query Editor, but is it possible to load the data using a regular UI-based query and then reference that query within your R script?
For example, I have a list of transactions as a CSV and I want to perform a market basket analysis using the Apriori algorithm within R. I know I can read the CSV into Power BI from within R script, but what if the CSV was already loaded into a data model? In other words, I have a query already loaded named "Transactions" and I want to create a new query that references "Transactions" but performs the analysis and outputs the Apriori analysis (a dataframe/table that has the association rules and resulting measures).