I would like the response to return the negative values of, for example, the vector vectorRandom <- (-4:4)
. I just don't know how to accommodate the function.
I would like the response to return the negative values of, for example, the vector vectorRandom <- (-4:4)
. I just don't know how to accommodate the function.
One of the classic mechanisms for selecting or filtering values from a vector or other types of objects is that of logical selection, that is, conditioning is from another vector of logical values, where
TRUE
it means, "I want this element":