Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Aug 16th, 2016
141
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
R
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
dt
%>%
melt
(
"ID"
,
setdiff
(
colnames
(
dt
)
,
"ID"
)
)
%>%
group_by
(
ID
)
%>%
filter
(
value
==
max
(
value
)
)
%>%
summarise
(
max_item
=
paste0
(
variable, collapse
=
", "
)
)
%>%
ungroup
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
37 min ago | 12.80 KB
Untitled
1 hour ago | 6.26 KB
Untitled
2 hours ago | 21.86 KB
Shaman - Tank
2 hours ago | 18.84 KB
Untitled
4 hours ago | 12.36 KB
Untitled
5 hours ago | 6.19 KB
Untitled
6 hours ago | 21.84 KB
Untitled
8 hours ago | 19.79 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!