creer_tableau_4_2.RdMise en page du tableau 2 du chapitre 4 au format html.
creer_tableau_4_2(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 CSP 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_2(
data = indicateurs_eptb,
annee = 2023,
titre = "Projets de construction par CSP 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 CSP des maîtres d’ouvrage</caption>
#> <thead>
#> <tr>
#> <th style="text-align:left;"> Catégories socioprofessionelles </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;"> Agriculteurs exploitants </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 1,7 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 274 306 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 22,2 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 82,1 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> Artisans, commerçants, chefs d’entreprise </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 6,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 314 671 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 27,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 79,3 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> Cadres et professions intellectuelles supérieurs </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 23,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 337 756 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 27,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 84,4 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> Professions intermédiaires </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 12,7 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 264 916 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 24,4 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 91,4 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> Employés </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 28,1 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 244 898 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 23,6 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 94,9 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> Ouvriers </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 7,4 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 228 104 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 23,7 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 95,0 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> Retraités </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 17,2 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 313 857 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 25,7 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 85,3 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(255, 255, 255, 255) !important;"> Autres personnes sans activité professionnelle </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 2,3 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 265 483 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 24,9 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 87,4 </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>