creer_tableau_4_1.RdMise en page du tableau du chapitre 4 au format html.
creer_tableau_4_1(data, annee, titre, add_scroll)La table d'indicateurs préparée par dataprep() selon les inputs de l'utilisateur.
Le millesime renseigné par l'utilisateur.
une chaine de caractère si vous voulez ajouter un titre spécifique. par défaut "Projets de construction par tranche d’âge des maîtres d’ouvrage"
un booleen pour indique si l'on souhaite inserer une scrollbox. (par défaut FALSE)
Un tableau mis en page au format html.
indicateurs_eptb <- lire_eptb_exemple()
creer_tableau_4_1(
data = indicateurs_eptb,
annee = 2023,
titre = "Projets de construction par tranche d\u2019\u00e2ge des ma\u00eetres d\u2019ouvrage",
add_scroll = FALSE
)[["viz"]]
#> <table class="table" style="font-size: 12px; margin-left: auto; margin-right: auto;border-bottom: 0;">
#> <caption style="font-size: initial !important;">Projets de construction par tranche d’âge des maîtres d’ouvrage</caption>
#> <thead>
#> <tr>
#> <th style="text-align:left;"> Tranches d’âge </th>
#> <th style="text-align:right;"> Répartition des projets (%) </th>
#> <th style="text-align:right;"> Prix moyen du projet (€) </th>
#> <th style="text-align:right;"> Part du terrain dans le coût du projet (%) </th>
#> <th style="text-align:right;"> Part des constructions destinées à l’habitation (%) </th>
#> </tr>
#> </thead>
#> <tbody>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> Moins de 30 ans </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 17,4 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 238 309 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 23,0 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 97,7 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> 30 à 39 ans </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 24,1 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 275 684 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 25,0 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 93,3 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> 40 à 49 ans </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 19,1 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 294 922 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 26,4 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 83,5 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> 50 à 59 ans </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 17,7 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 299 808 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 27,4 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 83,8 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> 60 ans et plus </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 21,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 320 912 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 25,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 85,7 </td>
#> </tr>
#> </tbody>
#> <tfoot>
#> <tr><td style="padding: 0; " colspan="100%"><span style="font-style: italic;">Note: </span></td></tr>
#> <tr><td style="padding: 0; " colspan="100%">
#> <sup></sup> Un 's' remplace une valeur quand cette dernière a été masquée compte tenu du secret statistique et/ou de la qualité des données d'enquête.<br><br>Source : SDES, EPTB en 2023</td></tr>
#> </tfoot>
#> </table>