Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
HI there,
Can someone kindly advise me on how I can make the blank cells in my dataset (i.e. the columns I have chosen) for a R Script Visual to be NAs within the R Script Editor?
The way I overcome it at the moment is to go to edit script in the external R IDE, I add na.strings argument in the read.csv command as per below:
`dataset` = read.csv('C:/Users/sh6668/AppData/Local/Radio/REditorWrapper_56fdaa70-81ea-4683-9bde-09ddd2f782ff/input_df_dbea42c1-2bea-4737-a2da-83deca7143a7.csv', check.names = FALSE, encoding = "UTF-8", blank.lines.skip = FALSE, na.strings = c(""," ","NA"));
And then copy this command back onto my R Script Editor for my R Script Visual.
But the approach just feels a bit long-winded. Is there a quicker way for me to do this?
Thanks in advance.
Wes
thanks @dkay84_PowerBI
Do you know if there's a way I can do this within the R Script Editor (without having to create a new calc column)?
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 41 | |
| 32 | |
| 18 | |
| 18 | |
| 15 |