+ 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 odpowiedzi
+ 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...