I am using the formula below to calculate a vector but when executed, it returns a matrix; here is the code:
FdeValue <- ifelse(fde.4$ResourceId == 2196 |fde.4$FullYearForecast == 'Yes' | !is.na(fde.2$8), 0, fde.4$Value)
Any idea why will it do that ?