riga power bi meetup #14 - datu analīze ar r
TRANSCRIPT
Datu analīze Power BIar R valodu
Aldis Ērglis
Riga Power BI #15
Keep in touchhttp://msbi.blogspace.lv/
R valodas popularitāte
Kas ir R valoda• Valoda statistikas aprēķiniem• Radīta 1993. gadā• Ross Ihaka, Robert Gentleman• Jaudīgs vizuālizācijas instruments
x <- c(1,2,3,4,5,6) # Create ordered collection (vector)y <- x^2 # Square the elements of xprint(y) # print (vector) y[1] 1 4 9 16 25 36
mean(y) # Calculate average (arithmetic mean) of (vector) y; result is scalar[1] 15.16667
Mandelbrot setShort R code calculating Mandelbrot set through the first 20 iterations of equation z = z2 + c plotted for different complex constants c. This example demonstrates:
R Studio https://www.rstudio.com
800 datu pakaslibrary(corrplot)M <- cor(mtcars)corrplot(M, method="circle")
R galvenie uzdevumi• Datu sagatavošana un tīrīšana• Klasifikācijas• Lineārās regresijas modeļi• Prognozēšana• Klāsteri• Lēmumu koki• Neirona tīkli
Ar ko sākt?
https://www.edx.org
DEMO
R un Power BI
Power BI Overview
Power BI REST APIsPower BI Desktop
Prepare Explore ShareReport
0110
001
0001
0110
Data sourcesSaaS solutions
e.g. Marketo, Salesforce, GitHub, Google analytics
On-premises datae.g. Analysis ServicesOrganizational content packsCorporate data sources or external data services
Azure servicesAzure SQL, Stream Analytics…
Excel filesWorkbook data / data models
Power BI Desktop filesData from files, databases, Azure, and other sources
Power BI
Power BI service
Data refresh
Visualizations
Live dashboards
Content packs Sharing & collaborationNatural language query
Reports
Datasets0100110101
R usztādījumi Power BI
http://community.powerbi.com/t5/R-Script-Showcase/bd-p/RVisuals
DEMO