« first day (776 days earlier)      last day (2399 days later) » 

5:51 AM
Can I get somebody to strike the death blow to this question? stackoverflow.com/questions/13677557/r-pie-chart-percentage
 
 
3 hours later…
8:26 AM
AFAICR, homework tag has been deprecated.
We had an earth quake this morning.
I just woke up seconds before it hit. Alert as a cat, I tell you. Meow.
It was only 3.9.
 
 
2 hours later…
10:24 AM
@RomanLuštrik - yep, I know homework is deprecated, but I thought I would make a poor attempt at humour. Humour me.
It's supposed to be 40C / 100F here tomorrow - I think I'd still rather have that than an earthquake though.
 
I saw a drama-documentary yesterday that talked about Europeans discovering Americas 17.000 years ago - during one of the ice ages.
 
Us Aussie folk must have missed the ice age...
 
A friend of mine migrated near Melbourne and he loves it there. Free food all around him (rabbits). :)
He tried snares, but then found someone with a small caliber rifle, which made hunting way too easy.
Where are you located?
 
I'm in sunny Brisbane - no rabbits near me but I wouldn't mind finding the possum that ate my basil plant.
I see you're in Slovenia - I looked into going to Ljubljana for a holiday but flights aren't cheap from down here.
 
10:41 AM
If you're ever "in the neighborhood" (which is pretty much anything in Slovenia), make sure to drop me a line.
I'm thinking of visiting my aunt near Sydney and then travel the outback a bit, maybe see the Reef up north.
 
I love how everything is close in Europe. It just takes an age to get anywhere in Oz.
North Queensland is nice if you can stand the humidity. Sydney is probably more interesting than Brisbane but I couldn't afford to live anywhere near the city down there.
 
I imagine Sydney is like our Adriatic region. They both have mediterranean climate. One wouldn't believe how different unrelated plant species adapted in a very similar manner (under the same mediterranean climate) in four places - California, Mediterranean, South Africa and south eastern Australia.
 
11:05 AM
I'll have to take your word for it - my biology knowledge peaked at about high school! It probably is a pity Sydney is such a mess of urban sprawl though.
 
 
2 hours later…
12:56 PM
So, I have a very basic question. If I have a data frame and select one entry (that appears to be a character vector), how can I treat this as a string and split it?
> str(data[2, ]["accepted_tags"])
'data.frame':	1 obs. of  1 variable:
 $ accepted_tags: chr "Mediterranean Sea;Strait of Gibraltar;Atlantic Ocean;Gibraltar;Morocco;Africa;Spain;Europe;Strait;Rock of Gibraltar"
> strsplit(data[2, ]["accepted_tags"], ";")
Error in strsplit(data[2, ]["accepted_tags"], ";") :
  non-character argument
Nevermind. But why do I have to cast it as.character yet again?
strsplit(as.character(data[2, ]["accepted_tags"]), ";")
 
You are probably working with a factor.
strsplit only works for character vectors.
 
@Andrie I've read the whole data frame with stringsAsFactors=FALSE though
accepted_tags is one of the columns, so what type is data[2, ]["accepted_tags"] then?
 
I don't know. Post some reproducible code in a question.
 
Put differently: What does chr mean in the output of str(…)?
 
It should mean it's a character vector
 
1:05 PM
Huh. Weird. Because that's what it says about the entry.
 
Maybe it's because you're passing the data.frame to strsplit.
strsplit expects a character vector as input.
 
I'm passing data[2, ]["accepted_tags"] as the first argument, actually
 
I can see that, but that's still a data frame
 
According to str(data[2, ]["accepted_tags"]) that's already a character vector though?
 
Nope
it's a data frame.
 
1:07 PM
Ah, I see now
That's why this works as well: strsplit(data[2, ]["accepted_tags"]$accepted_tags, ";")
 
Yes
 
A weird-looking call
 
I put that down to programmer effectiveness.
 
Hm. strsplit(data[2, ]$accepted_tags, ";") works as well.
So let's stick with that then :)
 
Or data[2, "accepted_tags"]
 
1:11 PM
@Andrie True. Thanks for the help!
 
NP
 
1:39 PM
I get the impression that I am seeing trace of a brutal chatroom-is-not-a-helpdesk violation. But that can't be, so I must be dreaming. Nightmares, actually.
 
Warning: the R chat police is back on duty
 
Go gettem Dirk!
 
2:07 PM
I have a data.frame that I'd like to split by group, apply a function to each group, then combine the results... just kidding
 
 
2 hours later…
3:59 PM
@GSee Black star to you for backing out of your bait before you even hit enter.
Oh no, wait, it turned to gold!
 
@AriB.Friedman Everything that touches me turns to gold
 
you're a digital M1D45
 
4:30 PM
Here I am!
 
If my name were Sam, I could respond with "Sam I am!", and it might be considered clever. As it is, not so clever.
 
No, not clever at all. I'd give you a black star, if I could. F-
 
Joran == Not a Clever Boy
 
Welcome back @JoshuaUlrich. New job keeping you busy?
 
@GSee Yes, and my new daughter.
 
4:43 PM
Oh, right, right, right. I can imagine that would be ... distracting
 
No banter, please. The chat police is still watching
Especially you, @JoshuaUlrich
 
@Andrie Understood. Will revert to using chat as a help-desk.
 
@Andrie Sorry for getting off topic. So, then, back to my question. how could I split a data.frame by groups?
 
use Rcpp
That's always the answer.
 
But, Rcpp doesn't install when I have an ssh login built into my .Rprofile!!!!
 
4:46 PM
Unless you have Excel installed. Then just use Excel.
 
@Andrie I don't have Excel, but I have Lotus 1-2-3. Will that work?
 
:-)
 
we are working on building Excel into Rcp_p2. You all just wait.
 
@JoshuaUlrich Don't know. Let me get my old floppy disk with Lotus 1-2-3 and have a look.
 
@DirkEddelbuettel Should we hold our breaths?
 
5:03 PM
@RomanLuštrik Until you get blue in the face. Then stop.
 
Gaaaaaaaaaaaaaaaaaaaaaaaaaaaasp.
 
once you give up on Lotus 1-2-3 you can go magnetize a needle and hope your hand is steady
 
 
4 hours later…
8:56 PM
Could anyone tell me where to find a "how to create a package/library"?
 
@Dualinity help.start() then click the Writing R Extensions link
 
@Dualinity The Writing R Extensions manual.
@GSee jinx!
 
9:10 PM
@GSee @JoshuaUlrich Thanks guys.
 
The more I try to help people, the worse I feel...
 
10:06 PM
@DirkEddelbuettel I already googled, and I already found that one. I just hoped people here could advice me some more. I thought it was rude not to thank them.... tinyurl.com/ygkhqcv
 
Consider this room to be invitaton-only. And as of right now, you have no invitation. Just because we are generous with our time on the front page does not in any way imply you ought to abuse it here.
 
@Dualinity Pay no mind to Dirk's tone. He can get a bit prickly on this topic. Generally speaking, we try to discourage people from asking questions in chat, that's all. If you have a good question, ask it on the main site.
 
@joran Dirk, prickly? Never!
 
Which is still saying "get lost" in a whinier "why can't we all get along" voice
 
@JoshuaUlrich He's prickly, but cute: bit.ly/UCpkda :)
6
 
10:15 PM
+1, obviously. And I thought I had erased all picture of myself on the interwebs
 
@joran I DEMAND @DirkEddelbuettel switch his gravatar to that immediately.
@DirkEddelbuettel: you're the one in the middle, right?
 
Where does this sit on the 'before Hadley' and 'after Hadley' time scale:
.@LimLam8 The RStudio shortcut for " <- " is Alt+-
Note_how_it_protects_the_underscore
 
how is that a shortcut when it takes more finger gymnastics to implement?
2
 
Alt+< would have been nicer.
My fingers move down easier than they move up.
 
That's the same shortcut as in the Rgui on OSX.
 
10:35 PM
@DirkEddelbuettel Before. April fools day 2011. github.com/rstudio/rstudio/blob/…
The diffs are more relevant... github.com/rstudio/rstudio/commit/…
foresight?
 
11:08 PM
@JoshuaUlrich I was just trying to prevent you from helping another person, and hence feeling worse...
 
@joran Awww, that's so sweet!
 

« first day (776 days earlier)      last day (2399 days later) »