creer_tableau_4_2.Rd
Mise 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,6 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 315 699 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 21,7 </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;"> Artisans, commerçants, chefs d’entreprise </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 8,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 328 893 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 31,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> NA </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;"> 25,0 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 385 129 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 33,2 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 89,3 </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;"> 11,5 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 287 281 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 29,1 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> NA </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,7 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 270 912 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 29,4 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 95,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,3 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 254 490 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 28,6 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 95,4 </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;"> 14,3 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 315 769 </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;"> NA </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,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 279 417 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 29,8 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 84,9 </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>
#> $tab_xls
#> # A tibble: 8 × 7
#> Zone millesime csp part_projet cout_projet_moy part_prix_terrain_co…¹
#> <chr> <chr> <chr> <dbl> <dbl> <dbl>
#> 1 Bretagne 2023 Agricul… 1.6 315699 21.7
#> 2 Bretagne 2023 Artisan… 8.8 328893 31.8
#> 3 Bretagne 2023 Cadres … 25 385129 33.2
#> 4 Bretagne 2023 Profess… 11.5 287281 29.1
#> 5 Bretagne 2023 Employés 28.7 270912 29.4
#> 6 Bretagne 2023 Ouvriers 7.3 254490 28.6
#> 7 Bretagne 2023 Retrait… 14.3 315769 28.1
#> 8 Bretagne 2023 Autres … 2.8 279417 29.8
#> # ℹ abbreviated name: ¹part_prix_terrain_cout_projet
#> # ℹ 1 more variable: part_residence_princ <dbl>
#>
#> $meta
#> onglet titre
#> 1 tableau_4_2 Projets de construction par CSP des maîtres d’ouvrage
#>