1. Create an object that consists of the numbers one through five using c(1,2,3,4,5) or 1:5
x = c(1,2,3,4,5)
x = 1:5
  1. Create a different object, that is the same as that object, but plus 1 (i.e. the numbers two through six).
z = x + 1
  1. Without creating an object, use cbind and rbind, feeding the objects you just created as arguments. For example cbind(obj1, obj2).
new_data = cbind(x, z)
new_data = rbind(x, z)
  1. Create a new object using data.frame just as you did rbind or cbind in #3.
new_data = data.frame(x, z)
  1. Inspect the class of the object, and use the summary function on it.
class(new_data)
summary(new_data)
LS0tDQp0aXRsZTogIlIgRXhlcmNpc2VzIg0KYXV0aG9yOiB8DQogIHwgQ29uc3VsdGluZyBmb3IgU3RhdGlzdGljcywgQ29tcHV0aW5nIGFuZCBBbmFseXRpY3MgUmVzZWFyY2gNCg0KZGF0ZTogJ2ByIFN5cy5EYXRlKClgJw0Kb3V0cHV0Og0KICBodG1sX25vdGVib29rOg0KICAgIHRoZW1lOiBzYW5kc3RvbmUNCiAgICBmb250LWZhbWlseTogUm9ib3RvDQogICAgaGlnaGxpZ2h0OiB6ZW5idXJuDQogICAgY29kZV9mb2xkaW5nOiBoaWRlDQotLS0NCiANCmBgYHtyIHNldHVwRXhlcmNpc2VzLCBpbmNsdWRlPUZBTFNFfQ0Ka25pdHI6Om9wdHNfY2h1bmskc2V0KGV2YWw9RiwgY2FjaGUgPSBGLCBtZXNzYWdlID0gRiwgd2FybmluZyA9IEYsIFIub3B0aW9ucz1saXN0KHdpZHRoPTEyMCksIGNvbW1lbnQ9TkEpDQpgYGANCg0KDQoxLiBDcmVhdGUgYW4gb2JqZWN0IHRoYXQgY29uc2lzdHMgb2YgdGhlIG51bWJlcnMgb25lIHRocm91Z2ggZml2ZSB1c2luZyBgYygxLDIsMyw0LDUpYCBvciBgMTo1YA0KDQpgYGB7cn0NCnggPSBjKDEsMiwzLDQsNSkNCnggPSAxOjUNCmBgYA0KDQoNCjIuIENyZWF0ZSBhIGRpZmZlcmVudCBvYmplY3QsIHRoYXQgaXMgdGhlIHNhbWUgYXM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