It works for me: > d <- data.frame(a = c(1,2,3,4), b = c(1,2,3,4)) > rowSums(d) [1] 2 4 6 8
-
-
*spends half an hour learning what Prolog is*
-
Not enough time.
-
*accidentally uses up all brain power for the day and now can't do analysis properly*
-
Google "for loop on prolog" or something you think is easy in imperative programming languages.
-
Cause declarative languages just wanna fuck you up mentally.
-
You thought you know how to code? No m8.



-
prolog looks like a logician fell asleep and their cat danced on the keyboard
-
Write a plotting library for prolog.
End of conversation
New conversation -
-
-
A blast from the past (still carrying some of the trauma):pic.twitter.com/tPNdldulEO
-
(That trauma later made understanding some parts of Erlang, Mozart/Oz, and Haskell easier though).
End of conversation
New conversation -
-
-
hmm Prolog isn't there for data analysis tho, is it? I'd vote APL derivatives like J as combining data munging and declarativeness
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.