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

I want to leverage this R code in powerbi and use the power bi viz to create graphs using the table gen

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745090922a4610690.html

相关推荐

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

    I want to leverage this R code in powerbi and use the power bi viz to create graphs using the table gen

    12小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信