Update Fonctions.R
Browse files- 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 |
+
|