Advertisement
Guest User

ex6 fini

a guest
Sep 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.33 KB | None | 0 0
  1. # Exercice 6
  2. # data.frame(nom_colonne=c(valeurs), ...)
  3. df <- data.frame(id=c(1,2,3), module=c("maths", "informatique", "réseaux"), durée=c(30,60,15))
  4. print(df)
  5. # Error in sqrt(coef) : non-numeric argument to mathematical function
  6. #transform(df, durée=60*durée, coef=sqrt(coef))
  7.  
  8. X=c(TRUE, FALSE)
  9. print(X)
  10. print(expand.grid(X,X))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement