Description Usage Arguments Value Author(s) See Also Examples
Return the leftmost or rightmost or columns of a matrix or dataframe
1 2 |
x |
Matrix or dataframe |
n |
Number of columns to return |
An object consisting of the leftmost or rightmost n
columns
of x
.
Gregory R. Warnes greg@warnes.net
1 2 3 4 5 6 7 8 |
gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
Attaching package: 'gdata'
The following object is masked from 'package:stats':
nobs
The following object is masked from 'package:utils':
object.size
The following object is masked from 'package:base':
startsWith
Col_1 Col_2 Col_3 Col_4 Col_5 Col_6
[1,] 1 11 21 31 41 51
[2,] 2 12 22 32 42 52
[3,] 3 13 23 33 43 53
[4,] 4 14 24 34 44 54
[5,] 5 15 25 35 45 55
[6,] 6 16 26 36 46 56
[7,] 7 17 27 37 47 57
[8,] 8 18 28 38 48 58
[9,] 9 19 29 39 49 59
[10,] 10 20 30 40 50 60
Col_1 Col_2 Col_3 Col_4 Col_5 Col_6
[1,] 1 11 21 31 41 51
[2,] 2 12 22 32 42 52
[3,] 3 13 23 33 43 53
[4,] 4 14 24 34 44 54
[5,] 5 15 25 35 45 55
[6,] 6 16 26 36 46 56
[7,] 7 17 27 37 47 57
[8,] 8 18 28 38 48 58
[9,] 9 19 29 39 49 59
[10,] 10 20 30 40 50 60
Col_1 Col_2 Col_3 Col_4 Col_5 Col_6
1 1 11 21 31 41 51
2 2 12 22 32 42 52
3 3 13 23 33 43 53
4 4 14 24 34 44 54
5 5 15 25 35 45 55
6 6 16 26 36 46 56
7 7 17 27 37 47 57
8 8 18 28 38 48 58
9 9 19 29 39 49 59
10 10 20 30 40 50 60
Col_1 Col_2 Col_3 Col_4 Col_5 Col_6
1 1 11 21 31 41 51
2 2 12 22 32 42 52
3 3 13 23 33 43 53
4 4 14 24 34 44 54
5 5 15 25 35 45 55
6 6 16 26 36 46 56
7 7 17 27 37 47 57
8 8 18 28 38 48 58
9 9 19 29 39 49 59
10 10 20 30 40 50 60
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.