pbriss7 commited on
Commit
9f09951
·
verified ·
1 Parent(s): 7a39695

Update Fonctions.R

Browse files
Files changed (1) hide show
  1. Fonctions.R +9 -1
Fonctions.R CHANGED
@@ -73,4 +73,12 @@ plot_histogram <- function(data_frame) {
73
  plot.new()
74
  title(main = "No data available for the selected criteria")
75
  }
76
- }
 
 
 
 
 
 
 
 
 
73
  plot.new()
74
  title(main = "No data available for the selected criteria")
75
  }
76
+ }
77
+
78
+ inst_ext_f <- function(extension) {
79
+ if(!extension %in% rownames(installed.packages())) {
80
+ install.packages(extension, dependencies = TRUE)
81
+ }
82
+ require(extension, character.only = TRUE)
83
+ }
84
+