最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

powerbi - Unable to use Power BI viz for R data - Stack Overflow

programmeradmin0浏览0评论

I want to leverage this R code in powerbi and use the power bi viz to create graphs using the table generated by the R code. I am able to run and view the output for this R code. As per my understanding I should be able to view this table named output_data on right side of power bi under Data section.

colnames(dataset) <- ("Year", "Count")
dataset$Year <- as.numeric(dataset$Year)
dataset$Count <- as.numeric(dataset$Count)

poly_model <- lm(Count ~ poly(Year, 2, raw = TRUE), data = dataset)

dataset$Predicted <- predict(poly_model, dataset)

output_data <- data.frame(Year = dataset$Year, Count = dataset$Count, Predicted = dataset$Predicted)

output_data
发布评论

评论列表(0)

  1. 暂无评论