Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Simple example:
Fields name containing a space, moved into a dataframe with the new R visualization:
#Create Dataframe
#dataset <-data.frame (Order Quantity, Gross Profit)
How can I reference those fields? e.g plot(Order Quantity, Gross Profit)? R variables cannot have spaces.
Thanks
Francesco
I managed to find the solution, which can be found here. The R code to automatically od what you requested for all columns is:
names(dataset) <- gsub(" ","_",names(dataset))
Try dataset["Order Quantity"]. this should do the trick.
Thanks, Avi
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |