[SPARK-10760] [SPARKR] SparkR glm: the documentation in examples - family argument is missing
[SPARK-10760] [SPARKR] SparkR glm: the documentation in examples - family argument is missing

Hi everyone,

Since the family argument is required for the glm function, the execution of:

model <- glm(Sepal_Length ~ Sepal_Width, df)

is failing.

I've fixed the documentation by adding the family argument and also added the summay(model) which will show the coefficients for the model.

Thanks,
Narine

Author: Narine Kokhlikyan <narine.kokhlikyan@gmail.com>

Closes #8870 from NarineK/sparkrml.

matthewfranglen/spark,highfei2011/spark,poffuomo/spark,sureshthalamati/spark,pronix/spark,mike0sv/spark,wzhfy/spark,nlalevee/spark,Aegeaner/spark,apache/spark,markhamstra/spark,sachintyagi22/spark,xuanyuanking/spark,ericvandenbergfb/spark,actuaryzhang/spark,gioenn/xSpark,saturday-shi/spark,saltstar/spark,apache-spark-on-k8s/spark,WindCanDie/spark,tengpeng/spark,someorz/spark,aosagie/spark,haowu80s/spark,lvdongr/spark,aray/spark,apache-spark-on-k8s/spark,jianran/spark,mahak/spark,szhem/spark,pgandhi999/spark,Panos-Bletsos/spark-cost-model-optimizer,vinodkc/spark,xuanyuanking/spark,saltstar/spark,tengpeng/spark,poffuomo/spark,vinodkc/spark,setjet/spark,taroplus/spark,joseph-torres/spark,rikima/spark,bravo-zhang/spark,tejasapatil/spark,MLnick/spark,Aegeaner/spark,haowu80s/spark,markhamstra/spark,hhbyyh/spark,srowen/spark,aokolnychyi/spark,michalsenkyr/spark,xflin/spark,1haodian/spark,apache-spark-on-k8s/spark,WeichenXu123/spark,cloud-fan/spark,esi-mineset/spark,caneGuy/spark,brad-kaiser/spark,milliman/spark,ron8hu/spark,jianran/spark,SHASHANKB/spark,rezasafi/spark,michalsenkyr/spark,JerryLead/spark,witgo/spark,actuaryzhang/spark,kimoonkim/spark,sahilTakiar/spark,andrewor14/spark,xuanyuanking/spark,nchammas/spark,wangyum/spark,saturday-shi/spark,ptkool/spark,ericvandenbergfb/spark,WeichenXu123/spark,poffuomo/spark,ptkool/spark,aokolnychyi/spark,shubhamchopra/spark,mdespriee/spark,SnappyDataInc/spark,yanboliang/spark,lvdongr/spark,rekhajoshm/spark,dhruve/spark,WeichenXu123/spark,aosagie/spark,alunarbeach/spark,bravo-zhang/spark,jrshust/spark,kimoonkim/spark,facaiy/spark,panfengfeng/spark,setjet/spark,SnappyDataInc/spark,caneGuy/spark,Aegeaner/spark,lxsmnv/spark,gioenn/xSpark,huang1900/spark,pgandhi999/spark,mdespriee/spark,kiszk/spark,ahnqirage/spark,zuotingbing/spark,vinodkc/spark,sureshthalamati/spark,mzl9039/spark,metamx/spark,sureshthalamati/spark,esi-mineset/spark,srowen/spark,aokolnychyi/spark,wangmiao1981/spark,rikima/spark,facaiy/spark,ConeyLiu/spark,alunarbeach/spark,andrewor14/spark,nchammas/spark,dongjoon-hyun/spark,ptkool/spark,dbtsai/spark,yanboliang/spark,zero323/spark,rikima/spark,aosagie/spark,caneGuy/spark,brad-kaiser/spark,shuangshuangwang/spark,akopich/spark,someorz/spark,dbtsai/spark,szhem/spark,apache/spark,sahilTakiar/spark,byakuinss/spark,sachintyagi22/spark,ron8hu/spark,jrshust/spark,UndeadBaneGitHub/spark,MLnick/spark,zero323/spark,publicRoman/spark,taroplus/spark,debugger87/spark,skonto/spark,kimoonkim/spark,apache/spark,setjet/spark,eyalfa/spark,aosagie/spark,kissmetrics/spark,huang1900/spark,byakuinss/spark,rednaxelafx/apache-spark,someorz/spark,ajaysaini725/spark,jlopezmalla/spark,saltstar/spark,LantaoJin/spark,milliman/spark,gengliangwang/spark,nchammas/spark,huang1900/spark,patrick-nicholson/spark,zhouyejoe/spark,skonto/spark,ibm-research-ireland/sparkoscope,SnappyDataInc/spark,jrshust/spark,minixalpha/spark,ron8hu/spark,loneknightpy/spark,panfengfeng/spark,pgandhi999/spark,minixalpha/spark,techaddict/spark,apache-spark-on-k8s/spark,jkbradley/spark,esi-mineset/spark,WeichenXu123/spark,jlopezmalla/spark,rikima/spark,icexelloss/spark,akopich/spark,markhamstra/spark,mdespriee/spark,loneknightpy/spark,witgo/spark,adrian-ionescu/apache-spark,tengpeng/spark,ioana-delaney/spark,LantaoJin/spark,tejasapatil/spark,hhbyyh/spark,jiangxb1987/spark,debugger87/spark,rezasafi/spark,xuanyuanking/spark,tejasapatil/spark,map222/spark,dongjoon-hyun/spark,cloud-fan/spark,sachintyagi22/spark,byakuinss/spark,sureshthalamati/spark,kimoonkim/spark,minixalpha/spark,guoxiaolongzte/spark,sachintyagi22/spark,zzcclp/spark,wzhfy/spark,JerryLead/spark,nlalevee/spark,debugger87/spark,nchammas/spark,liutang123/spark,lvdongr/spark,byakuinss/spark,kevinyu98/spark,bravo-zhang/spark,rednaxelafx/apache-spark,Aegeaner/spark,tejasapatil/spark,HyukjinKwon/spark,sachintyagi22/spark,panfengfeng/spark,maropu/spark,loneknightpy/spark,sureshthalamati/spark,ajaysaini725/spark,cin/spark,cloud-fan/spark,ueshin/apache-spark,highfei2011/spark,gengliangwang/spark,byakuinss/spark,sahilTakiar/spark,andrewor14/spark,ioana-delaney/spark,facaiy/spark,pronix/spark,taroplus/spark,loneknightpy/spark,rezasafi/spark,big-pegasus/spark,milliman/spark,lxsmnv/spark,saltstar/spark,adrian-ionescu/apache-spark,metamx/spark,yanboliang/spark,WindCanDie/spark,ericvandenbergfb/spark,jianran/spark,darionyaphet/spark,dhruve/spark,esi-mineset/spark,kiszk/spark,saltstar/spark,akopich/spark,spark-test/spark,ConeyLiu/spark,alunarbeach/spark,someorz/spark,JoshRosen/spark,mzl9039/spark,chuckchen/spark,pgandhi999/spark,spark-test/spark,tejasapatil/spark,rekhajoshm/spark,big-pegasus/spark,liyichao/spark,ajaysaini725/spark,adrian-ionescu/apache-spark,rezasafi/spark,map222/spark,lxsmnv/spark,bdrillard/spark,WindCanDie/spark,icexelloss/spark,goldmedal/spark,michalsenkyr/spark,big-pegasus/spark,wangmiao1981/spark,JoshRosen/spark,liutang123/spark,zero323/spark,cin/spark,jiangxb1987/spark,loneknightpy/spark,janewangfb/spark,cin/spark,kissmetrics/spark,pgandhi999/spark,eyalfa/spark,bOOm-X/spark,aokolnychyi/spark,nilsgrabbert/spark,hvanhovell/spark,aosagie/spark,zero323/spark,ConeyLiu/spark,LantaoJin/spark,eyalfa/spark,shuangshuangwang/spark,wangmiao1981/spark,taroplus/spark,akopich/spark,apache/spark,saturday-shi/spark,bdrillard/spark,lxsmnv/spark,poffuomo/spark,aokolnychyi/spark,shuangshuangwang/spark,metamx/spark,rekhajoshm/spark,ericvandenbergfb/spark,michalsenkyr/spark,shaneknapp/spark,zhouyejoe/spark,aosagie/spark,gengliangwang/spark,liutang123/spark,rikima/spark,debugger87/spark,publicRoman/spark,stanzhai/spark,lxsmnv/spark,hhbyyh/spark,ddna1021/spark,debugger87/spark,narahari92/spark,SHASHANKB/spark,wzhfy/spark,zzcclp/spark,aray/spark,tejasapatil/spark,kevinyu98/spark,tengpeng/spark,HyukjinKwon/spark,rekhajoshm/spark,Aegeaner/spark,rednaxelafx/apache-spark,mike0sv/spark,milliman/spark,rekhajoshm/spark,zzcclp/spark,apache/spark,jiangxb1987/spark,ahnqirage/spark,big-pegasus/spark,loneknightpy/spark,hhbyyh/spark,vinodkc/spark,rikima/spark,stanzhai/spark,SnappyDataInc/spark,ddna1021/spark,kiszk/spark,stanzhai/spark,shaneknapp/spark,wzhfy/spark,aray/spark,hvanhovell/spark,jrshust/spark,zhouyejoe/spark,BryanCutler/spark,aokolnychyi/spark,setjet/spark,ueshin/apache-spark,jlopezmalla/spark,actuaryzhang/spark,taroplus/spark,jianran/spark,shaneknapp/spark,kimoonkim/spark,JerryLead/spark,mahak/spark,hvanhovell/spark,liutang123/spark,BryanCutler/spark,facaiy/spark,wzhfy/spark,bOOm-X/spark,shubhamchopra/spark,shubhamchopra/spark,huang1900/spark,HyukjinKwon/spark,SnappyDataInc/spark,dbtsai/spark,actuaryzhang/spark,Aegeaner/spark,holdenk/spark,kevinyu98/spark,ericvandenbergfb/spark,goldmedal/spark,xflin/spark,darionyaphet/spark,setjet/spark,xuanyuanking/spark,WindCanDie/spark,ibm-research-ireland/sparkoscope,byakuinss/spark,nlalevee/spark,aray/spark,mahak/spark,WeichenXu123/spark,ibm-research-ireland/sparkoscope,guoxiaolongzte/spark,chuckchen/spark,nilsgrabbert/spark,bdrillard/spark,adrian-ionescu/apache-spark,ptkool/spark,kimoonkim/spark,panfengfeng/spark,milliman/spark,cloud-fan/spark,eyalfa/spark,dongjoon-hyun/spark,jrshust/spark,ConeyLiu/spark,nilsgrabbert/spark,hvanhovell/spark,setjet/spark,UndeadBaneGitHub/spark,nlalevee/spark,MLnick/spark,apache-spark-on-k8s/spark,brad-kaiser/spark,ueshin/apache-spark,1haodian/spark,goldmedal/spark,tengpeng/spark,dbtsai/spark,JoshRosen/spark,liutang123/spark,holdenk/spark,big-pegasus/spark,someorz/spark,srowen/spark,poffuomo/spark,yanboliang/spark,guoxiaolongzte/spark,jiangxb1987/spark,MLnick/spark,shuangshuangwang/spark,pronix/spark,darionyaphet/spark,bdrillard/spark,pgandhi999/spark,vinodkc/spark,1haodian/spark,techaddict/spark,map222/spark,wangyum/spark,ajaysaini725/spark,shubhamchopra/spark,mdespriee/spark,gioenn/xSpark,1haodian/spark,apache-spark-on-k8s/spark,goldmedal/spark,apache-spark-on-k8s/spark,gioenn/xSpark,liyichao/spark,jiangxb1987/spark,narahari92/spark,holdenk/spark,michalsenkyr/spark,stanzhai/spark,map222/spark,akopich/spark,liyichao/spark,pronix/spark,nchammas/spark,techaddict/spark,kissmetrics/spark,alunarbeach/spark,ueshin/apache-spark,ahnqirage/spark,yanboliang/spark,spark-test/spark,patrick-nicholson/spark,loneknightpy/spark,minixalpha/spark,tengpeng/spark,caneGuy/spark,jianran/spark,highfei2011/spark,chuckchen/spark,JoshRosen/spark,skonto/spark,map222/spark,MLnick/spark,facaiy/spark,dongjoon-hyun/spark,Panos-Bletsos/spark-cost-model-optimizer,BryanCutler/spark,joseph-torres/spark,ioana-delaney/spark,wangmiao1981/spark,shuangshuangwang/spark,lxsmnv/spark,mike0sv/spark,maropu/spark,HyukjinKwon/spark,ptkool/spark,ibm-research-ireland/sparkoscope,eyalfa/spark,chuckchen/spark,stanzhai/spark,mzl9039/spark,joseph-torres/spark,ddna1021/spark,witgo/spark,map222/spark,nchammas/spark,jlopezmalla/spark,nilsgrabbert/spark,hhbyyh/spark,zzcclp/spark,ahnqirage/spark,mzl9039/spark,ueshin/apache-spark,kissmetrics/spark,ron8hu/spark,byakuinss/spark,UndeadBaneGitHub/spark,metamx/spark,janewangfb/spark,holdenk/spark,rezasafi/spark,milliman/spark,liutang123/spark,jlopezmalla/spark,huang1900/spark,ConeyLiu/spark,poffuomo/spark,minixalpha/spark,jkbradley/spark,mdespriee/spark,darionyaphet/spark,haowu80s/spark,gengliangwang/spark,ptkool/spark,publicRoman/spark,minixalpha/spark,dongjoon-hyun/spark,zzcclp/spark,lxsmnv/spark,shaneknapp/spark,holdenk/spark,srowen/spark,JerryLead/spark,caneGuy/spark,pgandhi999/spark,mzl9039/spark,ron8hu/spark,darionyaphet/spark,zuotingbing/spark,aokolnychyi/spark,UndeadBaneGitHub/spark,jrshust/spark,kiszk/spark,bravo-zhang/spark,dbtsai/spark,bOOm-X/spark,rikima/spark,shubhamchopra/spark,zhouyejoe/spark,kissmetrics/spark,szhem/spark,kimoonkim/spark,nilsgrabbert/spark,gioenn/xSpark,ajaysaini725/spark,dhruve/spark,zero323/spark,nlalevee/spark,bOOm-X/spark,ahnqirage/spark,metamx/spark,narahari92/spark,ConeyLiu/spark,mdespriee/spark,setjet/spark,michalsenkyr/spark,sureshthalamati/spark,facaiy/spark,kissmetrics/spark,haowu80s/spark,bravo-zhang/spark,srowen/spark,lvdongr/spark,nlalevee/spark,icexelloss/spark,LantaoJin/spark,zhouyejoe/spark,mahak/spark,lvdongr/spark,highfei2011/spark,ahnqirage/spark,jiangxb1987/spark,wangyum/spark,dongjoon-hyun/spark,WeichenXu123/spark,jianran/spark,xflin/spark,hvanhovell/spark,bOOm-X/spark,icexelloss/spark,minixalpha/spark,skonto/spark,kissmetrics/spark,spark-test/spark,cloud-fan/spark,metamx/spark,SHASHANKB/spark,saturday-shi/spark,publicRoman/spark,maropu/spark,Panos-Bletsos/spark-cost-model-optimizer,tengpeng/spark,yanboliang/spark,ericvandenbergfb/spark,pronix/spark,gioenn/xSpark,rekhajoshm/spark,ioana-delaney/spark,big-pegasus/spark,kiszk/spark,dbtsai/spark,actuaryzhang/spark,yanboliang/spark,andrewor14/spark,BryanCutler/spark,dhruve/spark,SHASHANKB/spark,cin/spark,mahak/spark,maropu/spark,wzhfy/spark,kiszk/spark,spark-test/spark,techaddict/spark,Aegeaner/spark,witgo/spark,liyichao/spark,mdespriee/spark,sahilTakiar/spark,alunarbeach/spark,mahak/spark,nchammas/spark,rednaxelafx/apache-spark,BryanCutler/spark,patrick-nicholson/spark,liutang123/spark,patrick-nicholson/spark,Panos-Bletsos/spark-cost-model-optimizer,eyalfa/spark,huang1900/spark,zhouyejoe/spark,xuanyuanking/spark,poffuomo/spark,aosagie/spark,stanzhai/spark,darionyaphet/spark,szhem/spark,esi-mineset/spark,someorz/spark,andrewor14/spark,ddna1021/spark,LantaoJin/spark,SHASHANKB/spark,BryanCutler/spark,mike0sv/spark,kiszk/spark,HyukjinKwon/spark,wangmiao1981/spark,techaddict/spark,brad-kaiser/spark,adrian-ionescu/apache-spark,wangyum/spark,andrewor14/spark,zero323/spark,zero323/spark,joseph-torres/spark,stanzhai/spark,guoxiaolongzte/spark,WindCanDie/spark,debugger87/spark,mahak/spark,kevinyu98/spark,markhamstra/spark,bdrillard/spark,sahilTakiar/spark,narahari92/spark,jkbradley/spark,dbtsai/spark,JerryLead/spark,brad-kaiser/spark,dhruve/spark,SHASHANKB/spark,mike0sv/spark,goldmedal/spark,xflin/spark,kevinyu98/spark,highfei2011/spark,panfengfeng/spark,brad-kaiser/spark,mzl9039/spark,JoshRosen/spark,witgo/spark,nlalevee/spark,patrick-nicholson/spark,wangyum/spark,hvanhovell/spark,JoshRosen/spark,mike0sv/spark,patrick-nicholson/spark,sahilTakiar/spark,patrick-nicholson/spark,narahari92/spark,saturday-shi/spark,zzcclp/spark,zuotingbing/spark,jkbradley/spark,icexelloss/spark,wangyum/spark,holdenk/spark,bravo-zhang/spark,shuangshuangwang/spark,WeichenXu123/spark,ahnqirage/spark,goldmedal/spark,goldmedal/spark,ioana-delaney/spark,taroplus/spark,hhbyyh/spark,joseph-torres/spark,spark-test/spark,haowu80s/spark,cloud-fan/spark,tejasapatil/spark,alunarbeach/spark,gengliangwang/spark,sachintyagi22/spark,kevinyu98/spark,pronix/spark,rekhajoshm/spark,zuotingbing/spark,brad-kaiser/spark,maropu/spark,holdenk/spark,ptkool/spark,hhbyyh/spark,ibm-research-ireland/sparkoscope,liyichao/spark,metamx/spark,szhem/spark,ibm-research-ireland/sparkoscope,ericvandenbergfb/spark,adrian-ionescu/apache-spark,techaddict/spark,witgo/spark,aray/spark,saturday-shi/spark,ueshin/apache-spark,janewangfb/spark,sureshthalamati/spark,markhamstra/spark,liyichao/spark,esi-mineset/spark,techaddict/spark,ddna1021/spark,ConeyLiu/spark,rezasafi/spark,markhamstra/spark,dhruve/spark,mike0sv/spark,nilsgrabbert/spark,ddna1021/spark,xuanyuanking/spark,guoxiaolongzte/spark,JoshRosen/spark,chuckchen/spark,gengliangwang/spark,srowen/spark,WindCanDie/spark,SnappyDataInc/spark,szhem/spark,joseph-torres/spark,spark-test/spark,UndeadBaneGitHub/spark,ron8hu/spark,bravo-zhang/spark,caneGuy/spark,ron8hu/spark,rezasafi/spark,ioana-delaney/spark,saltstar/spark,cin/spark,chuckchen/spark,lvdongr/spark,publicRoman/spark,andrewor14/spark,janewangfb/spark,wangmiao1981/spark,jiangxb1987/spark,HyukjinKwon/spark,actuaryzhang/spark,narahari92/spark,liyichao/spark,akopich/spark,Panos-Bletsos/spark-cost-model-optimizer,saltstar/spark,alunarbeach/spark,rednaxelafx/apache-spark,gioenn/xSpark,jkbradley/spark,esi-mineset/spark,SnappyDataInc/spark,huang1900/spark,wangyum/spark,michalsenkyr/spark,xflin/spark,maropu/spark,jkbradley/spark,skonto/spark,1haodian/spark,guoxiaolongzte/spark,1haodian/spark,zuotingbing/spark,JerryLead/spark,bdrillard/spark,hvanhovell/spark,guoxiaolongzte/spark,ioana-delaney/spark,BryanCutler/spark,shaneknapp/spark,cin/spark,joseph-torres/spark,bOOm-X/spark,publicRoman/spark,narahari92/spark,srowen/spark,chuckchen/spark,nilsgrabbert/spark,cloud-fan/spark,shuangshuangwang/spark,ueshin/apache-spark,ajaysaini725/spark,panfengfeng/spark,jlopezmalla/spark,publicRoman/spark,apache/spark,JerryLead/spark,zhouyejoe/spark,LantaoJin/spark,UndeadBaneGitHub/spark,big-pegasus/spark,actuaryzhang/spark,haowu80s/spark,UndeadBaneGitHub/spark,jrshust/spark,panfengfeng/spark,dongjoon-hyun/spark,Panos-Bletsos/spark-cost-model-optimizer,highfei2011/spark,saturday-shi/spark,SHASHANKB/spark,taroplus/spark,highfei2011/spark,HyukjinKwon/spark,skonto/spark,akopich/spark,gengliangwang/spark,janewangfb/spark,wzhfy/spark,debugger87/spark,lvdongr/spark,bdrillard/spark,eyalfa/spark,WindCanDie/spark,jianran/spark,cin/spark,ajaysaini725/spark,jlopezmalla/spark,xflin/spark,wangmiao1981/spark,facaiy/spark,dhruve/spark,adrian-ionescu/apache-spark,icexelloss/spark,szhem/spark,icexelloss/spark,kevinyu98/spark,sahilTakiar/spark,aray/spark,map222/spark,ddna1021/spark,janewangfb/spark,janewangfb/spark,maropu/spark,rednaxelafx/apache-spark,ibm-research-ireland/sparkoscope,Panos-Bletsos/spark-cost-model-optimizer,bOOm-X/spark,zuotingbing/spark,vinodkc/spark,skonto/spark,darionyaphet/spark,witgo/spark,xflin/spark,MLnick/spark,apache/spark,zuotingbing/spark,1haodian/spark,shaneknapp/spark,shubhamchopra/spark,LantaoJin/spark,someorz/spark,zzcclp/spark,milliman/spark,sachintyagi22/spark,vinodkc/spark,mzl9039/spark,jkbradley/spark,MLnick/spark,caneGuy/spark,markhamstra/spark,rednaxelafx/apache-spark,shaneknapp/spark,aray/spark,shubhamchopra/spark