« first day (282 days earlier)      last day (2893 days later) » 

3:44 AM
@Roman - I just checked, the Garmin device I use for cycling is a .fit extension and appears to be some compiled format...if those would be of any use to you I can zip them up and send them your way.
 
 
3 hours later…
7:14 AM
@Chase, sure, I can have a look. You can send them to romunov, and I'm stationed at gmail.
@Andrie, are you by any chance writing an answer to this one? stackoverflow.com/questions/6855059/…
 
Should be straigh-forward, but am rushing to get a few things done before my 9am meeting.
Go for it!
Suggestion: Do the random replacement before adding the new row.
 
7:46 AM
Good point!
Shaved off a few lines.
The trick was to use [][].
 
8:24 AM
@RomanLuštrik it only works for a single replacement, not multiple replacements and the expected result for the example given should have two NA not one.
 
9:09 AM
Lemme see. When I tested the code, it worked.
I understood that OP wants one value replaced, not two. This is the quote from the question: Now, for every column where I.vec is equal to 1, I want to randomly select a value from the other rows and make it zero.
Which I think is a bit strange, because you could replace zero with zero, but hey, I only work here.
 
9:24 AM
@RomanLuštrik Basically, I read this as for columns 2 and 3, replace a value in column 2 and in column 3, at random with a zero. Columns 2 and 3 having been determined by the presence of 1s in I.vec.
 
I think you're right. I should sample for every column.
Ok, I'll remove my answer.
 
If you look closely at her example output, entries in both columns 2 and 3 have had a an element replaced by a 0.
@RomanLuštrik Just update it, if you can. You make some valid points.
 
Maybe later, I'm currently doing CPR on an old ThinkPad.
 
@RomanLuštrik Be sure to get adequate chest compression. The TV shows always show wussy CPR.
 
9:48 AM
It's taking more than it should have. I get some non-standard beeps that are not in the manual. Searching for beeps on the internet is not an easy task. :)
 
10:46 AM
Searching for beeps is easy. You just pick up the mouse and talk into it: "Computer!"
 
No LCARS here.
 
I'm still waiting for transparent metals
 
Look at Ft. Knox. I think they may have some transparent gold in there.
 
 
3 hours later…
2:08 PM
@gsk3 "Hello computer."
 
 
6 hours later…
8:29 PM
Re-asking (chat.stackoverflow.com/transcript/message/1106375#1106375) now that I have no peer review on edits and the question has become more urgent: Anyone have any strong opinions against my editing an answer just to add an image of the plot that the answerer's code produced? I've been on a learn ggplot2 kick and this situation has come up a few times in the last few days....
 
@gsk3 I don't see a problem with it. Just make sure you're running the code the answerer provided so you don't accidentally create a plot that looks different than what the code creates.
 
@JoshuaUlrich Yeah I think I'm ok there. Generally it's when I look through an answer and someone's posted a reproducible code snippet that I want to visualize how the code fits the plot. So I'll run the code snippet and, since it's there already, just save the plot and upload it in an edit.
I'm not too worried about forcing posts into community wiki mode, since generally there are no other edits.
 
@gsk3 I don't think there's any problem with that.
The author can always delete your pretty plot anyway.
 
Heh. Even though it's their pretty plot!
Just wanted to make sure I'm not abusing my newfound power. Thanks for the sanity check.
 

« first day (282 days earlier)      last day (2893 days later) »