Si riferisce al pacchetto fortunes
, che è un pacchetto che contiene un intero serie di citazioni umoristiche e commenti dagli elenchi di aiuto, conferenze, forum e persino StackOverflow.
In realtà è un database o un piccolo dataframe che è possibile sfogliare.
library(fortunes)
fortune()
Per ottenere uno casuale. O per cercare un specifico, ad esempio:
> fortune("stackoverflow")
datayoda: Bing is my friend...I found the cumsum() function.
Dirk Eddelbuettel: If bing is your friend, then rseek.org is bound
to be your uncle.
-- datayoda and Dirk Eddelbuettel (after searching for a function that
computes cumulative sums)
stackoverflow.com (October 2010)
Se si desidera ottenere tutti in un dataframe, basta fare
MyFortunes <- read.fortunes()
I numeri a volte di cui, sono i numeri di riga di questo dataframe . Per trovare tutto su stackoverflow:
> grep("(?i)stackoverflow",MyFortunes$source)
[1] 273 275
> fortune(275)
I used a heuristic... pulled from my posterior. That makes it Bayesian, right?
-- JD Long (in a not too serious chat about modeling strategies)
Stackoverflow (November 2010)
fonte
2011-06-15 14:39:33
Sono famoso !!!!!!!!!!!! –
Sì, lo sei, ma non puoi mai, mai più usare questo scherzo ... – Andrie
L'ho usato già due volte oggi. Quindi prendi QUESTO! :) –