When x[1,1]=net2013 , I get the output as 20. But what do I have to do to execute this piece of code for all the elements of the first column of x (i.e: x[ ,1]). While loop didn't execute and I'm having trouble with apply and do.call. I have to use a switch statement and obtain output for tens of thousands of rows. Please help.When x[1,1]=net2013 , I get the output as 20. B