-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate fake data #7
base: dev
Are you sure you want to change the base?
Conversation
noms <- c("Dupont","Nguyen","Martin","Garcia","Fouquier","Dubois","Jack","Boisu","Zaky","Mathy") | ||
filiere <- c(rep("EMIR",30),rep("MICA",30),rep("CLASSIQUE",140)) | ||
|
||
#réponses possibles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functions names, variable names and comments should be written in english.
filiere = sample(filiere, nb_etudiants, replace = TRUE) | ||
) | ||
|
||
generer_voeux <- function(filiere) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created functions should be documented using the roxigen2 standard.
You can read R/input.R
on the dev
branch, or this page to see how roxygen2 works.
After adding documentation, you can run the command: devtools::document()
.
} | ||
|
||
# ajout des voeux | ||
df_voeux <- t(apply(df, 1, function(row) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the code should be nested into a functions, except for your constants (such as noms
, filiere
or reponse_emir
).
Fix #4