Oct
22
Classes and Objects in R
Classes and objects in R
Welcome back! In this blog post I'm going to try to tackle the concept of objects in R. R is said to be an “object oriented” language. I touched on this in my last post when we discussed the concatenate function c() and I'll go a bit beyond that this time. Speaking of the c() function, I'll begin this post by divulging the answer to the Challenge from last time.
Solution:
The solution to last post's challenge required you to compute the Kronecker product of and < 1, 2, 3 > and < 1, 2, 3, 4, 5 >. The solution I wanted you to come up with used a combination of the c() function and the multiplication operator, all packed inside another call to c().
Welcome back! In this blog post I'm going to try to tackle the concept of objects in R. R is said to be an “object oriented” language. I touched on this in my last post when we discussed the concatenate function c() and I'll go a bit beyond that this time. Speaking of the c() function, I'll begin this post by divulging the answer to the Challenge from last time.
Solution:
The solution to last post's challenge required you to compute the Kronecker product of and < 1, 2, 3 > and < 1, 2, 3, 4, 5 >. The solution I wanted you to come up with used a combination of the c() function and the multiplication operator, all packed inside another call to c().