Created
January 9, 2022 14:43
-
-
Save muneebhashmi7712/acd11adbbfc5628d41317b645e2d0263 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generate vector with pass and fail values of 40 students | |
| result <- c(0, 0, 0, 1, 0, 0, 0, 0, 0, 1, | |
| 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, | |
| 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, | |
| 1, 1, 1, 0, 1, 1, 1, 1, 0, 1) | |
| # Data Frame | |
| df <- as.data.frame(cbind(IQ, result)) | |
| # Print data frame | |
| print(df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment