Skip to content
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

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Generate fake data #7

wants to merge 4 commits into from

Conversation

noemuie
Copy link
Collaborator

@noemuie noemuie commented Dec 9, 2024

Fix #4

@noemuie noemuie changed the base branch from main to dev December 9, 2024 15:25
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
Copy link
Owner

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) {
Copy link
Owner

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) {
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate fake data
2 participants