+ 2
Unexpected '{' in "{" (R programming)
idk why it is happened, this code is already closed perfectly with "}" this code: y=lynx y summary(y) outlier <- funtion(x) { n = length(x) for (k in 1 : n) { if (x[k] < quantile(x, 0.25) - 1.5 * IQR(x)) print(c("ììì ìŽììč", x[k])) else if (x[k] > quatile(x, 0.75) + 1.5 * IQR(x)) print(c("컀ì ìŽììč", x[k])) } } outlier(y)
3 RĂ©ponses
+ 3
I think that
function (x) =
Without curly bracket
+ 3
Your example has typos in "function" and "quantile".
Does it change anything if you set the {} for if and else explicitly?
+ 1
omg... i typed wrong word lol...