SyntaxFix
Write A Post
Hire A Developer
Questions
How about sapply (not really necessary for this simple case):
sapply
newData<- sapply(data, function(x) x^2)