« first day (2428 days earlier)      last day (747 days later) » 

7:09 AM
zero effort made...
-1
Q: Proportion of the row names in R

Mathmen I have this data, how can i find proportion of babies with the names "Clara" in R.

 
7:59 AM
@BenBolker Noticed a few of those questions here (lately), too... If you find it, feel free to share it.
@DirkEddelbuettel It's a mac, what did Bob expect?
@joran Saw that one. Great for checking genetic sequences.
A tad much for the wallet, though.
Step away from the code with your hands in the air. This is not C. stackoverflow.com/questions/44494208/…
 
8:20 AM
@BenBolker Perhaps we can make it this one? :) stackoverflow.com/questions/44484964/…
 
 
1 hour later…
9:37 AM
Did some company outsource their data department recently? It looks like an entire sweatshop had to switch to R...
@DirkEddelbuettel You da man of da Debian (at least for me you're the go-to source of information). Am I off here? I was sure about it, but now I'm doubting... stackoverflow.com/questions/44494258/…
 
9:52 AM
@JorisMeys I wanted to suggest to move the question to unix SE and remove the R tag... :)
 
10:37 AM
@RomanLuštrik been contemplating that as well, but I'm 99.9% sure you can configure R differently to avoid that problem.
 
@JorisMeys I never tell R to use its internal TZ db, so I don't like that answer much. My reading of the documentation for that option is that "other OSs" need it. Unix generally gets that right.
As for that question, I suspect simply different versions of the tzdata package. The question is only valid (IMHO) if you compare the most recent releases of each. Or compare current Ubuntu with testing (as stable is about to be replaced).
 
#include <Rcpp.h>

using namespace Rcpp;
// [[Rcpp::export]]
double test(){
  Rcpp::Environment Matrix("package:Matrix");
  return 1.0;
}

/*** R
test()
  */
The above gives me `Error in test() :
Cannot convert object to an environment: [type=character; target=ENVSXP].`.
Is that a user error or a bug? It works with package stats.
 
@DirkEddelbuettel Thanks!
 
10:53 AM
@Roland Did you do library(Matrix)? Also, wrong room ;-)
 
@DirkEddelbuettel Ah, stupid me. Thanks.
 
@Roland Yeah, just ran it here, and inserted library(Matrix) in the R chunk at the bottom. All good then.
 
11:10 AM
@DirkEddelbuettel Yes, sorry for the noise. I'm out of practice, but could finally answer an Rcpp question again.
 
@Roland Good stuff. Sparse matrices are underdeveloped from Rcpp and RcppArmadillo, but we have a GSoC student on it this year.
 
 
3 hours later…
2:33 PM
@Roland BTW: You can instantiate Rcpp::Function() without needing an environment. Just use a double colon ...
 
 
1 hour later…
3:37 PM
@DirkEddelbuettel Mmh, just using Rcpp::Function nearPD("nearPD"); works after loading Matrix, but how would I use a double colon, i.e., do this without loading the package? (This is probably a moot point for me since in a serious project I would build a package.)
 
4:19 PM
@Roland I was about to say most examples use "package::function", but a quick grep in out unit tests proves me wrong. Ooops.
 
 
3 hours later…
7:47 PM
can we zap this awful non-question?
0
Q: RStudio with Python kernels?

OldGuyInTheClub[Edited due to 'Hold': The question is specifically about whether RStudio has a capability, not asking for a recommendation of a package. The question also reflects other approaches tried before posting for context. The accepted answer indicates that the capability is not available and not pla...

 
 
4 hours later…
11:20 PM
Can anyone else confirm that these two lines of code give different results?
as.POSIXct("2017-10-01 02:30:00", "Australia/Sydney"); as.POSIXct("2017-10-01 02:30:00", format="%Y-%m-%d %H:%M:%S", "Australia/Sydney")
 
11:44 PM
I get "2017-10-01 01:30:00 AEST" in both cases. Ubuntu 16.10, R 3.4.0.
 
@DirkEddelbuettel - thanks for checking. I get one "2017-10-01 AEST" and one NA here on Win7, R 3.2.4. scratches head
 
Windoze uses a different TZ library, and IIRC one that is shipped with R.
 
@DirkEddelbuettel - this is what I get for trying to write a simple tutorial on timezone usage
 
@thelatemail Silly you. Clearly tempted the devil. That will require a lot of penance. Better do something tidy soon.
 

« first day (2428 days earlier)      last day (747 days later) »