Forum Discussion
Cost Network Corridors
Error Message:
R script error.
# maps v3.1: updated 'world': all lakes moved to separate new #
# 'lakes' database. Type '?world' or 'news(package="maps")'. #
Loading required package: sp
Loading required package: methods
Error in order(dataset$count) : argument 1 is not a vector
Calls: [ -> [.data.frame -> order
Execution halted
v-haibl-msft ankitpatira still showing me same error, have not done any different than what you proposed before. Sorry, might sound unprepared, however, it is first time I work with the language.
Thanks, Atanas
Did you get the error message in RGui? I downloaded R Open from here and just pasted following commands into R Console.
install.packages("maps")
install.packages("geosphere")
install.packages("data.table")
Best Regards,
Herbert
- t-atgeor10 years ago
Microsoft Employee
v-haibl-msft it has installed the packages successfully in the command window of RGui, however, once going to Power BI, and writing the code down, it is showing the mistake mentioned above.
- v-haibl-msft10 years ago
Microsoft Employee
Did you use the sample table provide by ankitpatira in his blog or use your own data table? You may need to adjust the R script if your table is different from the sample. I’ve tested with the sample table and code, everything worked well.
Best Regards,
Herbert