PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
11 sec ago
Untitled
14 sec ago
Untitled
16 sec ago
Extra mix xxx - only +18
28 sec ago
Untitled
22 sec ago
Untitled
24 sec ago
Untitled
27 sec ago
Untitled
27 sec ago
Untitled
By: a guest on
Apr 23rd, 2012
| syntax:
None
| size: 0.17 KB | hits: 8 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
R - extract submatrix with column name
A B C D E
A 1 3 5 7 9
B 2 4 6 8 10
C D E
A 5 7 9
B 6 8 10
m[, c("C", "D", "E")]
# C D E
# A 5 7 9
# B 6 8 10
create a
new version
of this paste
RAW Paste Data
R - extract submatrix with column name A B C D E A 1 3 5 7 9 B 2 4 6 8 10 C D E A 5 7 9 B 6 8 10 m[, c("C", "D", "E")] # C D E # A 5 7 9 # B 6 8 10