I'm finding mean absolute deviation in r. when I run it, the r gives me the error that you should have numeric data. furthermore, when I convert the data into numeric, then it gives me the error that your x must be atomic.
md <- mad(x, center = median(x), constant = 1.4826, na.rm = FALSE,
low = FALSE, high = FALSE)
Error in median.default(x) : need numeric data
When I convert the data into numeric then again it gives me the error that your x must be atomic. here is the error.
md <- mad(x.num, center = median(x.num), constant = 1.4826, na.rm = FALSE,
low = FALSE, high = FALSE)
Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...) :
'x' must be atomic