on-internet
← Community

R swimmer plot error in data frame length

Stack Overflow ·

I know I am SO close to getting this swimmer plot in R correct, but keep having an issue where it says "Error in data.frame(id_fix, start_blank, end_blank) : arguments imply differing number of rows: 1, 0 I think the error is in my ther_end and ther_start columns but I've confirmed they are numeric, without NAs, and the same length as study_id. Thank you for the help! library(swimplot) library(ggplot2) library(dplyr) #example data study_7 <- data.frame( study_id = c(7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8), ther_type = c("S", "S", "S", "S", "E", "E", "E", "A", "A", "A", "A", "A"), ther_start_date =

Comments

Sign in or sign up to comment and upvote.

No comments yet.