View source: R/row-wise-computations-functions.R
get.selected.data | R Documentation |
Useful function for extracting data and combining data based on a vector of column names in a dataframe. If name.vec is NULL, then assign the value given in null.default Used in: step42-electrometer-cal-single-file-009-6 Se also rowMeans.ca and get.selected.data.sd.
Sample use: read.table(fn.full,sep=";",header=TRUE,quote = "\"",) %>%
filter(step.i %in% use.these.steps) %>%
mutate(V.base = get.selected.data(.,V.base.use.vec)) %>%
mutate(V.raw = get.selected.data(.,V.use.vec)) %>%
mutate(V.ref = V.raw - V.base)
df %>% mutate(V.base = get.selected.data(.,V.base.use.vec))
df |
data frame |
name.vec |
names of rows. |
null.default |
value to use if there are no values (default to NA). This should be a value of class equal to numeric. |
string vector
Claus E. Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.