[R] Matrix
Rookie
rookie8823 at gmail.com
Wed Aug 18 01:05:10 CEST 2010
How do I completely remove the first column?
(x <- matrix(c(1, 44, 124, 80, 254, 70, 190, 0, 2, 35, 110, 70, 240, 73, 216, 0, 3, 41, 114, 80, 279, 68, 178, 0, 4, 31, 100, 80, 284, 68, 149, 0, 5, 61, 190, 110, 315, 68, 182, 1, 6, 61, 130, 88, 250, 70, 185, 0, 7, 44, 130, 94, 298, 68, 161, 0, 8, 58, 110, 74, 384, 67, 175, 0, 9, 52, 120, 80, 310, 66, 144, 0, 10, 52, 120, 80, 337, 67, 130, 0, 11, 52, 130, 80, 367, 69, 162, 0, 12, 40, 120, 90, 273, 68, 175, 0, 13, 49, 130, 75, 273, 66, 155, 0, 14, 34, 120, 80, 314, 74, 156, 0, 15, 37, 115, 70, 243, 65, 151, 0, 16, 63, 140, 90, 341, 74, 168, 0, 17, 28, 138, 80, 245, 70, 185, 0, 18, 40, 115, 82, 302, 69, 225, 0, 19, 51, 148, 110, 302, 69, 247, 1, 20, 33, 120, 70, 386, 66, 146, 0, 21, 37, 110, 70, 312, 71, 170, 1, 22, 33, 132, 90, 302, 69, 161, 0, 23, 41, 112, 80, 394, 69, 167, 0, 24, 38, 114, 70, 358, 69, 198, 0, 25, 52, 100, 78, 336, 70, 162, 0, 26, 31, 114, 80, 251, 71, 150, 0, 27, 44, 110, 80, 322, 68, 196, 1, 28, 31, 108, 70, 281, 67, 130, 0, 29, 40, 110, 74, 336, 68, 166, 1, 30, 36, 110, 80, 314, 73, 178, 0, 31, 42, 136, 82, 383, 69, 187, 0, 32, 28, 124, 82, 360, 67, 148, 0, 33, 40, 120, 85, 369, 71, 180, 0, 34, 40, 150, 100, 333, 70, 172, 0, 35, 35, 100, 70, 253, 68, 141, 0, 36, 32, 120, 80, 268, 68, 176, 0, 37, 31, 110, 80, 257, 71, 154, 0, 38, 52, 130, 90, 474, 69, 145, 0, 39, 45, 110, 80, 391, 69, 159, 1, 40, 39, 106, 80, 248, 67, 181, 0, 41, 40, 130, 90, 520, 68, 169, 1, 42, 48, 110, 70, 285, 66, 160, 1, 43, 29, 110, 70, 352, 66, 149, 0, 44, 56, 141, 100, 428, 65, 171, 1, 45, 53, 90, 55, 334, 68, 166, 0, 46, 47, 90, 60, 278, 69, 121, 0, 47, 30, 114, 76, 264, 73, 178, 0, 48, 64, 140, 90, 243, 71, 171, 1, 49, 31, 130, 88, 348, 72, 181, 0, 50, 35, 120, 88, 290, 70, 162, 0, 51, 65, 130, 90, 370, 65, 153, 1, 52, 43, 122, 82, 363, 69, 164, 0, 53, 53, 120, 80, 343, 71, 159, 0, 54, 58, 138, 82, 305, 67, 152, 1, 55, 67, 168, 105, 365, 68, 190, 1, 56, 53, 120, 80, 307, 70, 200, 0, 57, 42, 134, 90, 243, 67, 147, 0, 58, 43, 115, 75, 266, 68, 125, 0, 59, 52, 110, 75, 341, 69, 163, 0, 60, 68, 110, 80, 268, 62, 138, 0, 61, 64, 105, 68, 261, 66, 108, 0, 62, 46, 138, 90, 378, 67, 142, 0, 63, 41, 120, 90, 279, 70, 212, 0, 64, 58, 130, 90, 416, 68, 188, 0, 65, 50, 160, 110, 261, 66, 145, 0, 66, 45, 100, 70, 332, 67, 144, 0, 67, 59, 156, 90, 337, 67, 158, 0, 68, 56, 120, 92, 365, 65, 154, 0, 69, 59, 126, 96, 292, 67, 148, 0, 70, 47, 110, 80, 304, 67, 155, 0, 71, 43, 95, 70, 341, 69, 154, 0, 72, 37, 120, 74, 317, 74, 184, 0, 73, 27, 100, 60, 296, 67, 140, 0, 74, 44, 110, 80, 390, 66, 167, 0, 75, 41, 120, 80, 274, 69, 138, 0, 76, 33, 120, 80, 355, 68, 169, 0, 77, 29, 115, 80, 225, 70, 186, 0, 78, 24, 120, 80, 218, 69, 131, 0, 79, 36, 108, 66, 298, 67, 160, 0, 80, 23, 110, 78, 178, 66, 142, 0, 81, 47, 120, 80, 341, 70, 218, 1, 82, 26, 110, 75, 274, 70, 147, 0, 83, 45, 130, 90, 285, 65, 161, 0, 84, 41, 164, 110, 259, 66, 245, 0, 85, 55, 125, 88, 266, 67, 167, 0, 86, 34, 110, 80, 214, 67, 139, 1, 87, 51, 110, 75, 267, 66, 150, 0, 88, 58, 120, 80, 256, 67, 175, 0, 89, 51, 118, 88, 273, 64, 123, 0, 90, 35, 110, 75, 348, 72, 174, 0, 91, 34, 118, 78, 322, 69, 192, 0, 92, 26, 120, 70, 267, 70, 140, 0, 93, 25, 110, 75, 270, 74, 195, 0, 94, 44, 100, 70, 280, 65, 144, 0, 95, 57, 130, 85, 320, 69, 193, 0, 96, 67, 110, 80, 320, 64, 134, 0, 97, 59, 160, 90, 330, 63, 144, 0, 98, 62, 130, 88, 274, 69, 179, 0, 99, 40, 140, 90, 269, 63, 111, 0, 100, 52, 120, 90, 269, 68, 164, 0, 101, 28, 130, 80, 135, 67, 168, 0, 102, 34, 115, 80, 403, 69, 175, 0, 103, 43, 122, 78, 294, 68, 173, 0, 104, 38, 125, 80, 312, 71, 158, 0, 105, 45, 110, 80, 311, 69, 154, 0, 106, 26, 120, 84, 222, 72, 214, 0, 107, 35, 112, 90, 302, 67, 176, 0, 108, 51, 120, 90, 269, 70, 262, 0, 109, 55, 120, 82, 311, 71, 181, 0, 110, 45, 130, 90, 286, 73, 143, 0, 111, 69, 160, 90, 370, 67, 185, 1, 112, 58, 140, 90, 403, 66, 140, 0, 113, 64, 190, 100, 244, 66, 187, 0, 114, 70, 190, 112, 353, 66, 163, 0, 115, 27, 112, 78, 252, 68, 164, 0, 116, 53, 155, 104, 453, 66, 170, 0, 117, 28, 115, 65, 260, 66, 150, 0, 118, 29, 110, 80, 269, 68, 141, 0, 119, 23, 120, 82, 235, 65, 135, 0, 120, 40, 120, 78, 264, 71, 135, 0, 121, 53, 160, 90, 420, 67, 141, 0, 122, 25, 110, 75, 235, 69, 148, 0, 123, 63, 130, 90, 420, 69, 160, 1, 124, 48, 110, 78, 277, 71, 180, 1, 125, 36, 120, 80, 319, 70, 157, 0, 126, 28, 120, 86, 386, 70, 189, 1, 127, 57, 110, 68, 353, 71, 166, 0, 128, 39, 110, 80, 344, 66, 175, 0, 129, 52, 130, 90, 210, 65, 172, 1, 130, 51, 140, 90, 286, 67, 134, 0, 131, 37, 120, 90, 260, 67, 188, 0, 132, 28, 110, 75, 252, 67, 149, 0, 133, 44, 120, 90, 336, 72, 175, 0, 134, 35, 100, 70, 216, 66, 126, 0, 135, 41, 100, 65, 208, 69, 165, 0, 136, 29, 120, 80, 352, 68, 160, 0, 137, 46, 125, 90, 346, 63, 155, 0, 138, 55, 148, 90, 259, 71, 140, 0, 139, 32, 100, 70, 290, 70, 181, 0, 140, 40, 125, 90, 239, 67, 178, 0, 141, 61, 154, 80, 333, 66, 141, 0, 142, 29, 100, 60, 173, 69, 143, 0, 143, 52, 110, 80, 253, 70, 139, 0, 144, 25, 120, 80, 156, 67, 136, 0, 145, 27, 110, 70, 156, 67, 150, 0, 146, 27, 130, 90, 208, 69, 185, 0, 147, 53, 130, 80, 218, 73, 185, 0, 148, 42, 120, 80, 172, 68, 161, 0, 149, 64, 115, 75, 357, 67, 180, 0, 150, 27, 130, 90, 178, 74, 198, 0, 151, 55, 110, 70, 283, 70, 128, 1, 152, 33, 120, 80, 275, 67, 177, 0, 153, 58, 110, 80, 187, 71, 224, 0, 154, 51, 110, 80, 282, 71, 160, 0, 155, 37, 134, 80, 282, 71, 181, 0, 156, 47, 120, 70, 254, 65, 136, 0, 157, 49, 120, 90, 273, 71, 245, 0, 158, 46, 150, 104, 328, 71, 187, 0, 159, 40, 110, 70, 244, 70, 161, 1, 160, 26, 110, 80, 277, 74, 190, 0, 161, 28, 110, 70, 195, 73, 180, 0, 162, 23, 108, 68, 206, 71, 165, 0, 163, 52, 125, 90, 327, 65, 147, 0, 164, 42, 110, 75, 246, 67, 146, 0, 165, 27, 115, 88, 203, 70, 182, 0, 166, 29, 120, 80, 185, 72, 187, 0, 167, 43, 122, 78, 224, 66, 128, 0, 168, 34, 110, 70, 246, 68, 140, 0, 169, 40, 120, 80, 227, 67, 163, 0, 170, 28, 115, 70, 229, 70, 144, 0, 171, 30, 115, 70, 214, 71, 150, 0, 172, 34, 108, 75, 206, 71, 137, 0, 173, 26, 120, 80, 173, 67, 141, 0, 174, 34, 135, 90, 248, 70, 141, 0, 175, 35, 100, 70, 222, 73, 190, 0, 176, 34, 110, 60, 230, 73, 167, 0, 177, 45, 100, 70, 219, 69, 159, 0, 178, 47, 120, 80, 239, 67, 157, 0, 179, 54, 134, 90, 258, 66, 170, 0, 180, 30, 110, 80, 190, 69, 132, 0, 181, 29, 110, 80, 252, 68, 155, 0, 182, 48, 110, 80, 253, 72, 178, 0, 183, 37, 120, 88, 172, 71, 168, 0, 184, 43, 138, 94, 320, 65, 159, 1, 185, 31, 124, 90, 166, 67, 160, 0, 186, 48, 140, 85, 266, 71, 165, 0, 187, 34, 110, 80, 176, 72, 194, 0, 188, 42, 130, 80, 271, 70, 191, 1, 189, 49, 122, 94, 295, 73, 198, 0, 190, 50, 130, 85, 271, 68, 212, 1, 191, 42, 120, 80, 259, 64, 147, 0, 192, 50, 140, 95, 178, 68, 173, 1, 193, 60, 160, 100, 317, 72, 206, 0, 194, 27, 124, 80, 192, 70, 190, 0, 195, 29, 120, 85, 187, 68, 181, 0, 196, 29, 110, 70, 238, 72, 143, 0, 197, 49, 112, 78, 283, 64, 149, 0, 198, 49, 100, 70, 264, 70, 166, 0, 199, 50, 128, 92, 264, 70, 176, 0, 200, 31, 105, 68, 193, 67, 141, 0), nrow=200, byrow=TRUE))
More information about the R-help
mailing list