I am trying to compute a vector in R using List Comprehension. I want to multiple elements that are smaller than 5 or larger than 90 by 10 and multiply the other elements by 0.1. Currently I have the if part but can't find sufficient information on the else part of a List Comprehension.
x <- 1:100
10 * x [x < 5 | x > 90]