@CathG I was active on R mailing list before. Last year I had a skype interview in which I was asked to write some code for a specific problem, which I couldn't do in 20 secs (on a stopwatch). That is when I thought I should improve my skills and there is no other place than stackoverflow to do that.
I recently had to use R to automate some generation of "ffmpeg" commands because I couldn't think about how to do it just with "ffmpeg" :-) Kind of a funny combination....
Video processing running in my RStudio workspace....
@CathG It is because of the competitive nature here. There are a lot of people who raise the competition so everybody gets benefited in the end wrt to skill levels.
Is it? I was interviewed for a small lab in University of California. It was a fizzy matching, but I was a bit handicapped as the laptop I was using didn't have the R loaded and writing a pseudocode without testing is difficult for me.
@DavidArenburg I sometimes do tell them how to do it, but still they have some problem in moving the cursor to click the tick button. Yes, I did that a couple of times :-)
It is a bit slow because of the moderation. Sometimes I had to wait for 24 hours or more to get the answers posted. By that time, the OP must have figured it out by himself
@DavidArenburg oh yes indeed, my mistake (I was stupidly looking for a reason in the bounty "banner" ;-) ) so the reason is that there is none ? interesting...
@DavidArenburg btw does "Kak Dela" mean "hello" in russian (might as well also improve my russian skills, I mean, start them, for now I only know how to say bread...)
funny (?) here, the accepted answer is less efficient than the OP's solutions (he gave 2 methods). Actually, the guy seems quite good to develop crafty efficient code
and accepted answer does not even work, puzzling...
That's interesting. So anyways, my first language is French, I'm recently engaged, I work for a financial institution, I'm on the business side, defining with upper management the strategies for our commercial activities (not from an IT background), I'm learning R through StackOverflow (learning by answering and reading from you guys).
Is there any way to save your workspace code to a file? I would like to save each version of my program in R using RStudio, simply by running the code itself.
@DavidArenburg Yes, I noticed that from Ananda Mahto's comment yesterday or so. Today, there was a similar post using magrittr but I feel sorry for user20650 as he deleted the answer.
@DavidArenburg If you post a really good data.table solution with a good pitch such as "modify by reference" and not copying etc., it will create a good impression and will accept your answer. It happened a couple of days back where you posted a data.table solution on a dplyr question and got accepted.