Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
I think this is the result of
dat[, 2:n_col]returning a vector whenn_col = 2. Subsetting withdat[2:n_col]seems to do it.