« first day (666 days earlier)      last day (2509 days later) » 

12:34 AM
@joran I find "SQL Pocket Guide" is helpful for finding analogous operations across DBs
 
 
7 hours later…
8:04 AM
RXKCD package is pretty cool
was only a matter of time ;)
 
@mdsumner Link?
 
<your mirror>/web/packages/RXKCD/index.html
I guess I should blog it :)
it's not new
speaking of which, is there an easy (i.e. please do my homework for me) way to get a list of the CRAN packages published by date, and filter out those that were first published only recently? I love the "sorted by date of publication", but "sorted by date of first publication" would be handy for keeping up with the bleeding edge
 
CRANberries?
Or is that too verbose?
or crantastic?
 
8:23 AM
sweet, that's it
I forgot about CRANberries, mixed up with crantastic
 
Is the 'new' section on cranberries available as an RSS Feed?
 
it doesn't seem to be accurate, "new" means something else
 
DIIIIIIIIIIIIIIIIIRK!!!
 
each page has its own RSS link
rbenchmark is there, maybe Dirk's packages get special "new" status :)
anyway, got to run cheers all
 
 
1 hour later…
9:39 AM
@Andrie, Just read some of the reviews. Congrats! Any chance on convincing the "Dummies" publishers to release a "low-price South Asia edition" for those of us on the Indian peninsula? I know some of the books in the series are available "for sale in India only", but I don't see this one.
 
10:01 AM
@mrdwab Thank you. Interesting question - I can ask. It's only been available in the UK for a few weeks, so hopefully other editions make their way across the globe in due course.
 
 
3 hours later…
1:18 PM
@Spacedman Yes?
 
we were discussing getting a list of new packages from cranberries
 
Only keeping a "chat" tab open at work, not at home, so catching up...
 
speaking of which, is there an easy (i.e. please do my homework for me) way to get a list of the CRAN packages published by date, and filter out those that were first published only recently? I love the "sorted by date of publication", but "sorted by date of first publication" would be handy for keeping up with the bleeding edge says mdsumner
 
(BTW re your web tweet: "static pages" all the time since 2003. I just a simple "page compiler", there have been other ones published since. The Debian cogniscenti swear by ikiwiki which is super flexible (and ugly "sans markup").)
CRANberries doesn't publish its sqlite db backend ... for fear of ridicule of its author as there isn't really a schema but just one "ole heap o'data" piling on...
But you could re-create that easily. When CRANberries started five or so years ago, I "seeded" the db by reading all the Archive/ directories giving you package name, date, and version. Et voila ...
 
1:52 PM
@mdsumner Thanks for the reference, that looks useful!
 
@Spacedman Yes
But there is a "bug" in new as it doesn't account for "born again" packages that were once in, got removed and are now flagged new.
 
well if mdsumner was here i'm sure he'll be interested to know the URL :)
zombie packages
 
The "new" test simply is: "there now, and wasn't there last time we checked, ergo NEW"
works for me, if he needs something better and has an itch to scratch....
 
is your site source code somewhere?
 
it is only 200 lines of R, and too specific to my setup with the db being a local sqlite file, and the html+rss generation "static" via blosxom
 
2:00 PM
crantastic is on github, but I think its ruby...
 
the basic logic was written in a weekend and is nothing special
retrieve results from available.packages(), store it; come back later and setdiff() available.packages against what you stored
Not much more to it
@Spacedman That counts as two or three strikes against it?
 
What's an exclamation mark mean in Ruby?
current_user.rate!(@package, params[:rating].to_i, params[:aspect])
does it add extra power to the method?
 
only if your nose ring is polished, and the macbook pro you are using is the current model -- in which case Ruby gives you super powers, guaranteed
Wow. Just got a polite 'thank you' from someone at Wiley. That was fast.
 
2:18 PM
Probably the first time that somebody uses my package ggdendro in an answer on SO:
2
A: Creating a legend for a dendrogram with coloured leaves in r

dickoaIf you already know how to use and tweak ggplot2 graphics, another solution will be to use @Andrie ggdendro package library(ggplot2) library(ggdendro) dm <- hclust(dist(USArrests[1:5,]), "ave") df <- data.frame(State = c("Alabama","Alaska","Arizona","Arkansas","California"), ...

 
3:03 PM
I've just been Ulriched.
3
 
@Andrie BAM!
 
:-)
 
That gets a star, to stoke my ego.
 
@Andrie Where? How? What? Did I miss something?
hate it when work gets in the way...
 
Anything to do with @JoshuaUlrich is very special.
See comments in:
5
A: R remove special characters from data frame

AndrieThere is probably a better way to do this than with regex (e.g. by changing the Encoding). But here is your regex solution: gsub("[^0-9A-Za-z///' ]", "", a) [1] "Energy per m" But, as pointed out by @JoshuaUlrich, you're better off to use: gsub("[^[:alnum:]///' ]", "", x) [1] "Energy per m"

 
3:11 PM
Niiiiice as my friend Borat would say :)
YIKES
I just started a new ad-hoc R file / script / test and assigned a variable in it via "=" instead of "<-".
I may need medical attention.
Or more coffee.
 
I just trawled my emails back to 1992, over at least three email systems, looking for some metadata on a spreadsheet...
and no i didn't find it
 
3:35 PM
@justin Did I just walk in on the middle of something there? stackoverflow.com/questions/11972242/…
 
@Thell haha sorta. the OP's question yesterday was also pretty cryptic. your answer is right, but I don't think he has a variable called data. he didn't show us the error or explain why it isn't working... but the lapply call isn't assigned to anything. Was just trying to get the op to write a little clearer and simpler code
1
Q: lapply and data.frame in R

StephopolisI am attempting to use R to accept as many user input files as required and to take those files and make one histogram per file of the values stored in the 14th column. I have gotten this far: library("tcltk") library("grid") File.names<-(tk_choose.files(default="", caption="Choose your files...

 
Ha! eeek. Well, persistence definitely counts for something. But....
Four questions all related to the same thing:: stackoverflow.com/users/1475619/stephopolis
@Justin; definitely correct clearer and simpler would be better.
 
Bah, try to write a robust solution and it's totally un-appreciated by the OP.
 
3:52 PM
I liked it!
 
@Justin But I didn't get the check mark, so I'm inconsolable.
 
I thought my answer was great and I hardly got any love either. We can be miserable together
 
Good idea @Justin; misery loves company. I'm a good sport though. I up-voted all other answers, except for @Andrie's... I can't stand that guy.
@Spacedman I loved your comment on R-devel!
 
I even gave @Andre a vote, but I still wanna see the tapply solution without explicit indexing.
 
4:12 PM
@Justin The indexing solves a different problem. And it's nice of you to preempt that the OP might encounter that problem some other time (but not in this case).
 
@Andrie :) I do what I can.
 
:-)
 
 
1 hour later…
5:22 PM
@Justin FYI, I have removed my answer.
 
@Andre how come?
 
@JoshO'Brien, if you're around, someone is looking for you: stackoverflow.com/q/11973854
(I don't understand why new users can't make comments)
 
@Justin I got fed up with the requests to generalise the answer to a situation the OP didn't describe
@GSee To prevent link spam. You only need 50 rep to comment, which isn't a very high barrier for bona fide users.
 
@Andrie, I guess that makes sense, but if you don't have any rep, chances are you aren't confident enough to post an answer yet ;-)
 
You can get rep by posting questions and accepting answers.
 
5:31 PM
Well, that's what the user in this case has resorted to
 
@Andre haha sorry I opened the can of worms :) I still think your answer was a worthwhile one
 
@Andrie Looks like the system is working (it's be hard to post a reproducible example as part of a comment)
 
@GSee -- Thanks for the heads up. Somehow, though, I didn't get any notification of your message, even though I should've outside of chat, right? (FWIW, the questioner wasn't able to manage reproducibility even given the question format. I don't have much hope for this one...)
 
5:51 PM
@JoshO'Brien Yes, you should have been notified even if you weren't in chat. Maybe it has to do with the apostrophe in your name?
 
@GSee -- That's probably it. My name never has played well with computers ;) I don't think that question will possibly have value for any other users, ever, and with 3 more votes, we can at least close it...
OK, spoke too soon. Maybe the larger question does -- just not the bit about raster::focal().
 
 
2 hours later…
7:46 PM
what to do with this guys stackoverflow.com/questions/11936953/… maybe close it. OP has pretty much redefined the question with a new edit and as noted above has 3/4 similar questions.
 
8:02 PM
@ttmaccer I have decided that that line of questions is a lost cause.
 
@Justin Yes agreed have just been reading meta.stackoverflow.com/questions/43478/… made me chuckle
 
8:15 PM
Is there a way, in a comment to have a link to an SO Q show the title instead of truncated url?
I seem to recall seeing something about that but can't find it.
 
@Thell [text goes here](url goes here)
 
@JoshuaUlrich gotcha. I seem to recall an SO shortcut too...
 
I don't know about that... I always type it out. That's how I roll.
 
8:42 PM
Hi all, Is there a way or function that simultaneously test out more than one strategy to form a combined equity view?
 
@user1234440 You need to provide some context... what are you talking about?
 
In R's quantstrat, I can simulate a trading strategy applied to some instruments. But if I have more than one strategy, it is possible to simulate the portfolio equity curve if I traded both strategies the same time? And to generalize, let say I want to trade n different strategies.
 
I think @JoshuaUlrich's consulting practice is somewhere else on the Intertubes than this chat room....
 
It wasn't meant to be directed only to anybody, I was just curious to whether anyone had any experience in such matters.
him*
 
9:01 PM
@user1234440, is there any reason to think that you couldn't?
 
nothing is impossible! just wondered if anyone done it before, don't want to reinvent the wheel. I assume one would take two equity curves returns and combine them but am a bit concerned about trading frictions..
 
Have you used quantstrat at all yet?
 
@GSee How would you do that? applyStrategy looks like it can only run one strategy at a time.
/me thinks this should be a question...
 
what's wrong with running one strategy at a time? same results, no?
quantstrat isn't very smart about wash trades as it is
 
What about capital requirements?
(yes, I know those aren't really there either)
 
9:13 PM
Do you think that's why quantstrat caused problems over there at Knight?
;-)
@user1234440, I am not a quantstrat user, but I believe an account could have several portfolios and/or several strategies can be applied to the same portfolio. However, as @JoshuaUlrich points out, only one strategy can be applied at a time.. so, there's no global risk management
 
Well I use a software for portfolio backtester called Trading blox, but then I have found it quite annoying to switch in between for more complicated strats. Theres no problem with simply combining the return series if you are simply getting an estimate. The problem comes in when you want to specify the amount of allocation between the systems to be constant as PnL of each system will vary.
 
You can pull trading blox's data into R easily using code in the inst/parser director of FinancialInstrument
directory*
It seems that if you want your strategies to know about each other, you could just make one, more complicated, strategy
 
yea meta strat that controls other strats. They got good functions in TBB for that. There is a gap R and TB as the language is quite different.
 
We are looking forward to your packages hitting CRAN. Always good to meet someone with a fresh itch to scratch...
 
I am sure there are much more brighter individuals out there that are very agile in programming than me, im talking to them right now ;)
 
9:23 PM
Yeah, that's the spirit. Let someone else do it :-(
 
For free, of course. And real fast please, I needed it last week.
 
oh nono, i didn't mean to imply that someone else should do it, i just don't think an undergrad like me can lead up a project
 
Wasn't there some famous guy who dropped out of college to start a computer company?
:)
 
My attitude to anyone asking questions about financial stats in R is... pay me first...
2
Whereas anyone asking questions about environmental stats or disease modelling gets "how can I help?"
 
I'll love to help out if anyone is willing to work together, im all for open source!
but i have come to realize nobody take young people like me too seriously, well at least in the finance world
 
9:37 PM
They will if you prove yourself. Go start a project on R-forge and get to work. ;-)
 
@user1234440 On the internet, no one knows your age...
 
thanks, ill see what I can do to!
 
I could be a dog, for all you know. :)
 
lol with facebook...linkedin...and all, its pretty easy to know who you are, where your from!
 
My searches for "user1234440" turned up nothing.
 
9:44 PM
haha, true. Your work and blog FOSS trading is an inspiration for young people!
 
@JoshuaUlrich, inspiring young people since 2008
 
Yeah, there aren't many successful 12 year olds like me.
 
 
2 hours later…
11:46 PM
@Spacedman @DirkEddelbuettel thanks for that and the explanation, CRANberries is more than good enough :)
 

« first day (666 days earlier)      last day (2509 days later) »