Try this:
dat=structure(list(Color = c("5", "<4","5", "<5", "5"), Unit =
c("Hazen","Hazen","Hazen", "Hazen", "Hazen")), .Names = c("Color", "Unit"),
row.names =c("1:2","1:3", "1:4", "1:5","1:6"), class = "data.frame")
dat=as.data.frame(dat)dat$col2 <- rep(" ", nrow(dat))dat[dat$Color == "<4", ][
Hi, I'm trying to convert the following SAS code in R to get the same result
that I get from SAS. Here is the SAS code:
DATA plants;
INPUT sample $ treatmt $ y ;
cards;
1 trt16.426264755
1 trt16.95419631
1 trt16.64385619
1 trt27.34872815
2 matches
Mail list logo