search for: field_rep

Displaying 9 results from an estimated 9 matches for "field_rep".

Did you mean: field_len
2017 Dec 14
2
help with recursive function
...till getting the same error ?Error: !(any(data1$norm_sd >= 1)) is not TRUE? I would appreciate any help. Nilesh dput(calclp) function (dataset) { dat1 <- funlp1(dataset) recursive_funlp <- function(dataset = dat1, func = funlp2) { dat2 <- dataset %>% select(uniqueid, field_rep, lp) %>% mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% spread(key = field_rep, value = lp) %>% mutate_at(.vars = grep("_", names(.)), funs(norm = round(scale(.), 3))) dat2$norm_sd <- round(apply(dat2[,...
2017 Dec 14
0
help with recursive function
...> > I would appreciate any help. > > Nilesh > > dput(calclp) > > function (dataset) > > { > > dat1 <- funlp1(dataset) > > recursive_funlp <- function(dataset = dat1, func = funlp2) { > > dat2 <- dataset %>% select(uniqueid, field_rep, lp) %>% > > mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% > > spread(key = field_rep, value = lp) %>% mutate_at(.vars = > grep("_", > > names(.)), funs(norm = round(scale(.), 3))) > >...
2017 Dec 14
3
help with recursive function
...Nilesh >> >> dput(calclp) >> >> function (dataset) >> >> { >> >> dat1 <- funlp1(dataset) >> >> recursive_funlp <- function(dataset = dat1, func = funlp2) { >> >> dat2 <- dataset %>% select(uniqueid, field_rep, lp) %>% >> >> mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% >> >> spread(key = field_rep, value = lp) %>% mutate_at(.vars = >> grep("_", >> >> names(.)), funs(norm = rou...
2017 Dec 14
0
help with recursive function
...till getting the same error ?Error: !(any(data1$norm_sd >= 1)) is not TRUE? I would appreciate any help. Nilesh dput(calclp) function (dataset) { dat1 <- funlp1(dataset) recursive_funlp <- function(dataset = dat1, func = funlp2) { dat2 <- dataset %>% select(uniqueid, field_rep, lp) %>% mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% spread(key = field_rep, value = lp) %>% mutate_at(.vars = grep("_", names(.)), funs(norm = round(scale(.), 3))) dat2$norm_sd <- round(apply(dat2[,...
2017 Dec 14
1
help with recursive function
...orm_sd >= 1)) is > not TRUE? > > I would appreciate any help. > Nilesh > dput(calclp) > function (dataset) > { > dat1 <- funlp1(dataset) > recursive_funlp <- function(dataset = dat1, func = funlp2) { > dat2 <- dataset %>% select(uniqueid, field_rep, lp) %>% > mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% > spread(key = field_rep, value = lp) %>% mutate_at(.vars = > grep("_", > names(.)), funs(norm = round(scale(.), 3))) > dat2$norm_sd...
2017 Dec 14
0
help with recursive function
...values that are above or equal to 1. Below is the calclp function after the changes you suggested. Thanks. Nilesh dput(calclp) function (dataset) { dat1 <- funlp1(dataset) recursive_funlp <- function(dataset = dat1, func = funlp2) { dat2 <- dataset %>% select(uniqueid, field_rep, lp) %>% mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% spread(key = field_rep, value = lp) %>% mutate_at(.vars = grep("_", names(.)), funs(norm = round(scale(.), 3))) dat2$norm_sd <- round(apply(dat2[,...
2017 Dec 14
2
help with recursive function
...>> # calclp function >> >> calclp<- function (dataset) >> >> { >> >> dat1 <- funlp1(dataset) >> >> recursive_funlp <- function(dataset = dat1, func = funlp2) { >> >> dat2 <- dataset %>% select(uniqueid, field_rep, lp) %>% >> >> mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% >> >> spread(key = field_rep, value = lp) %>% mutate_at(.vars = >> grep("_", >> >> names(.)), funs(norm = rou...
2017 Dec 14
2
help with recursive function
...ther two functions are within this calclp function. # code: Test<- calclp(dataset = dat) # calclp function calclp<- function (dataset) { dat1 <- funlp1(dataset) recursive_funlp <- function(dataset = dat1, func = funlp2) { dat2 <- dataset %>% select(uniqueid, field_rep, lp) %>% mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% spread(key = field_rep, value = lp) %>% mutate_at(.vars = grep("_", names(.)), funs(norm = round(scale(.), 3))) dat2$norm_sd <- round(apply(da...
2017 Dec 14
0
help with recursive function
...: > Test<- calclp(dataset = dat) > > # calclp function > > calclp<- function (dataset) > > { > > dat1 <- funlp1(dataset) > > recursive_funlp <- function(dataset = dat1, func = funlp2) { > > dat2 <- dataset %>% select(uniqueid, field_rep, lp) %>% > > mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% > > spread(key = field_rep, value = lp) %>% mutate_at(.vars = > grep("_", > > names(.)), funs(norm = round(scale(.), 3))) > >...