[SPARKR][MINOR] Fix windowPartitionBy example
[SPARKR][MINOR] Fix windowPartitionBy example

## What changes were proposed in this pull request?

The usage in the original example is incorrect. This PR fixes it.

## How was this patch tested?

Manual test.

Author: Junyang Qian <junyangq@databricks.com>

Closes #14903 from junyangq/SPARKR-FixWindowPartitionByDoc.

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