Created
January 9, 2022 14:43
-
-
Save muneebhashmi7712/acd11adbbfc5628d41317b645e2d0263 to your computer and use it in GitHub Desktop.
Revisions
-
muneebhashmi7712 created this gist
Jan 9, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # 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)