SyntaxFix
Write A Post
Hire A Developer
Questions
df <- data.frame(a = 1:2, b = letters[1:2]) df[rep(seq_len(nrow(df)), each = 2), ]