matrix.scaled <- matrix.mat/1000
Error – non-numeric argument to binary operator
same here. Could please add a link to the lecture where this is from?
Please go and check out also if you find a solution pls do let me know
Ok, I checked and this error usually occurs if we’re trying to performing a numerical operation with a non-numerical element. Could you please share the first lines of code, as well, with the box.office array and where you define your matrix.mat?