/
PackagekableExtraFebruary202021TypePackageTitleConstructComplexTablewi PackagekableExtraFebruary202021TypePackageTitleConstructComplexTablewi

PackagekableExtraFebruary202021TypePackageTitleConstructComplexTablewi - PDF document

elizabeth
elizabeth . @elizabeth
Follow
351 views
Uploaded On 2021-10-11

PackagekableExtraFebruary202021TypePackageTitleConstructComplexTablewi - PPT Presentation

2RtopicsdocumentedStphaneLaurentctbRobShepherdctbYoniSidictbBrianSalzerctbGeorgeGuictbYeliangFanctbDuncanMurdochctbBillEvansctbMaintainerHaoZhuxhaozxhu23x3gmxailxcom0RepositoryCRANDatePublication2021 ID: 900582

kable null latex false null kable false latex spec html true notrun font pdf width header input row table

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "PackagekableExtraFebruary202021TypePacka..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

1 Package`kableExtra'February20,2021TypePa
Package`kableExtra'February20,2021TypePackageTitleConstructComplexTablewithkableandPipeSyntaxVersion1.3.4DescriptionBuildcomplexHTMLorLaTeXtablesusingkable()fromknitrandthepipingsyntaxfrommagrittr.Functionkable()isalightweighttablegeneratorcomingfromknitr.ThispackagesimpliesthewaytomanipulatetheHTMLorLaTeXcodesgeneratedbykable()andallowsuserstoconstructcomplextablesandcustomizestylesusingareadablesyntax.LicenseMIT+leLICENSELazyDataTRUEURLhttp://haozhu233.github.io/kableExtra/,https://github.com/haozhu233/kableExtraBugReportshttps://github.com/haozhu233/kableExtra/issuesDependsR�(=3.1.0)Importsknitr�(=1.16),magrittr,stringr�(=1.0),xml2�(=1.1.1),rvest,rmarkdown�(=1.6.0),scales,viridisLite,stats,grDevices,htmltools,rstudioapi,glue,tools,webshot,digest,graphics,svgliteSuggeststestthat,magick,formattable,sparklineVignetteBuilderknitrEncodingUTF-8RoxygenNote7.1.1NeedsCompilationnoAuthorHaoZhu[aut,cre](&#xhttp;&#xs://;&#xorci; .or;᠀g/0000-0002-3386-6076),ThomasTravison[ctb],TimothyTsai[ctb],WillBeasley[ctb],YihuiXie[ctb],GuangChuangYu[ctb],1 2Rtopicsdocumented:StéphaneLau

2 rent[ctb],RobShepherd[ctb],YoniSidi[ctb]
rent[ctb],RobShepherd[ctb],YoniSidi[ctb],BrianSalzer[ctb],GeorgeGui[ctb],YeliangFan[ctb],DuncanMurdoch[ctb],BillEvans[ctb]MaintainerHaoZhu&#xhaoz;&#xhu23;@gm; il.; om0;RepositoryCRANDate/Publication2021-02-2005:50:07UTCRtopicsdocumented:kableExtra-package.....................................3add_footnote........................................4add_header_above.....................................5add_indent..........................................7as_image..........................................7auto_index..........................................8cell_spec..........................................9collapse_rows........................................11column_spec........................................12footnote...........................................14footnote_marker_number..................................16graphics_helpers......................................17group_rows.........................................18header_separate.......................................20html_dependency_bsTable.................................21html_dependency_kePrint.................................21html_dependency_lightable.................................21kableExtra_latex_packages................

3 .................22kable_as_image.......
.................22kable_as_image.......................................22kable_as_xml........................................23kable_classic........................................23kable_styling........................................24kbl..............................................27landscape..........................................29linebreak..........................................30listify_args.........................................30magic_mirror........................................31make_inline_plot......................................32remove_column.......................................32rmd_format.........................................33row_spec..........................................33save_kable..........................................35scroll_box..........................................36 kableExtra-package3spec_angle..........................................37spec_boxplot........................................37spec_color..........................................39spec_font_size........................................40spec_hist..........................................40spec_image.........................................41spec_plot........................................

4 ..42spec_pointrange.....................
..42spec_pointrange.......................................44spec_popover........................................45spec_tooltip.........................................46usepackage_latex......................................46xml_as_kable........................................47xtable2kable.........................................47Index48 kableExtra-packagekableExtra DescriptionWhenwearetalkingabouttablegeneratorsinR,knitr'skable()functionwinslotsofavorbyitsultimatesimplicity.Unlikethosepowerfultablerenderingenginessuchasxtable,thephilosophybehindknitr::kable()istomakeiteasyforprogrammerstouse.Justasitclaimedinitsfunctiondescription,"thisisaverysimpletablegenerator.Itissimplebydesign.ItisnotintendedtoreplaceanyotherRpackagesformakingtables.-Yihui".However,theultimatesimplicityofkable()alsobroughttroublestosomeofus,especiallyfornewRusers,whomaynothavealotofexperienceongeneratingtablesinR.Itisnotraretoseepeopleincludingexperiencedusersaskingquestionslikehowtocenter/left-alignatableonStackOverow.Also,formepersonally,IfoundmyselfrepeatedlyparsingCSSintokable()forsomeverysimplefeatureslikestripedlines.ForLaTeX,it'sevenworsesinceI'malmostStackOverowdependentforLaTeX...That'swhythispackagekableE

5 xtrawascreated.IhopewithkableExtra,youca
xtrawascreated.IhopewithkableExtra,youcan•Usedefaultbasekable()(Oragoodalternativeformarkdowntablesispander::pander())forallsimpletables•Usekable()withkableExtratogenerate90%ofcomplex/advancedtablesineitherHTMLorLaTeX•OnlyhavetomesswithrawHTML/LaTeXinthelast10%caseswherekableExtracannotsolvetheproblemForafullpackagedocumentation,pleasevisitthepackagedocumentationsiteformoreinformation 4add_footnoteFeaturesPipablesyntax:kableExtraisNOTatablegeneratingpackage.Itisapackagethatcan"addfea-tures"toakableoutputusingasyntaxthateveryuseRloves-thepipe.Weseesimilarapproachestodealwithplotsinpackageslikeggvisandplotly.Thereisnoreasonwhywecannotuseitwithtables.UniedfunctionsforbothHTMLandPDF:MostfunctionalitiesinkableExtracanworkinbothHTMLandPDF.Infact,aslongasyouspeciesformatinkable(whichcanbesetgloballythroughoptionknitr.table.format),functionsinthispackagewillpicktherightwaytomanipulatethetablebethemselves.Asaresult,ifuserswanttoleftalignthetable,kable_styling(kable(...),position="left")willworkinbothHTMLandPDF.NoteIfyoufoundafeatureonthedocumentationsitethatisnotavailableintheversionofkableExtrayouareusing,trytoinstallthepre-releaseversionfromgithub.Youcandosobyrunningdevtools::install_g

6 ithub("haozhu233/kableExtra").Also,notet
ithub("haozhu233/kableExtra").Also,notethatThispackagecanloadrequiredLaTeXpackageautomaticallyinvanillarmarkdown.Forcustomizedrmarkdowntemplates,itisrecommendedtoloadrelatedLaTeXpackagesmanually. add_footnoteAddfootnote DescriptionAddfootnotetoyourfavoritekableoutput.Usageadd_footnote(input,label=NULL,notation="alphabet",threeparttable=FALSE,escape=TRUE)ArgumentsinputThedirectoutputofyourkablefunctionoryourlastkableExtrafunction.labelAvectoroffootnotesyouwanttoadd.Youdon'tneedtoaddnotationsinyournotes.notationYoucanselecttheformatofyourfootnotenotationfromnumber,alphabet,symbolandnone.threeparttableBooleanvalueindicatingifathreeparttableschemeshouldbeused.escapeLogicalvaluecontrollingifthelabelneedstobeescaped.DefaultisTRUE. add_header_above5Examples##Notrun:xknitr::kable(head(mtcars),"html")add_footnote(x,c("footnote1","footnote2"),notation="symbol")##End(Notrun) add_header_aboveAddaheaderrowontopofcurrentheader DescriptionTableswithmultiplerowsofheaderrowsareextremelyusefultodemonstrategroupeddata.Thisfunctiontakestheoutputofakable()functionandaddsanheaderrowontopofit.Usageadd_header_above(kable_input,header=NULL,bold=FALSE,italic=FALSE,monospace=FALSE,underline=FALSE,strikeout=FALSE,align="c",color

7 =NULL,background=NULL,font_size=NULL,ang
=NULL,background=NULL,font_size=NULL,angle=NULL,escape=TRUE,line=TRUE,line_sep=3,extra_css=NULL,include_empty=FALSE,border_left=FALSE,border_right=FALSE)Argumentskable_inputOutputofknitr::kable()withformatspeciedheaderA(named)charactervectorwithcolspanasvalues.Forexample,c(""=1,"title"=2)canbeusedtocreateanewheaderrowfora3-columntablewith"title"spanningacrosscolumn2and3.Forconvenience,whencolspanequalsto1,userscandropthe=1part.Asaresult,c("","title"=2)isthe 6add_header_abovesameasc(""=1,"title"=2).Alternatively,adataframewithtwocolumnscanbeprovided:Therstcolumnshouldcontaintheheadernames(charactervector)andthesecondcolumnshouldcontainthecolspan(numericvector).Thisinputcanbeusedifthereareproblemswithunicodecharactersintheheaders.boldAT/Fvaluetocontrolwhetherthetextshouldbebolded.italicAT/Fvaluetocontrolwhetherthetextshouldtobeemphasized.monospaceAT/Fvaluetocontrolwhetherthetextoftheselectedcolumnneedtobemonospaced(verbatim)underlineAT/FvaluetocontrolwhetherthetextoftheselectedrowneedtobeunderlinedstrikeoutAT/Fvaluetocontrolwhetherthetextoftheselectedrowneedtobestrickedout.alignAcharacterstringforcellalignment.ForHTML,possiblevaluescouldbel,c,rplusleft,center,right,justify,initialandinheritwhile

8 forLaTeX,youcanonlychoosefroml,c&r.color
forLaTeX,youcanonlychoosefroml,c&r.colorAcharacterstring/vectorfortextcolor.Herepleasepayattentiontothediffer-encesincolorcodesbetweenHTMLandLaTeX.backgroundAcharacterstring/vectorforbackgroundcolor.HerepleasepayattentiontothedifferencesincolorcodesbetweenHTMLandLaTeX.AlsonotethatinHTML,backgrounddenedincell_specwon'tcoverthewholecell.font_sizeAnumericinput/vectorforfontsize.ForHTML,youcanalsouseoptionsincludingxx-small,x-small,small,medium,large,x-large,xx-large,smaller,larger,initialandinherit.angle0-360,degreethatthetextwillrotate.escapeAT/Fvalueshowingwhetherspecialcharactersshouldbeescaped.lineAT/Fvaluetocontrolwhetheralinewillappearunderneaththeheaderline_sepAnumericvalueindicatinghowmuchthemidlinesshouldbeseparatedbyspace.Defaultis3.extra_cssAnHTMLonlyoption.CSSdenedherewillbesendtothetdcell.include_emptyWhetheremptycellsinHTMLshouldalsobestyled.DefaultisFALSE.border_leftT/Foptionforborderontheleftsideinlatex.border_rightT/Foptionforborderontherightsideinlatex.Examples##Notrun:xknitr::kable(head(mtcars),"html")#Addarowofheaderwith3columnsonthetopofthetable.Thecolumn#spanforthe2ndand3rdoneare5&6.add_header_above(x,c("","Group1"=5,"Group2"=6))##End(Notrun) add_indent7 add_indentAddindenta

9 tionstorowheaders DescriptionAddindentat
tionstorowheaders DescriptionAddindentationstorowheadersUsageadd_indent(kable_input,positions,level_of_indent=1,all_cols=FALSE)Argumentskable_inputOutputofknitr::kable()withformatspeciedpositionsAvectorofnumericrownumbersfortherowsthatneedtobeindented.level_of_indentanumericvaluefortheindentlevel.Defaultis1.all_colsT/FwhethertoapplyindentationtoallcolumnsExamples##Notrun:xknitr::kable(head(mtcars),"html")#Addindentationstothe2nd&4throwadd_indent(x,c(2,4),level_of_indent=1)##End(Notrun) as_imageRenderthetableasanformat-independentimageanduseitinrmark-down DescriptionThisfunctiongeneratesatemporarypngleusingsave_kableandthentrytoputitinanrmark-downdocumentusingknitr::include_graphics.Usageas_image(x,width=NULL,height=NULL,file=NULL,...) 8auto_indexArgumentsxkableinput.EitherHTMLorLaTeXwidthImagewidthininches.(1inch=2.54cm)heightImageheightininches.(1inch=2.54cm)fileBydefault,as_imagesavestoantemple,whichworksfornormalrmarkdown.Howeverifyouareusingthingslikexaringan,whichcan'tbeastandalonehtml,youcanspecifythislebethepathyouneed,eg."img/something.png"...Additionalargumentspassedtosave_kable.Examples##Notrun:library(kableExtra)kable(mtcars,"latex",booktabs=T)�%%kable_styling(latex_o

10 ptions=c("striped","scale_down"))�
ptions=c("striped","scale_down"))�%%row_spec(1,color="red")�%%as_image()##End(Notrun) auto_indexAutomaticallyguringoutthegroup_rowindex DescriptionThishelperfunctionallowsuserstobuildthegroup_rowindexmorequicklyandusegroup_rowsinawaythatissimilarwithcollapse_rows.Usageauto_index(x)ArgumentsxTheindexcolumn.Avector.Forexample`c("a","a","b","b","b")“ cell_spec9 cell_specSpecifyCell/Textformat DescriptionSpecifyCellformatbeforeitgetsintokableUsagecell_spec(x,format,bold=FALSE,italic=FALSE,monospace=FALSE,underline=FALSE,strikeout=FALSE,color=NULL,background=NULL,align=NULL,font_size=NULL,angle=NULL,tooltip=NULL,popover=NULL,link=NULL,new_tab=FALSE,extra_css=NULL,escape=TRUE,background_as_tile=TRUE,latex_background_in_cell=TRUE)text_spec(x,format,bold=FALSE,italic=FALSE,monospace=FALSE,underline=FALSE,strikeout=FALSE,color=NULL,background=NULL,align=NULL,font_size=NULL,angle=NULL,tooltip=NULL,popover=NULL, 10cell_speclink=NULL,new_tab=FALSE,extra_css=NULL,escape=TRUE,background_as_tile=TRUE,latex_background_in_cell=FALSE)ArgumentsxThingstobeformated.Itcouldbeavectorofnumbersorstrings.formatEither"html"or"latex".Itcanalsobesetthroughoption(knitr.table.format),sameasknitr::kable().bold

11 T/Fforfontbold.italicT/Fforfontitalic.mo
T/Fforfontbold.italicT/Fforfontitalic.monospaceT/Fforfontmonospaced(verbatim)underlineAT/FvaluetocontrolwhetherthetextoftheselectedrowneedtobeunderlinedstrikeoutAT/Fvaluetocontrolwhetherthetextoftheselectedrowneedtobestrickedout.colorAcharacterstringfortextcolor.HerepleasepayattentiontothedifferencesincolorcodesbetweenHTMLandLaTeX.backgroundAcharacterstringforbackgroundcolor.Herepleasepayattentiontothedif-ferencesincolorcodesbetweenHTMLandLaTeX.AlsonotethatinHTML,backgrounddenedincell_specwon'tcoverthewholecell.alignAcharacterstringforcellalignment.ForHTML,possiblevaluescouldbel,c,rplusleft,center,right,justify,initialandinheritwhileforLaTeX,youcanonlychoosefroml,c&r.font_sizeAnumericinputforfontsize.ForHTML,youcanalsouseoptionsinclud-ingxx-small,x-small,small,medium,large,x-large,xx-large,smaller,larger,initialandinherit.angle0-360,degreethatthetextwillrotate.Canbeavector.tooltipAvectorofstringstobedisplayedastooltip.Obviously,thisfeatureisonlyavailableinHTML.Readthepackagevignettetoseehowtousebootstraptooltipcsstoimprovetheloadingspeedandlook.popoverSimilarwithtooltipbutcanholdmorecontents.Thebestwaytobuildapopoveristhroughspec_popover().Ifyouonlyprovideatextstring,itwillbeusedascontent.Notethat

12 Youhavetoenablethisbootstrapmodulemanual
Youhavetoenablethisbootstrapmodulemanually.Readthepackagevignettetoseehow.linkAvectorofstringsforurllinks.Canbeusedtogetherwithtooltipandpopover.new_tabT/Fforwhethertoopenupthenewlinkinnewtab.extra_cssExtracsstexttobepassedintothecellescapeT/Fvalueshowingwhetherspecialcharactersshouldbeescaped. collapse_rows11background_as_tileT/FvalueindicatingifyouwanttohaveroundcorneredtileasbackgroundinHTML.latex_background_in_cellT/Fvalue.ItonlytakeseffectinLaTeXwhenbackgroundprovided,DefaultvalueisTRUE.Ifit'sTRUE,thebackgroundonlyworksinatablecell.Ifit'sFALSE,itworksoutsideofatableenvironment. collapse_rowsCollapserepeatedrowstomultirowcell DescriptionCollapsesamevaluesincolumnsintomultirowcells.Thisfeaturedoessimilarthingswithgroup_rows.However,unlikegroup_rows,itanalyzesexistingcolumns,ndsoutrowsthatcanbegroupedto-gether,andmakethemmultirowcells.Notethatifyouwanttousecolumn_spectospecifycolumnstyles,youshouldusecolumn_specbeforecollapse_rows.Usagecollapse_rows(kable_input,columns=NULL,valign=c("middle","top","bottom"),latex_hline=c("full","major","none","custom","linespace"),row_group_label_position=c("identity","stack"),custom_latex_hline=NULL,row_group_label_fonts=NULL,headers_to_remove=NULL,target=NULL,

13 col_names=TRUE,longtable_clean_cut=TRUE)
col_names=TRUE,longtable_clean_cut=TRUE)Argumentskable_inputOutputofknitr::kable()withformatspeciedcolumnsAnumericvalueorvectorindicatinginwhichcolumn(s)rowsneedtobecol-lapsed.valignSelectfrom"top","middle"(default),"bottom".Thereasonwhy"top"isnotdefaultisthatthemultirowpackageonCRANwin-builderisnotuptodate.latex_hlineOptioncontrollingthebehaviorofaddinghlinestotable.Choosefromfull,major,none,customandlinespace.row_group_label_positionOptioncontrollingpositionsofrowgrouplabels.Choosefromidentity,stack. 12column_speccustom_latex_hlineNumericcolumnpositionswhosecollapsedrowswillbeseparatedbyhlines.row_group_label_fontsAlistofargumentsthatcanbesuppliedtogroup_rowsfunctiontoformattherowgrouplabelwhenrow_group_label_positionisstackheaders_to_removeNumericcolumnpositionswhereheadersshouldberemovedwhentheyarestacked.targetIfmultiplecolumnsareselectedtodocollapsingandatargetcolumnisspec-ied,thistargetcolumnwillbeusedtocollapseothercolumnsbasedonthegroupsofthistargetcolumn.col_namesT/F.ALaTeXspecicoption.Ifyousetcol.namesbeNULLinyourkablecall,youneedtosetthisoptionfalsetoleteverythingworkproperly.longtable_clean_cutT/FwithdefaultT.Multirowcellsometimesaredisplayedincorrectlyaroundpagebreak.Thisopti

14 onforcesgroupstocutbeforetheendofapage.I
onforcesgroupstocutbeforetheendofapage.Ifyouhaveagroupthatislongerthan1page,youneedtoturnoffthisoption.Examples##Notrun:dtdata.frame(a=c(1,1,2,2),b=c("a","a","a","b"))xknitr::kable(dt,"html")collapse_rows(x)##End(Notrun) column_specSpecifythelookoftheselectedcolumn DescriptionThisfunctionallowsuserstoselectacolumnandthenspecifyitslook.Usagecolumn_spec(kable_input,column,width=NULL,bold=FALSE,italic=FALSE,monospace=FALSE,underline=FALSE,strikeout=FALSE,color=NULL, column_spec13background=NULL,border_left=FALSE,border_right=FALSE,width_min=NULL,width_max=NULL,extra_css=NULL,include_thead=FALSE,latex_column_spec=NULL,latex_valign="p",link=NULL,new_tab=TRUE,tooltip=NULL,popover=NULL,image=NULL)Argumentskable_inputOutputofknitr::kable()withformatspeciedcolumnAnumericvalueorvectorindicatingwhichcolumn(s)tobeselected.widthAcharacterstringtellingHTML&LaTeXhowwidethecolumnneedstobe,e.g."10cm","3in"or"30em".boldT/Fvalueorvectortocontrolwhetherthetextoftheselectedcolumnneedtobebolded.italicT/Fvalueorvectortocontrolwhetherthetextoftheselectedcolumnneedtobeemphasized.monospaceT/Fvalueorvectortocontrolwhetherthetextoftheselectedcolumnneedtobemonospaced(verbatim)underlineT/Fvalueorvectortocontrolwhetherthetextof

15 theselectedrowneedtobeunderlinedstrikeou
theselectedrowneedtobeunderlinedstrikeoutT/Fvalueorvectortocontrolwhetherthetextoftheselectedrowneedtobestrikedout.colorAcharacterstringorvectorforcolumntextcolor.HerepleasepayattentiontothedifferencesincolorcodesbetweenHTMLandLaTeX.backgroundAcharacterstringorvectorforcolumnbackgroundcolor.Herepleasepayat-tentiontothedifferencesincolorcodesbetweenHTMLandLaTeX.border_leftAlogicalvariableindicatingwhetherthereshouldbeaborderlineontheleftoftheselectedcolumn.InHTML,youcanalsopassinacharacterstringfortheCSSoftheborderlineborder_rightAlogicalvariableindicatingwhetherthereshouldbeaborderlineontherightoftheselectedcolumn.InHTML,youcanalsopassinacharacterstringfortheCSSoftheborderlinewidth_minOnlyforHTMLtable.Normalcolumnwidthwillautomaticallycollapsewhenthewindowcannotholdenoughcontents.Withthiswidth_min,youcansetupacolumnwithawidththatwon'tcollapseevenwhenthewindowisnotwideenough. 14footnotewidth_maxOnlyforHTMLtable.width_maxdenesthemaximumwidthoftablecolumns.extra_cssAvectorofextracsstexttobepassedintothecellsofthecolumn.include_theadT/F.AHTMLonlyfeaturetocontollwhethertheheaderrowwillbemanipu-lated.DefaultisFALSE.latex_column_specOnlyforLaTeXtables.Codetoreplacethecolumnspecication.IfnotNULL,willo

16 verrideallotherarguments.latex_valignver
verrideallotherarguments.latex_valignverticalalignment.Onlyworkswhenyouspeciedcolumnwidth.Chooseamongp,m,b.linkAvectorofstringsforurllinks.new_tabT/FforwhethertoopenupthenewlinkinnewtabtooltipAvectorofstringstobedisplayedastooltip.Obviously,thisfeatureisonlyavailableinHTML.Readthepackagevignettetoseehowtousebootstraptooltipcsstoimprovetheloadingspeedandlook.popoverSimilarwithtooltipbutcanholdmorecontents.Thebestwaytobuildapopoveristhroughspec_popover().Ifyouonlyprovideatextstring,itwillbeusedascontent.NotethatYouhavetoenablethisbootstrapmodulemanually.Readthepackagevignettetoseehow.imageVectorofimagepaths.DetailsUselatex_column_specinaLaTeXtabletochangeorcustomizethecolumnspecication.Be-causeofthewayitishandledinternally,anybackslashesmustbeescaped.Examples##Notrun:xknitr::kable(head(mtcars),"html")column_spec(x,1:2,width="20em",bold=TRUE,italic=TRUE)xknitr::kable(head(mtcars),"latex",booktabs=TRUE)column_spec(x,1,latex_column_spec=&#x--50;�"{\\\\color{red}}c")##End(Notrun) footnoteAddfootnote(new) Descriptionfootnoteprovidesamoreexiblewaytoaddfootnote.Youcanaddmutiplesetsoffootnoteusingdifferenynotationsystem.Itisalsopossibletospecifyfootnotesectionheaderonebyoneandprintfootnotesas

17 achunkoftexts. footnote15Usagefootnote(k
achunkoftexts. footnote15Usagefootnote(kable_input,general=NULL,number=NULL,alphabet=NULL,symbol=NULL,footnote_order=c("general","number","alphabet","symbol"),footnote_as_chunk=FALSE,escape=TRUE,threeparttable=FALSE,fixed_small_size=FALSE,general_title="Note:",number_title="",alphabet_title="",symbol_title="",title_format="italic",symbol_manual=NULL)Argumentskable_inputHTMLorLaTeXtablegeneratedbyknitr::kablegeneralTextforgeneralfootnotecomments.Footnotesinthissectionwon'tbelabeledwithanynotationsnumberAvectoroffootnotetexts.Footnotesherewillbenumbered.ThereisnouppercapforthenumberoffootnotesherealphabetAvectoroffootnotetexts,Footnotesherewillbelabeledwithabc.Thevectorhereshouldnothavemorethan26elements.symbolAvectoroffootnotetexts,Footnotesherewillbelabeledwithspecialsymbols.Thevectorhereshouldnothavemorethan20elements.footnote_orderTheorderofhowtoarrangegeneral,number,alphabetandsymbol.footnote_as_chunkT/Fvalue.DefaultisFALSE.Itcontrolswhetherthefootnotesshouldbeprintedinachunk(withoutlinebreak).escapeT/Fvalue.ItcontrolswhetherthecontentsandtitlesshouldbeescapedagainstHTMLorLaTeX.DefaultisTRUE.threeparttableT/FvalueforwhethertouseLaTeXpackagethreeparttable.Threeparttablewillforcethewidthofcaptionandf

18 ootnotesbethewidthoftheoriginaltable.It'
ootnotesbethewidthoftheoriginaltable.It'susefulwhenyouhavelongparagraphoffootnotes.fixed_small_sizeT/FWhenyouwanttokeepthefootnotesmallafterspecifyinglargefontsizewiththekable_styling()(e.g.idealfontforheadersandtablecontentwithsmallfontinfootnotes).general_titleSectionheaderforgeneralfootnotes.Defaultis"Note:". 16footnote_marker_numbernumber_titleSectionheaderfornumberfootnotes.Defaultis"".alphabet_titleSectionheaderforalphabetfootnotes.Defaultis"".symbol_titleSectionheaderforsymbolfootnotes.Defaultis"".title_formatChoosefrom"italic"(default),"bold"and"underline".Multipleoptionsarepos-sible.symbol_manualUsercanmanuallysupplyavectorofeitherhtmlorlatexsymbols.Forexample,symbol_manual=c('*','\\\\dag','\\\\ddag').`Examples##Notrun:dtmtcars[1:5,1:5]footnote(knitr::kable(dt,"html"),alphabet=c("Notea","Noteb"))##End(Notrun) footnote_marker_numberFootnotemarker DescriptionPutfootnotemarkinsuperscriptionintable.Unlessyouareusingitinthecaptionofkable,youwillneedtoputescape=Finkable(similarwithcell_spec).Again,similarwithcell_spec,theformatoptionherecanreaddefaultvaluefromglobaloptionknitr.table.format.Usagefootnote_marker_number(x,format,double_escape=FALSE)footnote_marker_alphabet(x,format,double_escape=FALSE

19 )footnote_marker_symbol(x,format,double_
)footnote_marker_symbol(x,format,double_escape=FALSE)Argumentsxanumber.Forexample,forfootnote_marker_alphabet(2)willreturn"b"inHTML.formatEitherhtmlorlatex.Allfunctionsherecanreaddefaultvaluefromglobaloptionknitr.table.format.double_escapeT/FifoutputisinLaTeX,whetheritshouldbedoubleescaped.Ifyouareusingfootnote_markeringroup_rowslabelingroworadd_header_above,youneedtosetthistobeTRUE`. graphics_helpers17Examples##Notrun:dtmtcars[1:5,1:5]colnames(dt)[1]paste0("mpg",footnote_marker_alphabet(2,"html"))rownames(dt)[2]paste0(rownames(dt)[2],footnote_marker_alphabet(1,"html"))footnote(knitr::kable(dt,"html"),alphabet=c("Notea","Noteb"))##End(Notrun) graphics_helpersHelperfunctionstousevariousgraphicsdevices DescriptionThesehelperfunctionsgeneralizetheuseofstrings(e.g.,"svg","pdf")orgraphicdevicefunctions(e.g.,grDevices::svg,grDevices::pdf)forin-tableplots.Usagegraphics_dev(filename,width,height,res,...,dev)is_svg(dev)dev_chr(dev)ArgumentsfilenamePassedthroughtothegraphicsdevice.width,heightPlotdimensionsinpixels.resTheresolutionoftheplot;defaultis300....extraparameterspassingtothegraphics-devicefunction.devCharacter(e.g.,"svg","pdf")orfunction(e.g.,grDevices::svg,grDevices::pdf).Details•graphi

20 cs_devgeneralizestheuseof'res'andplotdim
cs_devgeneralizestheuseof'res'andplotdimensionsacrossgraphicdevices.Raster-baseddevices(e.g.,'png','jpeg','tiff','bmp')tendtouse'res'andthewidth/heightunitsdefaulttopixels.Allotherdevices(e.g.,'pdf','svg')tendtouseinchesasthedefaultunitsforwidth/height,anderrorwhen'res'isprovided.Thecurrentheuristicisthelookforthe'res'argumentinthefunction'sformals;ifthatispresent,thenitisassumedthatthedefaultunitsareinpixels,so'width','height',and'res'arepassedthroughunmodied.If'res'isnotpresent,then'width'and'height'areconvertedfrompixelstoinches,and'res'isnotpassedtothefunctionAnotherpurposeofthisfunctionistogeneralizethedifferentgraphicfunctions'useof'le='versus'lename='. 18group_rows•is_svgdeterminesiftheplotdeviceissvg-like,typicallyoneof"svg",grDevices::svg,orsvglite::svglite`•dev_chrdeterminesthelenameextensionfortheapplicableplotfunction;whendevisastring,thenitisreturnedunchanged;whendevisafunction,theformalsofthefunctionarecheckedforclues(i.e.,defaultvalueofale=argument)Value'graphics_dev':nothing,aplotdeviceisopened'is_svg':logicaldev_chr:characterFunctions•graphics_dev:Generalize'res'and'lenameacrossdevfunctions•is_svg:Determineifplotdeviceissvg-like•dev_chr

21 :Determinelenameextension group_rows
:Determinelenameextension group_rowsPutafewrowsofatableintoonecategory DescriptionGroupafewrowsinatabletogetherunderalabel.Usagegroup_rows(kable_input,group_label=NULL,start_row=NULL,end_row=NULL,index=NULL,label_row_css="border-bottom:1pxsolid;",latex_gap_space="0.3em",escape=TRUE,latex_align="l",latex_wrap_text=FALSE,colnum=NULL,bold=TRUE,italic=FALSE,hline_before=FALSE,hline_after=FALSE,extra_latex_after=NULL,indent=TRUE,monospace=FALSE, group_rows19underline=FALSE,strikeout=FALSE,color=NULL,background=NULL)pack_rows(kable_input,group_label=NULL,start_row=NULL,end_row=NULL,index=NULL,label_row_css="border-bottom:1pxsolid;",latex_gap_space="0.3em",escape=TRUE,latex_align="l",latex_wrap_text=FALSE,colnum=NULL,bold=TRUE,italic=FALSE,hline_before=FALSE,hline_after=FALSE,extra_latex_after=NULL,indent=TRUE,monospace=FALSE,underline=FALSE,strikeout=FALSE,color=NULL,background=NULL)Argumentskable_inputOutputofknitr::kable()withformatspeciedgroup_labelAcharacterstringforthenameofthegroupstart_rowAnumericvaluethattellsthefunctioninwhichrowthegroupstarts.Notethatthecountingexcludesheaderrowsandothergrouplabelingrowsend_rowAnumericvaluethattellsthefunctioninwhichrowthegroupends.indexAnamedvectorprovidi

22 ngtheindexforrobustrow-groupingtasks.Bas
ngtheindexforrobustrow-groupingtasks.Basically,youcanuseitinthesamewayasadd_header_above().label_row_cssAcharacterstringforanycustomizedcssusedforthelabelingrow.Bydefault,thelabelingrowwillhaveasolidblacklineunderneath.OnlyusefulforHTMLdocuments.latex_gap_spaceAcharactervaluetellingLaTeXhowlargethegapbetweenthepreviousrowandthegrouplabelingrow.OnlyusefulforLaTeXdocuments.escapeAT/Fvalueshowingwhetherspecialcharactersshouldbeescaped. 20header_separatelatex_alignAdjustjusticationofgroup_labelinlatexonly.Valueshouldbe"c"forcenteredonrow,"r"forrightjustication,or"l"forleftjustication.DefaultValueis"l"Ifusinghtml,thealignmentcanbesetbyusingthelabel_row_cssparameter.latex_wrap_textT/Fforwrappinglongtext.Defaultisoff.Wheneveritisturnedon,thetablewilltakeuptheentireline.It'srecommendedtousethiswithfull_widthinkable_styling.colnumAnumericthatdetermineshowmanycolumnsthetextshouldspan.Thedefaultsettingwillhavethetextspantheentirelength.boldAT/Fvaluetocontrolwhetherthetextshouldbebolded.italicAT/Fvaluetocontrolwhetherthetextshouldtobeemphasized.hline_beforeAT/Fvaluethataddesahorizontallinebeforethegroup_rowlabel.DefaultvalueisFalse.hline_afterAreplicateofhline.afterinxtable.Itaddesahlineaftertherowext

23 ra_latex_afterExtraLaTeXtexttobeaddedaft
ra_latex_afterExtraLaTeXtexttobeaddedaftertherow.indentAT/Fvaluetocontrolwhetherlistitemsareindented.monospaceT/Fvaluetocontrolwhetherthetextoftheselectedcolumnneedtobemonospaced(verbatim)underlineT/FvaluetocontrolwhetherthetextoftheselectedrowneedtobeunderlinedstrikeoutT/Fvaluetocontrolwhetherthetextoftheselectedrowneedtobestrikedout.colorAcharacterstringforcolumntextcolor.Herepleasepayattentiontothediffer-encesincolorcodesbetweenHTMLandLaTeX.backgroundAcharacterstringforcolumnbackgroundcolor.HerepleasepayattentiontothedifferencesincolorcodesbetweenHTMLandLaTeX.Examples##Notrun:xknitr::kable(head(mtcars),"html")#PutRow2toRow5intoaGroupandlabelitas"GroupA"pack_rows(x,"GroupA",2,5)##End(Notrun) header_separateSeparatetableheadersandaddadditionalheaderrowsbasedongrouping DescriptionWhenyoucreateasummarytableforeithermodelorbasicsummarystatsinR,youusuallyenduphavingcolumnnamesintheformof"a_mean","a_sd","b_mean"and"b_sd".Thisfunc-tionstreamlinestheprocessofrenamingthesecolumnnamesandaddingextraheaderrowsusingadd_header_above. html_dependency_bsTable21Usageheader_separate(kable_input,sep="[^[:alnum:]]+")Argumentskable_inputOutputofknitr::kable()withformatspeciedsepAregularexpressionseparatorbetweengrou

24 ps.Thedefaultvalueisaregularexpressionth
ps.Thedefaultvalueisaregularexpressionthatmatchesanysequenceofnon-alphanumericvalues. html_dependency_bsTableHTMLdependencyforTwitterbootstrap(tableonly) DescriptionHTMLdependencyforTwitterbootstrap(tableonly)Usagehtml_dependency_bsTable() html_dependency_kePrintHTMLdependencyforjsscripttoenablebootstraptooltipandpopupmessage DescriptionHTMLdependencyforjsscripttoenablebootstraptooltipandpopupmessageUsagehtml_dependency_kePrint() html_dependency_lightableHTMLdependencyforlightable DescriptionHTMLdependencyforlightableUsagehtml_dependency_lightable() 22kable_as_image kableExtra_latex_packagesLaTeXPackages DescriptionThisfunctionshowsallLaTeXpackagesthatissupposedtobeloadedforthispackageinarmark-downyamlformat.UsagekableExtra_latex_packages() kable_as_imageDeprecated DescriptiondeprecatedUsagekable_as_image(kable_input,filename=NULL,file_format="png",latex_header_includes=NULL,keep_pdf=FALSE,density=300,keep_tex=FALSE)Argumentskable_inputRawLaTeXcodetogenerateatable.Itdoesn'thavetocamefromkableorkableExtra.filenameCharacterString.Ifspecied,theimagewillbesavedunderthespecied(path&)name.Youdon'tneedtoputleformatlike".png"here.file_formatCharacterStringtospecifyimageformat,suchaspng,jpeg,gif,ti

25 ff,etc.Defaultispng.latex_header_include
ff,etc.Defaultispng.latex_header_includesAcharactervectorofextraLaTeXheaderstuff.Eachelementisarow.Youcanhavethingslikec("\\\\usepackage{threeparttable}","\\\\usepackage{icons}")Youcouldprobablyaddyourlanguagepackagehereifyouusenon-Englishtextinyourtable,suchas\\\\usepackage[magyar]{babel}. kable_as_xml23keep_pdfAT/Foptiontocontrolifthemid-waystandalonepdfshouldbekept.DefaultisFALSE.densityResolutiontoreadthePDFle.Defaultvalueis300,whichshouldbesufcientinmostcases.keep_texAT/Foptiontocontrolifthelatexlethatisinitiallycreatedshouldbekept.DefaultisFALSE. kable_as_xmlReadHTMLkableasXML DescriptionThisfunctionwillreadkableasaxmlleUsagekable_as_xml(x)ArgumentsxkableorkableExtraobject kable_classicAlternativeHTMLthemes DescriptionkableExtrausesthebuilt-inbootstrapthemesbydefaultinkable_styling().Alternatively,youcanuseacustomizedtablethemesforyourtable.Thislightabletablestylesheetcomeswiththreeformats,namelylightable-minimal,lightable-classic,lightable-materialandlightable-material-darkwithhoverandstripedoptions.Usagekable_classic(kable_input,lightable_options="basic",html_font="\"ArialNarrow\",\"SourceSansPro\",sans-serif",...)kable_classic_2(kable_input,lightable_options="basic",html_font=

26 "\"ArialNarrow\",\"SourceSansPro\",sans-
"\"ArialNarrow\",\"SourceSansPro\",sans-serif", 24kable_styling...)kable_minimal(kable_input,lightable_options="basic",html_font="\"TrebuchetMS\",verdana,sans-serif",...)kable_material(kable_input,lightable_options="basic",html_font="\"SourceSansPro\",helvetica,sans-serif",...)kable_material_dark(kable_input,lightable_options="basic",html_font="\"SourceSansPro\",helvetica,sans-serif",...)kable_paper(kable_input,lightable_options="basic",html_font="\"ArialNarrow\",arial,helvetica,sans-serif",...)Argumentskable_inputAHTMLkableobject.lightable_optionsOptionstocustomizelightable.Similarwithbootstrap_optionsinkable_styling.Choicesincludebasic,stripedandhover.html_fontAstringforHTMLcssfont.Forexample,html_font='"ArialNarrow",arial,helvetica,sans-serif'....Everythingelseyouneedtospecifyinkable_styling. kable_stylingHTMLtableattributes DescriptionThisfunctionprovidesacleanerapproachtomodifythestyleofHTMLtablesotherthanusingthetable.attroptioninknitr::kable().NotethatthosebootstrapoptionsrequiresTwitterbootstraptheme,whichisnotavaiableinsomecustomizedtemplatebeingloaded. kable_styling25Usagekable_styling(kable_input,bootstrap_options="basic",latex_options="basic",full_width=NULL,position="center",font_size=NUL

27 L,row_label_position="l",repeat_header_t
L,row_label_position="l",repeat_header_text="\\textit{(continued)}",repeat_header_method=c("append","replace"),repeat_header_continued=FALSE,stripe_color="gray!6",stripe_index=NULL,latex_table_env=NULL,protect_latex=TRUE,table.envir="table",fixed_thead=FALSE,htmltable_class=NULL,html_font=NULL,wraptable_width="0pt")Argumentskable_inputOutputofknitr::kable()withformatspeciedbootstrap_optionsAcharactervectorforbootstraptableoptions.Pleaseseepackagevignetteorvisitthew3schools'BootstrapPageformoreinformation.Possibleoptionsin-cludebasic,striped,bordered,hover,condensed,responsiveandnone.latex_optionsAcharactervectorforLaTeXtableoptions.Pleaseseepackagevignetteformoreinformation.Possibleoptionsincludebasic,striped,hold_position,HOLD_position,scale_down&repeat_header.stripedwilladdalterna-tiverowcolorstothetable.ItwillimportsLaTeXpackagexcolorifenabled.hold_positionwill"hold"theoatingtabletotheexactposition.ItisusefulwhentheLaTeXtableiscontainedinatableenvironmentafteryouspeciedcaptionsinkable().Itwillforcethetabletostayinthepositionwhereitwascreatedinthedocument.Astrongerversion:HOLD_positionrequiresthefloatpackageandspecies[H].scale_downisusefulforsuperwidetable.Itwillautomaticallyadjustth

28 etabletopagewidth.repeat_headerinonlymea
etabletopagewidth.repeat_headerinonlymean-ingfulinalongtableenvironment.Itwilllettheheaderrowrepeatoneverypageinthatlongtable.full_widthATRUEorFALSEvariablecontrollingwhethertheHTMLtableshouldhave100\thepreferableformatforfull_width.Ifnotspecied,aHTMLtablewillhavefullwidthbydefaultbutthisoptionwillbesettoFALSEforaLaTeXtablepositionAcharacterstringdetermininghowtopositionthetableonapage.Possiblevaluesincludeleft,center,right,float_leftandfloat_right.Please 26kable_stylingseethepackagedocsitefordemonstrations.ForaLaTeXtable,ifoat_*isselected,LaTeXpackagewrapfigwillbeimported.font_sizeAnumericinputfortablefontsizerow_label_positionAcharacterstringdeterminingthejusticationoftherowlabelsinatable.Pos-siblevaluesincluedlforleft,cforcenter,andrforright.Thedefaultvalueislforleftjustifcation.repeat_header_textLaTeXoption.Atextstringyouwanttoappendonorreplacethecaption.repeat_header_methodLaTeXoption,caneitherbeappend(default)orreplacerepeat_header_continuedT/Foratextstring.Whetherornottoputacontinuedmarkonthesecondpageoflongtable.Ifyouputintext,wewillusethistextasthe"continued"mark.stripe_colorLaTeXoptionallowinguserstopickadifferentcolorfortheirstriplines.ThisoptionisnotavailableinHTMLstripe_indexL

29 aTeXoptionallowinguserstocustomizewhichr
aTeXoptionallowinguserstocustomizewhichrowsshouldhavestripecolor.latex_table_envLaTeXoption.Acharacterstringtodenecustomizedtableenvironmentsuchastabuortabularx.Youshouldn'texpectallfeaturescouldbesupportedinself-denedenvironments.protect_latexIfTRUE,LaTeXcodeembeddedbetweendollarsignswillbeprotectedfromHTMLescaping.table.envirLaTeXoatingtableenvironment.kable_stylewillputaplainno-captiontableinatableenvironmentinordertocenterthetable.Youcanspecifythisoptiontothingsliketable*oroat*basedonyourneed.fixed_theadHTMLtableoptionsotableheaderrowisxedattop.ValuescanbeeitherT/Forlist(enabled=T/F,background="anycolor").htmltable_classOptionstousethein-houselightablethemes.Choicesincludelightable-minimal,lightable-classic,lightable-classic-2,lightable-material,lightable-stripedandlightable-hover.Ifyouhaveyourcustomizedstylesheetloadedwhichdenesyourowntableclass,youcanalsoloadithere.html_fontAstringforHTMLcssfont.Forexample,html_font='"ArialNarrow",arial,helvetica,sans-serif'.wraptable_widthWidthofthewraptableareaifyouspecify"oat_left/right"forlatextable.De-faultis"0pt"forautomateddeterminationbutyoumayspecifyitmanually.DetailsForLaTeX,ifyouuseotherthanEnglishenvironment•alltables

30 areconvertedto'UTF-8'.Ifyouuse,forexampl
areconvertedto'UTF-8'.Ifyouuse,forexample,HungariancharactersonaWin-dowsmachine,makesuretouseSys.setlocale("LC_ALL","Hungarian")toavoidunexpectedconversions. kbl27•protect_latex=TRUEhasnoeffect.ForHTML,•protect_latex=TRUEisforincludingcomplicatedmathinHTMLoutput.TheLaTeXmaynotincludedollarsignseveniftheyareescaped.Pandoc'srulesforrecognizingembeddedLaTeXareused.Examples##Notrun:x_htmlknitr::kable(head(mtcars),"html")kable_styling(x_html,"striped",position="left",font_size=7)x_latexknitr::kable(head(mtcars),"latex")kable_styling(x_latex,latex_options="striped",position="float_left")##End(Notrun) kblWrapperfunctionofknitr::kable Descriptionknitr'skablefunctionisthefoundationofthispackage.However,ithasmanylatex/htmlspecicargumentshiddenunderthegroundunlessyoucheckitssourcecode.Thiswrapperfunctioniscreatedtoprovidebetterdocumentation(andauto-completeyay)andatthesametime,solvetheautoformatsettinginabetterway.Usagekbl(x,format,digits=getOption("digits"),row.names=NA,col.names=NA,align,caption=NULL,label=NULL,format.args=list(),escape=TRUE,table.attr="",booktabs=FALSE,longtable=FALSE,valign="t",position="",centering=TRUE, 28kblvline=getOption("knitr.table.vline",if(booktabs)""else"|"),toprule=g

31 etOption("knitr.table.toprule",if(bookta
etOption("knitr.table.toprule",if(booktabs)"\\toprule"else"\\hline"),bottomrule=getOption("knitr.table.bottomrule",if(booktabs)"\\bottomrule"else"\\hline"),midrule=getOption("knitr.table.midrule",if(booktabs)"\\midrule"else"\\hline"),linesep=if(booktabs)c("","","","","\\addlinespace")else"\\hline",caption.short="",table.envir=if(!is.null(caption))"table",...)ArgumentsxForkable(),xisanRobject,whichistypicallyamatrixordataframe.Forkables(),alistwitheachelementbeingareturnedvaluefromkable().formatAcharacterstring.Possiblevaluesarelatex,html,pipe(Pandoc'spipetables),simple(Pandoc'ssimpletables),andrst.Thevalueofthisargumentwillbeautomaticallydeterminedifthefunctioniscalledwithinaknitrdocument.Theformatvaluecanalsobesetintheglobaloptionknitr.table.format.Ifformatisafunction,itmustreturnacharacterstring.digitsMaximumnumberofdigitsfornumericcolumns,passedtoround().Thiscanalsobeavectoroflengthncol(x),tosetthenumberofdigitsforindividualcolumns.row.namesLogical:whethertoincluderownames.Bydefault,rownamesareincludedifrownames(x)isneitherNULLnoridenticalto1:nrow(x).col.namesAcharactervectorofcolumnnamestobeusedinthetable.alignColumnalignment:acharactervectorconsistingof'l'(left),'c'(center)and/or'r'(right).Bydefa

32 ultorifalign=NULL,numericcolumnsareright
ultorifalign=NULL,numericcolumnsareright-aligned,andothercolumnsareleft-aligned.Iflength(align)==1L,thestringwillbeexpandedtoavectorofindividualletters,e.g.'clc'becomesc('c','l','c'),unlesstheoutputformatisLaTeX.captionThetablecaption.labelThetablereferencelabel.Bydefault,thelabelisobtainedfromknitr::opts_current$get('label').format.argsAlistofargumentstobepassedtoformat()toformattablevalues,e.g.list(big.mark=',').escapeBoolean;whethertoescapespecialcharacterswhenproducingHTMLorLaTeXtables.Whenescape=FALSE,youhavetomakesurethatspecialcharacterswillnottriggersyntaxerrorsinLaTeXorHTML.table.attrAcharacterstringforadditionHTMLtableattributes.ThisisconvenientifyousimplywanttoaddafewHTMLclassesorstyles.Forexample,youcanput'class="table"style="color:red"'.booktabsT/Fforwhethertoenablethebooktabsformatfortables.Ipersonallywouldrecommendyouturnthisonforeverylatextableexceptsomespecialcases. landscape29longtableT/Fforwhethertousethelongtableformat.Ifyouhaveatablethatwillspanovertwoormorepages,youwillhavetoturnthison.valignYouprobablywon'tneedtoadjustthislatexoptionveryoften.Ifyouarefamilarwithlatextables,thisistheoptionalpositionforthetabularenvironmentcon-trolingtheverticalpositionofthetablerelativetothebasel

33 ineofthesurroundingtext.Possiblechoicesa
ineofthesurroundingtext.Possiblechoicesareb,candt(default).positionThisisthe"real"orsayoatingpositionforthelatextableenvironment.Thekableonlyputstablesinatableenvironmentwhenacaptionisprovided.Thatisalsothereasonwhyyourtableswillbeoatingaroundifyouspecifycaptionsforyourtable.Possiblechoicesareh(here),t(top,default),b(bottom)andp(onadedicatedpage).centeringT(default)/F.Whethertocentertablesinthetableenvironment.vlineverticalseparator.Defaultisnothingforbooktabstablesbut"|"fornormalta-bles.topruletoprule.Defaultishlinefornormaltablebuttopruleforbooktabstables.bottomrulebottomrule.Defaultishlinefornormaltablebutbottomruleforbooktabstables.midrulemidrule.Defaultishlinefornormaltablebutmidruleforbooktabstables.linesepBydefault,inbooktabstables,kableinsertanextraspaceeveryverowsforcleardisplay.Ifyoudon'twantthisfeatureorifyouwanttodoitinadif-ferentpattern,youcanconsiderchangethisoption.Thedefaultisc(”,”,”,”,'\addlinespace').Also,ifyouarenotusingbooktabs,butyouwantacleanerdisplay,youcanchangethisto”.caption.shortAnotherlatexfeature.Shortcaptionsfortablestable.envirYouprobablydon'tneedtochangethisaswell.Thedefaultsettingistoputatableenvironmentoutsideoftabularifacaptionisp

34 rovided....Otherarguments(seeExamples).
rovided....Otherarguments(seeExamples). landscapePrintthetableonanisolatedlandscapepageinPDF DescriptionThisfunctionwillputthetableonansinglelandscapepage.It'susefulforwidetablesthatcann'tbeprintedonaportraitpage.Usagelandscape(kable_input,margin=NULL)Argumentskable_inputOutputofknitr::kable()withformatspeciedmarginCustomizablepagemarginforspecialneeds.Valuescanbe"1cm","1in"orsimilar. 30listify_argsExamples##Notrun:landscape(knitr::kable(head(mtcars),"latex"))##End(Notrun) linebreakMakelinebreakinLaTeXTablecells DescriptionThisfunctiongenerateLaTeXcodeofmakecellsothatuserscanhavelinebreaksintheirtableUsagelinebreak(x,align=c("l","c","r"),double_escape=F,linebreaker="\n")ArgumentsxAcharactervectoralignChoosefrom"l","c"or"r"double_escapeWhetherspecialcharactershouldbedoubleescaped.DefaultisFALSE.linebreakerSymbolforlinebreakstoreplace.Defaultis\\n. listify_argsConvertargumentsforasinglecallintoMap-ableargs DescriptionConvertargumentsforasinglecallintoMap-ableargsUsagelistify_args(...,lengths=NA,passthru=c("x","y"),notlen1vec=c("lim","xlim","ylim"),notlen1lst=c("minmax","min","max"),ignore=c("same_lim")) magic_mirror31Arguments...Arbitraryargumentstobepossiblyconvertedintolistsofarguments.lengthsAllo

35 wablelengthsofthearguments,typically1and
wablelengthsofthearguments,typically1andthelengthofthemainvari-able(e.g.,"x").If'NA'(default),itisnotenforced.passthruCharactervectorofvariablestopassthroughwithnoconversiontolistsofval-ues.Extranames(notprovidedin...)areignored.notlen1vecCharactervectorofvariablesthatareknowntobelengthover1forasingleplotcall,soitwillalwaysbelist-iedandextracaretoensureitisgroupedcorrectly.Extranames(notprovidedin...)areignored.notlen1lstCharactervectorofvariablesthatarelists,sotheinnerlistlengthisnotchecked/enforced.(Forexample,ifasingleplotcalltakesanargumentlist(a=1,b=2,d=3)andthemulti-datacallcreatesthreeplots,thenanaivematchmightthinkthattherstplotwouldgetlist(a=1),secondplotgetslist(b=2),etc.Addingthatlist-argumenttothis'notlen1lst'willensurethatthefulllistispassedcorrectly.)Extranames(notprovidedin...)areignored.ignoreCharactervectorofvariablestoignore,neverreturned.(Generallyonecancon-trolthisbynotaddingthevariableintherstplace,buthavingthishereallowssomesanitychecksand/orprogrammaticusage.)Valuelist,generallyalistofembeddedlists magic_mirrorMagicmirrorthatreturnskable'sattributes DescriptionMirrormirrortellme,howdoesthiskablelooklike?Usagemagic_mirror(kable_input)Argumentskable_inputTheoutputofkab

36 leExamplesmagic_mirror(knitr::kable(head
leExamplesmagic_mirror(knitr::kable(head(mtcars),"html")) 32remove_column make_inline_plotCombinele(orsvgtext)andparametersintoa'kableExtraInline-Plots'object DescriptionCombinele(orsvgtext)andparametersintoa'kableExtraInlinePlots'objectUsagemake_inline_plot(filename,file_ext,dev,width,height,res,del=TRUE)ArgumentsfilenamePassedthroughtothegraphicsdevice.file_extCharacter,somethinglike"png".devCharacter(e.g.,"svg","pdf")orfunction(e.g.,width,heightPlotdimensionsinpixels.resTheresolutionoftheplot;defaultis300.delIftheleissvg-like,thenthedefaultactionistoreadtheleintoanembeddedSVGobject;oncedone,theleisnolongerused.Thedefaultactionistodeletethisleearly,setthisto'FALSE'tokeepthele.Valuelistobject,withclass'kableExtraInlinePlots' remove_columnRemovecolumns DescriptionRemovecolumnsUsageremove_column(kable_input,columns)Argumentskable_inputOutputofknitr::kable()withformatspeciedcolumnsAnumericvalueorvectorindicatinginwhichcolumn(s)rowsneedtobere-moved rmd_format33Examples##Notrun:remove_column(kable(mtcars),1)##End(Notrun) rmd_formatRmarkdownFormat DescriptionIftheexportformatoftheRmarkdowndocumentexist,Usagermd_format() row_specSpecifythelookoftheselectedrow DescriptionThisf

37 unctionallowsuserstoselectarowandthenspe
unctionallowsuserstoselectarowandthenspecifyitslook.Itcanalsospecifytheformatoftheheaderrowwhenrow=0.Usagerow_spec(kable_input,row,bold=FALSE,italic=FALSE,monospace=FALSE,underline=FALSE,strikeout=FALSE,color=NULL,background=NULL,align=NULL,font_size=NULL,angle=NULL,extra_css=NULL,hline_after=FALSE,extra_latex_after=NULL) 34row_specArgumentskable_inputOutputofknitr::kable()withformatspeciedrowAnumericvalueorvectorindicatingwhichrow(s)tobeselected.Youdon'tneedtocountinheaderrowsorgrouplabelingrows.boldAT/Fvaluetocontrolwhetherthetextoftheselectedrowneedtobebolded.italicAT/Fvaluetocontrolwhetherthetextoftheselectedrowneedtobeempha-sized.monospaceAT/Fvaluetocontrolwhetherthetextoftheselectedrowneedtobemonospaced(verbatim)underlineAT/FvaluetocontrolwhetherthetextoftheselectedrowneedtobeunderlinedstrikeoutAT/Fvaluetocontrolwhetherthetextoftheselectedrowneedtobestrickedout.colorAcharacterstringforrowtextcolor.Forexample,"red"or"#BBBBBB".backgroundAcharacterstringforrowbackgroundcolor.HerepleasepayattentiontothedifferencesincolorcodesbetweenHTMLandLaTeX.alignAcharacterstringforcellalignment.ForHTML,possiblevaluescouldbel,c,rplusleft,center,right,justify,initialandinheritwhileforLaTeX,youcanonlychoosefrom

38 l,c&r.font_sizeAnumericinputforfontsize.
l,c&r.font_sizeAnumericinputforfontsize.ForHTML,youcanalsouseoptionsinclud-ingxx-small,x-small,small,medium,large,x-large,xx-large,smaller,larger,initialandinherit.angle0-360,degreethatthetextwillrotate.extra_cssExtracsstexttobepassedintothecellsoftherow.Notethatit'snotforthewholerow.hline_afterT/F.Areplicateofhline.afterinxtable.Itaddesahlineaftertherrowextra_latex_afterExtraLaTeXtexttobeaddedaftertherow.Similarwithadd.to.rowinxtableExamples##Notrun:xknitr::kable(head(mtcars),"html")row_spec(x,1:2,bold=TRUE,italic=TRUE)##End(Notrun) save_kable35 save_kableSavekabletoles DescriptionSavekabletolesUsagesave_kable(x,file,bs_theme="simplex",self_contained=TRUE,extra_dependencies=NULL,...,latex_header_includes=NULL,keep_tex=FALSE,density=300)ArgumentsxApieceofHTMLcodefortables,usuallygeneratedbykableandkableExtrafilesavetoles.IftheinputtableisinHTMLandtheoutputleendswith.png,.pdfand.jpeg,webshotwillbeusedtodotheconversion.bs_themeWhichBootstrapthemetouseself_containedWillthelesbeself-contained?extra_dependenciesAdditionalHTMLdependencies.Forexample,list(...Additionalvariablesbeingpassedtowebshot::webshot.ThisisforHTMLonly.latex_header_includesAcharactervectorofextraLaTeXheaderstuff.Each

39 elementisarow.Youcanhavethingslikec("\\\
elementisarow.Youcanhavethingslikec("\\\\usepackage{threeparttable}","\\\\usepackage{icons}")Youcouldprobablyaddyourlanguagepackagehereifyouusenon-Englishtextinyourtable,suchas\\\\usepackage[magyar]{babel}.keep_texAT/Foptiontocontrolifthelatexlethatisinitiallycreatedshouldbekept.DefaultisFALSE.densitydensityargumentpassedtomagickifneeded.Defaultis300. 36scroll_boxExamples##Notrun:library(kableExtra)kable(mtcars[1:5,],"html")�%%kable_styling("striped")�%%row_spec(1,color="red")�%%save_kable("inst/test.pdf")##End(Notrun) scroll_boxPutaHTMLtableintoascrollablebox DescriptionThisfunctionwillputaHTMLkableobjectinaxed-height,xed-widthorbothboxandmakeitscrollable.Usagescroll_box(kable_input,height=NULL,width=NULL,box_css="border:1pxsolid#ddd;padding:5px;",extra_css=NULL,fixed_thead=TRUE)Argumentskable_inputAHTMLkableobjectheightAcharacterstringindicatingtheheightofthebox,e.g."50px"widthAcharacterstringindicatingthewidthofthebox,e.g."100px"box_cssCSStextfortheboxextra_cssExtraCSSstylesfixed_theadHTMLtableoptionsotableheaderrowisxedattop.ValuescanbeeitherT/Forlist(enabled=T/F,background="anycolor").Examples##Notrun:#Specifytablesizebypixelskable(cbind(mtcars,mtcars),"html")

40 �%%kable_styling()�%% spec
�%%kable_styling()�%% spec_angle37scroll_box(width="500px",height="200px")#Specifybypercentkable(cbind(mtcars,mtcars),"html")�%%kable_styling()�%%scroll_box(width="100%",height="200px")##End(Notrun) spec_angleGeneraterotationangleforcontinuousvalues DescriptionGeneraterotationangleforcontinuousvaluesUsagespec_angle(x,begin,end,scale_from=NULL)ArgumentsxcontinuousvectorsofvaluesbeginSmallestdegreetorotate.Defaultis0endLargestdegreetorotate.Defaultis359.scale_frominputrange(vectoroflengthtwo).Ifnotgiven,iscalculatedfromtherangeofx spec_boxplotHelperfunctionstogenerateinlinesparklines DescriptionThesefunctionshelpsyouquicklygeneratesetsofsparklinestyleplotsusingbaseRplottingsys-tem.Currently,wesupporthistogram,boxplot,line,scatterandpointrangeplots.Youcanusethemtogetherwithcolumn_spectogenerateinlineplotintables.Bydefault,thisfunctionwillsaveimagesinafoldercalled"kableExtra"andreturntheaddressofthele. 38spec_boxplotUsagespec_boxplot(x,width=200,height=50,res=300,add_label=FALSE,label_digits=2,same_lim=TRUE,lim=NULL,xaxt="n",yaxt="n",ann=FALSE,col="lightgray",border=NULL,boxlty=0,medcol="red",medlwd=1,dir=if(is_latex())rmd_files_dir()elsetempdir(),file=NULL,file_type=if(is_

41 latex())"pdf"elsesvglite::svglite,...)Ar
latex())"pdf"elsesvglite::svglite,...)ArgumentsxVectorofvaluesorListofvectorsofvalues.widthThewidthoftheplotinpixelheightTheheightoftheplotinpixelresTheresolutionoftheplot.Defaultis300.add_labelForboxplot.T/Ftoaddlabelsformin,meanandmax.label_digitsIfTforadd_label,roundingdigitsforthelabel.Defaultis2.same_limT/F.Ifxisalistofvectors,shouldalltheplotsbeplottedinthesamerange?DefaultisTrue.limManuallyspecifyplottingrangeintheformofc(0,10).xaxtOn/OffforxaxistextyaxtOn/OffforyaxistextannOn/Offforannotations(titlesandaxistitles)colColorforthellofthehistogrambar/boxplotbox.borderColorfortheborder.boxltyBoxplot-boxboardertypemedcolBoxplot-medianlinecolormedlwdBoxplot-medianlinewidth spec_color39dirDirectoryofwheretheimageswillbesaved.fileFilename.Ifnotprovided,arandomnamewillbeusedfile_typeGraphicdevice.Canbecharacter(e.g.,"pdf")oragraphicsdevicefunction(grDevices::pdf).Thisdefaultsto"pdf"iftherenderingisinLaTeXand"svg"otherwise....extraparameterspassingtoboxplot spec_colorGenerateviridisColorcodeforcontinuousvalues DescriptionGenerateviridisColorcodeforcontinuousvaluesUsagespec_color(x,alpha=1,begin=0,end=1,direction=1,option="D",na_color="#BBBBBB",scale_from=NULL)ArgumentsxcontinuousvectorsofvaluesalphaT

42 healphatransparency,anumberin[0,1],seear
healphatransparency,anumberin[0,1],seeargumentalphainhsv.beginThe(corrected)huein[0,1]atwhichtheviridiscolormapbegins.endThe(corrected)huein[0,1]atwhichtheviridiscolormapends.directionSetstheorderofcolorsinthescale.If1,thedefault,colorsareorderedfromdarkesttolightest.If-1,theorderofcolorsisreversed.optionAcharacterstringindicatingthecolormapoptiontouse.Fouroptionsareavail-able:"magma"(or"A"),"inferno"(or"B"),"plasma"(or"C"),"viridis"(or"D",thedefaultoption)and"cividis"(or"E").na_colorcolorcodeforNAvaluesscale_frominputrange(vectoroflengthtwo).Ifnotgiven,iscalculatedfromtherangeofx 40spec_hist spec_font_sizeGeneratecommonfontsizeforcontinuousvalues DescriptionGeneratecommonfontsizeforcontinuousvaluesUsagespec_font_size(x,begin=8,end=16,na_font_size=12,scale_from=NULL)ArgumentsxcontinuousvectorsofvaluesbeginSmallesfontsizetobeused.Defaultis10.endLargestfontsize.Defaultis20.na_font_sizefontsizeforNAvaluesscale_frominputrange(vectoroflengthtwo).Ifnotgiven,iscalculatedfromtherangeofx spec_histHelperfunctionstogenerateinlinesparklines DescriptionThesefunctionshelpsyouquicklygeneratesetsofsparklinestyleplotsusingbaseRplottingsys-tem.Currently,wesupporthistogram,boxplot,line,scatterandpointrangeplots.Youcanus

43 ethemtogetherwithcolumn_spectogeneratein
ethemtogetherwithcolumn_spectogenerateinlineplotintables.Bydefault,thisfunctionwillsaveimagesinafoldercalled"kableExtra"andreturntheaddressofthele.Usagespec_hist(x,width=200,height=50,res=300,breaks="Sturges",same_lim=TRUE,lim=NULL,xaxt="n",yaxt="n",ann=FALSE,col="lightgray", spec_image41border=NULL,dir=if(is_latex())rmd_files_dir()elsetempdir(),file=NULL,file_type=if(is_latex())"pdf"elsesvglite::svglite,...)ArgumentsxVectorofvaluesorListofvectorsofvalues.widthThewidthoftheplotinpixelheightTheheightoftheplotinpixelresTheresolutionoftheplot.Defaultis300.breaksThebreakoptioninhist.Defaultis"Sturges"butyoucanalsoprovideavectortomanuallyspecifybreakpoints.same_limT/F.Ifxisalistofvectors,shouldalltheplotsbeplottedinthesamerange?DefaultisTrue.limManuallyspecifyplottingrangeintheformofc(0,10).xaxtOn/OffforxaxistextyaxtOn/OffforyaxistextannOn/Offforannotations(titlesandaxistitles)colColorforthellofthehistogrambar/boxplotbox.borderColorfortheborder.dirDirectoryofwheretheimageswillbesaved.fileFilename.Ifnotprovided,arandomnamewillbeusedfile_typeGraphicdevice.Canbecharacter(e.g.,"pdf")oragraphicsdevicefunction(grDevices::pdf).Thisdefaultsto"pdf"iftherenderingisinLaTeXand"svg"otherwise.forHTMLoutput...ext

44 raparameterssendingtohist() spec_imageSe
raparameterssendingtohist() spec_imageSetupimagepath,size,etc DescriptionUserscandirectlyprovideimagelepathtocolumnspec.However,ifyouneedtospecifythesizeoftheimage,youwillneedthisfunction.Usagespec_image(path,width,height,res=300,svg_text=NULL) 42spec_plotArgumentspathlepath(s)widthimagewidthinpixelheightimageheightinpixelresimageresolution.svg_textIfyouhavetherawtextforSVG.Putthemhere spec_plotHelperfunctionstogenerateinlinesparklines DescriptionThesefunctionshelpsyouquicklygeneratesetsofsparklinestyleplotsusingbaseRplottingsys-tem.Currently,wesupporthistogram,boxplot,line,scatterandpointrangeplots.Youcanusethemtogetherwithcolumn_spectogenerateinlineplotintables.Bydefault,thisfunctionwillsaveimagesinafoldercalled"kableExtra"andreturntheaddressofthele.Usagespec_plot(x,y=NULL,width=200,height=50,res=300,same_lim=TRUE,xlim=NULL,ylim=NULL,xaxt="n",yaxt="n",ann=FALSE,col="lightgray",border=NULL,frame.plot=FALSE,lwd=2,pch=".",cex=2,type="l",polymin=NA,minmax=list(pch=".",cex=cex,col="red"),min=minmax,max=minmax,dir=if(is_latex())rmd_files_dir()elsetempdir(),file=NULL,file_type=if(is_latex())"pdf"elsesvglite::svglite,...) spec_plot43Argumentsx,yVectorofvaluesorListofvectorsofvalues.yisoptional.w

45 idthThewidthoftheplotinpixelheightThehei
idthThewidthoftheplotinpixelheightTheheightoftheplotinpixelresTheresolutionoftheplot.Defaultis300.same_limT/F.Ifxisalistofvectors,shouldalltheplotsbeplottedinthesamerange?DefaultisTrue.xlim,ylimManuallyspecifyplottingrangeintheformofc(0,10).xaxtOn/OffforxaxistextyaxtOn/OffforyaxistextannOn/Offforannotations(titlesandaxistitles)colColorforthellofthehistogrambar/boxplotbox.borderColorfortheborder.frame.plotOn/Offforsurroundingbox(spec_plotonly).DefaultisFalse.lwdLinewidthforspec_plot;withinspec_plot,theminmaxargumentdefaultstousethisvalueforcexforpoints.Defaultis2.pch,cexShapeandsizeforpoints(iftypeisotherthan"l").typePassedtoplot,oftenoneof"l","p",or"b",seegraphics::plot.default()formoredetails.Ignoredwhen'polymin'isnot'NA'.polyminSpecialargumentthatconvertsa"line"toapolygon,wheretheatportionisthisvalue,andtheothersideofthepolygonisthe'y'value('x'ifno'y'provided).If'NA'(thedefault),thenthisisignored;otherwiseifthisisnumericthenapolygoniscreated(and'type'isignored).Notethatif'polymin'isinthemiddleofthe'y'values,itwillgenerateup/downpolygonsaroundthisvalue.minmax,min,maxArgumentspassedtopointstohighlightminimumandmaximumvaluesinspec_plot.IfminormaxareNULL,theydefaulttothevalueofminmax.Settoanempt

46 ylist()todisable.dirDirectoryofwherethei
ylist()todisable.dirDirectoryofwheretheimageswillbesaved.fileFilename.Ifnotprovided,arandomnamewillbeusedfile_typeGraphicdevice.Canbecharacter(e.g.,"pdf")oragraphicsdevicefunction(grDevices::pdf).Thisdefaultsto"pdf"iftherenderingisinLaTeXand"svg"otherwise....extraparameterspassingtoplot 44spec_pointrange spec_pointrangeHelperfunctionstogenerateinlinesparklines DescriptionThesefunctionshelpsyouquicklygeneratesetsofsparklinestyleplotsusingbaseRplottingsys-tem.Currently,wesupporthistogram,boxplot,line,scatterandpointrangeplots.Youcanusethemtogetherwithcolumn_spectogenerateinlineplotintables.Bydefault,thisfunctionwillsaveimagesinafoldercalled"kableExtra"andreturntheaddressofthele.Usagespec_pointrange(x,xmin,xmax,vline=NULL,width=200,height=50,res=300,same_lim=TRUE,lim=NULL,xaxt="n",yaxt="n",ann=FALSE,col="red",cex=0.3,frame.plot=FALSE,dir=if(is_latex())rmd_files_dir()elsetempdir(),file=NULL,file_type=if(is_latex())"pdf"elsesvglite::svglite,...)Argumentsx,xmin,xmaxAscalarvalueorListofscalarvaluesfordot,leftandrighterrorbar.vlineAscalarvalueforwheretodrawaverticalline.widthThewidthoftheplotinpixelheightTheheightoftheplotinpixelresTheresolutionoftheplot.Defaultis300.same_limT/F.Ifxisalistofvectors,should

47 alltheplotsbeplottedinthesamerange?Defau
alltheplotsbeplottedinthesamerange?DefaultisTrue.limManuallyspecifyplottingrangeintheformofc(0,10).xaxtOn/Offforxaxistext spec_popover45yaxtOn/OffforyaxistextannOn/Offforannotations(titlesandaxistitles)colColorforthellofthehistogrambar/boxplotbox.cexsizeofthemeandotanderrorbarsize.frame.plotT/Fforwhethertoplottheplotframes.dirDirectoryofwheretheimageswillbesaved.fileFilename.Ifnotprovided,arandomnamewillbeusedfile_typeGraphicdevice.Canbecharacter(e.g.,"pdf")oragraphicsdevicefunction(grDevices::pdf).Thisdefaultsto"pdf"iftherenderingisinLaTeXand"svg"otherwise.forHTMLoutput...extraparameterssendingtohist() spec_popoverSetupbootstrappopover DescriptionSetupbootstrappopoverUsagespec_popover(content=NULL,title=NULL,trigger="hover",position="right")Argumentscontentcontentforpop-overmessagetitletitleforpop-overmessage.triggerControlshowthepop-overmessageshouldbetriggered.Possiblevaluesincludehover(default),click,focusandmanual.positionHowthetooltipshouldbepositioned.Possiblevaluesareright(default),top,bottom,left&auto. 46usepackage_latex spec_tooltipSetupbootstraptooltip DescriptionSetupbootstraptooltipUsagespec_tooltip(title,position="right")ArgumentstitletextforhoveringmessagepositionHowthetooltipshould

48 bepositioned.Possiblevaluesareright(defa
bepositioned.Possiblevaluesareright(default),top,bottom,left&auto. usepackage_latexLoadaLaTeXpackage DescriptionLoadaLaTeXpackageusingRcode.Justlike\\usepackage{}inLaTeXUsageusepackage_latex(name,options=NULL)ArgumentsnameTheLaTeXpackagenameoptionsTheLaTeXoptionsforthepackageExamplesusepackage_latex("xcolor") xml_as_kable47 xml_as_kableConvertXMLbacktokable DescriptionConvertXMLbacktokableUsagexml_as_kable(x)ArgumentsxXMLtableobject xtable2kableConvertxtabletoakableobject DescriptionThisfunctionallowuserstoturnanxtableobjectintoakablesotheycanusemostofkableExtra'sfunctionswiththeirxtablecodewithoutmakingtoomanychanges.NotethatalthoughItestedmanycasesanditseemstowork,thisfunctionmaynotbefunctionalinsomeothercases.I'mnotaregularxtableuserandcanonlyprovideverylimitedsupportforthisfunction.Youshouldusethistableinthesamewayasprint.xtable.Alltheoptionsyouprovidedtothisfunctionwillbesenttoprint.xtable.Insteadofprintingouttheresult,thisfunctionwillreturntheLaTeXorHTMLastextandakableobject.Usagextable2kable(x,...)Argumentsxanxtableobject...optionsforprint.xtableExamples##Notrun:library(xtable)xtable(mtcars)�%%xtable2kable(booktabs=TRUE)�%%kable_styling(latex_options="striped")##End(Notrun) Index&

49 #3;packagekableExtra-package,3add_footno
#3;packagekableExtra-package,3add_footnote,4add_header_above,5add_indent,7as_image,7auto_index,8cell_spec,9collapse_rows,11column_spec,12dev_chr(graphics_helpers),17footnote,14footnote_marker_alphabet(footnote_marker_number),16footnote_marker_number,16footnote_marker_symbol(footnote_marker_number),16format,28graphics::plot.default(),43graphics_dev(graphics_helpers),17graphics_helpers,17group_rows,18header_separate,20hsv,39html_dependency_bsTable,21html_dependency_kePrint,21html_dependency_lightable,21is_svg(graphics_helpers),17kable_as_image,22kable_as_xml,23kable_classic,23kable_classic_2(kable_classic),23kable_material(kable_classic),23kable_material_dark(kable_classic),23kable_minimal(kable_classic),23kable_paper(kable_classic),23kable_styling,24kableExtra(kableExtra-package),3kableExtra-package,3kableExtra_latex_packages,22kbl,27knitr::kable(),32landscape,29linebreak,30listify_args,30magic_mirror,31make_inline_plot,32opts_current,28pack_rows(group_rows),18remove_column,32rmd_format,33row_spec,33save_kable,35scroll_box,36spec_angle,37spec_boxplot,37spec_color,39spec_font_size,40spec_hist,40spec_image,41spec_plot,42spec_pointrange,44spec_popover,45spec_tooltip,46text_spec(cell_spec),9usepackage_late

Related Contents


Next Show more