Bläddra i källkod

Clean up return statements for #15

pull/18/merge
Garrick Aden-Buie 7 år sedan
förälder
incheckning
ab88ed5e0e
2 ändrade filer med 3 tillägg och 5 borttagningar
  1. +1
    -2
      R/move_together.R
  2. +2
    -3
      R/process_data_helpers.R

+ 1
- 2
R/move_together.R Visa fil

.x = xvals[.col], .x = xvals[.col],
.y = yvals[.id_long]) .y = yvals[.id_long])


res <- bind_rows(
bind_rows(
# take, # take,
take_vals, take_vals,
# fade in place: # fade in place:
all %>% filter(.id_long %in% take_ids$.id_long & !.col %in% take_cols$.col) %>% all %>% filter(.id_long %in% take_ids$.id_long & !.col %in% take_cols$.col) %>%
mutate(.alpha = 0) mutate(.alpha = 0)
) )
return(res)
} }

+ 2
- 3
R/process_data_helpers.R Visa fil

y_ <- process_data_join(y, ids, by, fill = fill, ...) %>% y_ <- process_data_join(y, ids, by, fill = fill, ...) %>%
mutate(.x = .x + ncol(x) - 1) mutate(.x = .x + ncol(x) - 1)


return(list(x = x_, y = y_))
list(x = x_, y = y_)
} }




} }
} }


res <- add_color_join(x, rev(ids$.id), by, ...)
return(res)
add_color_join(x, rev(ids$.id), by, ...)
} }


#' Adds Color to a processed data_frame #' Adds Color to a processed data_frame

Laddar…
Avbryt
Spara