Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 20th, 2018
69
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
df <- data.frame(c(1:10))
pairwise <- function(i, j) { df[i,] + df[j,] }
m <- outer(1:nrow(df), 1:nrow(df), FUN = Vectorize(function(i,j) pairwise(i, j)))
Add Comment
Please,
Sign In
to add comment
Public Pastes
Brave new world
C# | 8 min ago | 6.10 KB
Slot Disk Writer
Lua | 9 min ago | 0.19 KB
Untitled
HTML | 14 min ago | 2.64 KB
Abre IMGUR
Python | 16 min ago | 1.27 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 46 min ago | 0.39 KB
Untitled
PHP | 1 hour ago | 11.28 KB
Python: MonitorOff
Python | 1 hour ago | 2.55 KB
Untitled
C++ | 1 hour ago | 1.80 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!