« first day (682 days earlier)      last day (2493 days later) » 

 
5 hours later…
8:59 AM
@Paul, hehe, Allen R. recommended me the ASDAR book. Funny thing is that I have an autographed version of the book. Edzer told me that this is the first book he had signed. :)
 
9:30 AM
@RomanLuštrik I read the early version of the book before it was published, when I still was edzers PhD
And i also got a signed version of the book :)
 
Hum. When was that? Whe the book came out?
Was it Roger then who signed the first copy? Bleh, my memory fails me.
 
10:11 AM
hi
quick query, for the set.seed() function, is it possible to start at a particular value (say 100) and then have increase the value by one each time a process if repeated?
 
What are you using for repeating the process?
for, apply, replicate...?
 
replicate
 
What I would do is create a vector of values you want to pass to RNG and after each replicate, remove the values from the vector. I would be passing the values to RNG from left to right and then NULL-ing the values already used.
 
Write a function that uses a closure to count how many times the function itself was called. Then use the output of that function as input to set.seed().
 
dz <- seq(100, 109, 1)
replicate(10, {
			rmv <- head(na.omit(dz), 1)
			set.seed(rmv)
			print(rmv) # debug
			dz[which(rmv == dz)] <<- NA
			runif(5)
		})
This is what I had in mind.
I think Andrie's suggestion was in the opposite direction - building dz from scratch.
Maybe put that into a question and other can chip in.
 
11:12 AM
I see @Spacedman could use a function to scrape feature coordinates, too. :)
 
I must obviously be doing it wrong. stackoverflow.com/questions/12208250/… a comment from my friend DWin and magically a number of +1 for other answers :).
frankly given the nature of the question I thought gsubfn was a natural fit especial if one extended the situation. Still the man has many Internets so it must be me.
 
I like all the answers. I'm a biologist, we CRAVE diversity. :)
 
lol I just watched prometheus.
 
11:29 AM
@RomanLuštrik read r-sig-geo?
 
Thanks for the answer roman
 
@Spacedman Yes.
@YesSure Yeah, sure, no problem. :)
 
but lets say i have a whole host of vectors in my code, coupled with a for function in the middle of it, and i want to run this code with a different seed for say 40 iterations. Whats the best approach in this situation?
 
I can't envision your entire workflow from the information you've provided, but feel free to detail your problem in a question. Others might have better (different) suggestions.
 
cool thanks roman, a question might be best
 
12:07 PM
anyway, off for a few days then its conference time....
 
Enjoy your weekend.
 
@ttmaccer Well there is no need to use any additional packages here, especially one with the none standard interface of fn$grepl(). Ordinary grepl() works fine and the OP didn't really need anything complicated. You should at least update your accepted Answer to match what the OP wanted - it gives the right answer to the wrong question (although the OP didn't really say what the right answer was until their comment)
 
@Spacedman Yes, odd. Konrad should know better. Added a comment.
 
12:23 PM
@GavinSimpson ridiculous comment frankly but thanks anyway for the downvote ;).
 
@ttmaccer I didn't downvote!
Only trying to explain why DWin might have commented as he did.
@ttmaccer Or was your posting here rhetorical...?
@ttmaccer And DWin's comment is spot on. gsubfn is really useful but not needed for something as simple as the OPs problem. Don't take these things too seriously...
 
@GavinSimpson you have a very elitist attitude my friend. Nobody was born big as they say.
Frankly I find you and yours extremely cliquey
 
@ttmaccer It may just be me, but I detect some sarcasm directed towards @GavinSimpson. I don't think that's justified, either in this case, or in general.
 
@ttmaccer Not sure what I've said is "elitist". You seem put out people haven't upvoted your answer more and that DWin dared to comment on your Answer?
 
@ttmaccer Keep in mind that StackOverflow voting can, at times, seem really weird.
2
There have been many occasions where I spend half an hour or more researching and typing an answer, only for no upvotes to result.
 
12:32 PM
@ttmaccer What, because you don't get up-voted enough!? Christ, you should look at some of my answers; lots of effort put in, etc but few votes. I'm not in here bleating about it though. The point of SO is not about you or I gathering the largest rep, it is about creating the best programming resource.
 
I am not bothered about votes but please all feel free to examine stackoverflow.com/questions/12079478/….
 
One thing I have seen, though, is that simple solutions seem to get higher scores. Where simple isn't easy to define. Elegant base R solutions qualify as simple, and sometimes solutions using packages that are easy to use also qualify as simple.
@ttmaccer OK, I've examined it. What should I see?
 
anyway chaps I will leave it there. I will continue to answer questions as I can best do. Gavin etc feel free to downvote upvote as you all see fit ;)
 
@ttmaccer Why haven't you downvoted that Answer (I know you haven't as I can see no-one has). You also seem to have deleted two of your own answers. If you have a solution post it so people can upvote it.
 
I upvoted his answer
 
12:35 PM
@ttmaccer There you go again being a jerk accusing people of downvoting. I haven't done anything of the sort!
 
subsequently I pointed out his mistake. The time limit was gone so all well and good.
 
@ttmaccer Yet you think it is wrong?! (Judging by your comments)
 
It is wrong
but never mind I withdrew my answers and left him to it.
 
Ladies and Gentlemen, I suggest "Godwin's new law": No public discussion of R is complete until someone mentions something from Hadley (or one of his fanboys / disciples).
 
@ttmaccer If it is wrong you should feel free to downvote.
 
@ttmaccer So why are you so quick to allocate your upvote?
 
@ttmaccer I suggest you undelete your own answers. If they shed more light on the question, then they should remain.
 
@ttmaccer This isn't a popularity contest. If you have a better Answer, post (or undelete) it so we can upvote it and thus provide a better Answer to the Question.
 
Well chaps lets not dig into this further. It doesnt really get us anywhere. I do my best to provide answers that are useful. If people dont like my methods all well and good. Apologies to all I may have insulted.
 
1:22 PM
I expect at least a star someone give me a star....
 
@ttmaccer Stars are only handed out after the payment has cleared at the bank.
3
 
Have to say as a novice R user, i find the majority of the guys here to be insightful and helpful
 
We help those who help themselves.
 
1:41 PM
Hi @YesSure. Just wanted to clear up some confusion from the other day. optimx will load several packages if they are installed. If they are not installed, it will just give a warning (and a different answer). That is not standard behavior in R functions which is what made it difficult to figure out why your code wasn't reproducible for me even though it worked for you in a clean session.
and since it does this for a lot of packages, you end up with a lot of warnings which means they don't appear unless you type warnings()
 
yes im aware if that now so will provide all info in future. managed to answer the question i was asking myself last night so have a nice tidy loop now. outstanding issue i have now is figuring out how to replicate the entire thing with a different particular seed each time. such fun
 
@DirkEddelbuettel but I have children and they have to eat. And @ Roman I think I have asked 1 question here ;) but thanks for all the help anyway.
 
@ttmaccer It was my rephrasing the bible (which I have not read, so I may be misquoting someone), and by that I meant that we're willing to help those who are willing to take the necessary steps.
 
2:07 PM
@JoshuaUlrich Next time you notice that I screwed up which package a function comes from in an old question, just go ahead and edit it for me.
 
@joran Not sure why I didn't. It was late and I was on an xts-retagging spree... so I guess it was a bit out of my scope at the moment. :)
 
2:57 PM
@Andrie and vice versa, an answer typed in 10 seconds might yield a dozen upvotes...
 
3:21 PM
OK @ttmaccer now you are starting to tick me off:
5
A: How to include object in regular expression

Gavin SimpsonMust admit to struggling to see what the problem is here. For the example stated nothing more than R> namez <- c("foo2003", "bar2340", "naught45") R> patternz <- "03" R> grepl(patternz, namez) [1] TRUE FALSE FALSE is required as patternz is a character vector and the aim is not...

read the comments
no need for this petty crap. go bother someone else.
 
Deep breaths, @GavinSimpson, deep breaths. :)
 
Wow, I've never seen @GavinSimpson be anything but saintly.
 
3:45 PM
@JoshuaUlrich I think given the level of provocation by @ttmaccer, @GavinSimpson is still being super saintly.
 
Did I miss the start of snark week? That would be horrible! I've been saving snarks all summer!
 
@GavinSimpson That stream of sarcastic comments were just deleted by a mod.
 
Well there is one more for them to delete now. Don;t normally rise to the bait, but I let my guard down today...
 
@joran I think I am still a little lost. Do you have a few minutes?
 
4:00 PM
@GavinSimpson Im disappointed by the offensive language used by yourself frankly for a man in your posistion I would expect better.
 
@ttmaccer Can you please just drop it. I don't know what @GavinSimpson did to annoy you, but please just keep it to yourself.
2
 
We can all have our differences but the key is to keep it clean. I am happy to drop it but you probably should apologise.
 
I don't find anything offensive about the word pissy. Please just drop it.
 
I did Andrie I did. Maybe we are from a different region.
 
@ttmaccer Hell will freeze over, pigs will fly etc etc before I apologise to you for those comments.
 
4:03 PM
@ttmaccer "Taking the piss" is a very common english expression, which doesn't cause offense. Just drop it.
 
Well Gavin that reflects badly on you sir and the institutions you represent. Good day sir.
 
@ttmaccer You might have had a point if I'd written what I wanted to say, but "pissy" is about as offensive as you sarcasm. Grow up.
 
@ttmaccer The exact same can be said about your overtly sarcastic comments.
@Andrie I'm offended by your use of 's' instead of 'z' in several common words.
 
Zuccezz
 
@ttmaccer Given that my contributions here reflect my own personal opinions and not those of my employer etc etc, I really don't care and neither do my employers. Universities are good like that.
 
4:07 PM
Would it be off-topic to ask which packages might be good for making a snark? mathworld.wolfram.com/Snark.html
 
How does one block people again? I see the need arising because someone here is getting a little tiresome.
 
@DirkEddelbuettel I'm sorry. I'll behave. Please don't block me again.
 
@DirkEddelbuettel Sorry, didn't mean to SPAM R Chat as well. Not sure I could stand being blocked by you here as well!
 
To lighten the mood:
Got up at 6am. Did yoga. Had a protein shake. Ran six miles. Started lying about everything.
2
 
To increase the suspense a little I didn't mean to imply either @JoshuaUlrich or @GavinSimpson
 
4:10 PM
@DirkEddelbuettel Phew... (wipes brow)
 
Well, that leaves just me. Sorry, @DirkEddelbuettel
 
@Andrie Keep counting down folks, it is getting warmer....
 
@Andrie You've been blocked. He can't see you.
 
Exactly
 
Ooh, just worked out how to ignore people. Wish I'd found that 3 hours ago...
 
4:18 PM
@GavinSimpson Only works in chat (as I understand).
 
@JoshuaUlrich Shame, but that'll do for starters :D
Ciao for now. Off to collect Emma from nursery.
 
Yes, it's certainly better than nothing; with the added bonus of being able to avoid my terrible jokes!
 
Ahah! I found it too!
 
Go away @ttmaccer
@GSee hate to be a pain but I would respect if you removed acknowledgements to this answer from your package. Thanks. You seem like a decent chap but alot of those you associate with I would prefer not too. Hope you understand. — ttmaccer 2 mins ago
Seriously. We all have bad days. Take a walk and a deep breath.
 
@Jonny Sorry, was away from my computer. I don't really have time for an in depth session, though, anyway.
@Jonny Ah, I see you got a good answer anyhow, excellent.
 
4:44 PM
I have made you anonymous in public. r-forge.r-project.org/scm/…. Have a nice day.
 
@GSee I think you meant "Good day sir."
 
5:01 PM
aw shucks. I wish I got my bounty back
 
@GSee Very bizarre behavior from the person who is not in the chat room at the moment.
 
Keep an eye out to see if they delete any more answers, for signs of a rage quit. We don't want them to remove all their content. IMHO that answer should be undeleted.
 
@joran They can always be undeleted.
 
Can accounts be frozen?
 
Voting to undelete:
@joran SO automatically detects serial deletion and this gets flagged to the mods.
 
5:18 PM
@Andrie Seconded, and acted.
 
@Andrie Good point, I should have figured that would be tracked.
@GSee Yes, people can be put in a "penalty box" for varying amounts of time, or in extreme cases removed completely. But it's pretty rare, and I doubt this rises to that level.
 
What a peculiar person...
 
@joran But, he suggested that I associate with people on SO! That's egregious! :-)
 
@GSee You have a point. Everyone should be banned for associating themselves with me. I'm a bad egg.
 
ttmaccer -> bibmamas -> editingisfun -> shhhhimhuntingrabbits
He recently became a dad. We should cut him some slack, he's obviously sleep-deprived.
 
6:03 PM
@joran Thanks for the hints! May I ask the approach if the months function would have not been there?
 
7:02 PM
@Jonny In that case, the solution would be to write your own months function. ;)
 
7:48 PM
@DirkEddelbuettel @Dirk Who are you calling a Hadley Wickham fanboy?? ....ok, I am totally guilty, I admit it :)
 
8:37 PM
@JoshuaUlrich I also get ~15% difference in 2.15.1 on OS X. Curious question.
 
@joran 32 or 64 bit?
 
64
 
9:07 PM
Clearly a Friday question:
0
Q: What is the assignment operator <- called when you read it out loud?

outisHow do you pronounce this "left arrow" combination of less than and dash? You can use it for assignment in R instead of =, and I don't know how to say out loud "Use <- instead of equals".

 
"I pronounce it, 'Frank'."
 
two_b <- "I think you're joking"
 
I'd say flabbergasted
Nice english word
 
First rule of assignment operators is not to talk about assignment operators.
 
You just did...
 
9:22 PM
That'll end badly, and you know it.
 
I want you to assign a value to a variable as hard as you can.
 
Try very hard not to think of an elephant.
 
Or we could call it the looks at operator
 
Do people really read code aloud?
 
I just say "BAM!"
 
9:27 PM
I must be missing out
 
@GavinSimpson Only at R user group events.
Which is where @GavinSimpson taught me to call it left assign, which I think works well.
 
@Andrie Did I? If I call it anything I use "assignment" or "assign". Maybe I was distinguishing that from the stupid -> operator which annoys me so
 
@JoshuaUlrich calls that one "!MAB"
4
 
@joran Immediate star!
 
@Andrie R poetry, that must be plyr, sounds fancy but doesn't get stuff done fast ;)
 
9:35 PM
@GavinSimpson I explain my choice of solution in a comment on the main post. Creating the regex within the variable rather than around it is way more elegant than any of the other solutions. Thanks for your input!
 
@DanielMachado Welcome - just hoping you weren't swayed into changing the accept by the comment of a certain user.
 
@GavinSimpson haha, I actually take his point. I don't mind requiring stuff if that will make up for readability. That's why we're using R instead of Fortran, isn't it?
 
@DanielMachado Well exactly, though I don't want to go over old ground as all I was doing in here earlier was explaining why DWin suggested gsubfn was overkill. None of that changes the validity of the Answer provided so for the life of me I don't know why it was downvoted.
 
@GavinSimpson I gave it a +1, so that down vote has been compensated ;)
 
9:52 PM
@GavinSimpson Dwin was a bit short there, and did not make clear why he wasn't happy with the solution. I would be a bit burnt with that sort of comment. Actually, I was, as Dwin did downvote another post of mine and just commented on how bad it was while I was still working on both the solution and editing the question for clarity. Sometimes the question becomes clearer as we approach the solution, not before that.
 
@DanielMachado I didn't think DWin was being short, just acknowledging the overkill. Which is a valid comment. The other answers were close and did use grepl() so I guess he saw no reason to add another Answer at the time. Most of the time I give people benefit of doubt on the interweb; very difficult to be misunderstood etc, and I doubt DWin meant to be short (in this specific case)
 
@GavinSimpson Sure DWin did not mean harm, but he wasn't as thorough in his comment to avoid misinterpretation. Can't do that online, unless you use an emoticon to hint your intentions. ;7) Ok, end of rant. {^_^}
 
@DanielMachado Main thing is you got your question answered.
 
Is it bad if I haven't even heard of this language before?
 
10:08 PM
@Alec Yes, hang your head in shame ;-)
R is an open source programming language and software environment for statistical computing and graphics. The R language is widely used among statisticians for developing statistical software and data analysis. R is an implementation of the S programming language combined with lexical scoping semantics inspired by Scheme. S was created by John Chambers while at Bell Labs. R was created by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand, and now, R is developed by the R Development Core Team, of which Chambers is a member. R is named partly after the first names...
 
@GavinSimpson Thanks
What is it really used for? I haven't heard of anything being made from it before.
Like are there any big projects that have been done with it yet?
 
Google uses R internally pretty heavily for their data analysis.
 
R looks like a bunch of scary math.
Atleast from the code example I see on Wikipedia
Yea I think I'll avoid it until I far-then my skills, looks way too complex for me.
 
10:41 PM
@Alec Is there a point to you cluttering this chatroom? If you got here randomly, try another draw, lots of other rooms available.
 
10:53 PM
@DirkEddelbuettel I'll shoo away, thank you.
 
11:09 PM
There are lots on introductory texts available, and there is a FAQ at the tag 'r'. This simply is not the room for first introductions. Have fun.
 

« first day (682 days earlier)      last day (2493 days later) »