Guest User

Untitled

a guest
Jan 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # Simulate matrix of integers
  2. set.seed(1)
  3. df <- matrix(sample.int(5, size = 3*5, replace = TRUE), nrow = 3, ncol = 5)
  4. print(df)
  5. df <- tbl_df(df) # tabulate as dataframe
  6. df <- rbind(df, c(3,5,4,1,4))
  7. print(df)
  8.  
  9. plot(c(1:5),df[1,], type = "b", pch=19,
  10. col = "blue", xlab = "number of columns", ylab = "response format")
Add Comment
Please, Sign In to add comment