Re: [R] data frame solution

2019-03-20 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
iling List Subject: [R] data frame solution Hello All, wonder if you have thoughts on a clever solution for this code: df <- data.frame(a = c(6,1), b = c(1000,1200), c =c(-1,3)) #the caveat here is that the number of rows for df can be anything from 1 row to in the hundreds. I kept it

[R] data frame solution

2019-03-19 Thread Andras Farkas via R-help
Hello All, wonder if you have thoughts on a clever solution for this code: df       <- data.frame(a = c(6,1), b = c(1000,1200), c =c(-1,3))  #the caveat here is that the number of rows for df can be anything from 1 row to in the hundreds. I kept it to 2 to have minimal reproducible t<-seq(-5