« first day (2381 days earlier)      last day (794 days later) » 

3:13 AM
OP answers his own question - probably not worth keeping around.
-2
Q: Calculating Summations in R without loops

Andy PapadopoulosSo I have this example: Σ i=1 32 √ i^(3)+log(5)  Which I need to solve using coding in R. My coding for this is: i<-seq(from=1,to=32) sqrt((i)^3+log(5)) sum(sqrt((i)^3+log(5))) But i'm not sure if it's correct. Any hints?

 
 
4 hours later…
6:46 AM
@thelatemail his Q isn't "how do i do this?" it's "is this right?". So I gave some hints on testing things.
 
 
14 hours later…
8:35 PM
Alternate title: I am really famous, and pretty old, yet still haven't found a semi-decent code editor...
 
i'm a fan of his, but yeah that's a silly problem. it took me maybe a minute to configure "comment/uncomment selection" shortcuts according to my preferences in notepad++
i do miss block comments, though, because unlike him, i do like to insert a good ramble in the middle of my script
 
That was one of the first thing melting my heart in Emacs some good 20+ years ago: mark a 'region' and say M-x comment-region and be reasonably sure it will work for any programming language. Here, ESS does the trick for us...
 
9:32 PM
@DirkEddelbuettel am tempted to suggest the use of /* block comments */ and running .R files through cpp :)
 
9:50 PM
Definition of insanity:
@joran I tried again and again, and it does the exact thing that I am trying ... — Bedir Tapkan 13 mins ago
 
10:09 PM
Oh my. rewrite all the modelling functions because pipes: github.com/drsimonj/twidlr
 
@Spacedman I actually started playing around with contributing to that (a variety of reasons, none being that I'm ideologically committed to the project). It's more complicated than I thought it would be.
 
10:58 PM
looks like mylm <- lm; formals(mylm) <- formals(lm) %>% { c(.[names(.) == "data"], .[names(.) != "data"]) }; iris %>% mylm(Sepal.Length ~ Sepal.Width) would do it..?
 

« first day (2381 days earlier)      last day (794 days later) »