search for: namemat

Displaying 1 result from an estimated 1 matches for "namemat".

Did you mean: namemax
2011 Mar 22
1
help need on working in subset within a dataframe
...0,0,1,1, 1,1,1,1,1, 1, 1,1, 1,0, 1,1,0,1,0) x4 <- c(1,1,1,1,0, 0,1,1, 0,0, 0, 1,0,0, 0, 0,0,1, 1,1) # I have more X variables potentially >1000 but I need to work four at a time dataframe <- data.frame(ped, fd, iid, mid, fid, y, x1, x2, x3, x4) myfun <- function(dataframe) { namemat <- matrix(c(1:4), nrow = 1) smyfun <- function(x) { x <- as.vector(x) K1 <- dataframe$x1 * 0.23 K2 <- dataframe$x2 * 0.98 # just example there is long vector calculations in read dataset kt1 <- K1 * K2 kt2 <- K1 / K2 Qni <- (K1*(kt1-0.25)+ K2 *(kt2-0.25)) y <- d...