« first day (1270 days earlier)      last day (1905 days later) » 

5:25 AM
Big day for reshape duplicates, one for going wide, one for going long.
0
Q: Create timeseries dataframe by aggregating same value records

CptNemoI am trying to order my data in a timeseries, where records are aggregated by the value of one column (country) and a new column is added for each year with the appropriate value. An example will probably be worth a thousands words: df <- data.frame(c("Andorra","Austria","Austria","Canada","Cana...

0
Q: Turning few columns to row and maintain the other

IantheHow can I turn partial columns to row and maintain the rest of the columns? I have a sample table like below : Name Date Math Science Computer Zed 201401 89 90 93 Ben 201401 98 92 89 Dan 201401 83 96 92 Des...

 
 
5 hours later…
10:31 AM
SVN drops a .svn folder into every package folder I have. Is there a universal way of filtering out all .svn folders within a package with .Rbuildignore, or am I 'doomed' to adding every line manually?
 
@joran I'm not sure how I like this. So far, I consider $ a quick and dirty operator (for interactive use mainly) and use [[ or [ for exact matching and programmatic use. I would be interested in their reasoning. Has this been discussed on the r-devel mailing list?
 
New package Rcpp11?
 
@Spacedman I prefer "Arceepeepeeeeeee" since that could be abbreviated Arcp2e11
 
Not Arceeepeepeewunwun?
 
11:32 AM
The problem is even deeper: Except where specifically mentioned, packages should not contain Unix-style ‘hidden’ files/directories (that is, those whose name starts with a dot).
 
@RomanLuštrik Old SVN. Newer SVN versions do just one at the top a la git. And R CMD build et al have been able to cope with this for, oh dunno, a decade? See the R code in base R.
 
Yes, the SVN server is quite old and gray. It won't be until this fall until it gets a face lift. Meh.
 
@RomanLuštrik It's a client side thing. (But using a more modern client version may require a more modern backend. Just play with some hosting sites.)
 
Fair enough. Perhaps it's time I upgrade Eclipse. :)
 
@RomanLuštrik Throwing it away would be better, but also note that the IDE has nothing to do with the versions of the programs it calls.
How old are you, and are you asking next how to update RStudio to get a newer R? ;-)
 
11:41 AM
@DirkEddelbuettel I will err on the safe side and assume that the new SVN version for Eclipse demands the newest version of it.
 
@RomanLuštrik You can assume whatever you want. I have long given up trying to understand what you use and why. We;ve been here before, no? ;-)
(Just kidding. I do understand institutional constraints and feel for you. Seriously.)
 
I use Eclipse because of CTRL+R+3 that runs an entire line/block of code. :)
 
@Spacedman Yes, somebody needed to turn it to eleven.
@RomanLuštrik ESS and RStudio and ... do that too and don't infest you with icky coffee beans.
 
Oh RLY? Lemme check... Ctrl+Alt+F seems to do something like that.
 
shouldnt it be C+=11;?
 
12:14 PM
 
 
1 hour later…
1:26 PM
Heh, just tried running document from roxygen2 and I got this error message: function 'enterRNGScope' not provided by package 'Rcpp'
 
@RomanLuštrik Update roxygen2. It's related the change in Rcpp 0.11.0 when we removed the external library. Old machine? Not updated?
 
@DirkEddelbuettel Ha, Rcpp version was lagging. Updated that and now it works.
 
@RomanLuštrik Yippie. I take that as a full-fledged victory that it works even in your Very Special (TM) environment.
 
Discovered another funny thing. I didn't install translations for R 3.0.3 and now StatET doesn't compile the documentation index properly. Which breaks package documentation for packages installed after the upgrade. Fun.
 
Friends don't let friends use Eclipse.
 
1:36 PM
@DirkEddelbuettel Perhaps I can whip up an icon for you to put on your website - "Even Eclipse compliant".
 
1:59 PM
Do we close this one as a typo? stackoverflow.com/questions/23013566/…
 
 
2 hours later…
4:00 PM
Can someone with knowledge of devtools tell me if my approach is correct and if this is the expected result?
> library(devtools)

Attaching package: 'devtools'

The following objects are masked from 'package:utils':

    ?, help

The following object is masked from 'package:base':

    system.file

> load_all("q:/workspace_kepler/edgeEffect/")
Loading edgeEffect
Loading required package: sp
Loading required package: rgeos
rgeos version: 0.2-17, (SVN revision 392)
 GEOS runtime version: 3.3.8-CAPI-1.7.8
 Polygon checking: TRUE

Loading required package: RMark
This is RMark 2.1.8

> ?load_all
Error in parse_Rd(path) :
 
4:50 PM
So @smci is making new tags "long-form" and "wide-form" exclusively within the r tag. is this desirable?
 
5:02 PM
@RomanLuštrik I can't imagine that is the expected result. It seems like the file edgeEffect.Rd might not be valid; check line 45 of that for "newline within quoted string". But what I don't understand is why that would matter for getting help on the function load_all. What version of devtools is that?
Digging into devtools some, the overridden ? function first looks in the attached development package for either a page of that name or builds the topic list and checks that. I'm guessing a malformed Rd file will cause that latter step to fail which cascades up and means that no help can be found via that route. As a workaround, you could use utils::`?`
But it seems like a bug, or at least undesirable behavior. After all, a package in development is rather (more) likely to have malformed documentation files. I'd file a bug report about it.
 
@Frank @smci No.
 
5:25 PM
@simmant If you have a question about the R programming language, feel free to drop into the other chat room.
 
@joran Okay, I agree though I don't know how to go about getting rid of them
 
@Frank At the moment, there are only ~8 questions with those tags I think. We could just remove the tags.
 
... and explain to him or her why, I guess. I don't have experience with such moderation/policing
 
5:45 PM
@Frank Contacting them directly isn't really something we need to worry about. You could leave a comment @-replying them on one of the questions if you really want to and point them to this chat discussion.
 
6:19 PM
@joran Ok thanks. The tags still exist since they have wiki entries, though. I also came across a "subsetting" (also mostly in r) that ought to be a synonym of "subset" stackoverflow.com/tags/subset/synonyms
 
 
3 hours later…
9:05 PM
@smci, feel free to come chat over at the R public chat room. chat.stackoverflow.com/rooms/25312/r-public
 
 
2 hours later…
11:17 PM
This one is a bit odd...
3
Q: Weird ggplot2 error: Empty raster

Ben GormanWhy does ggplot(data.frame(x=c(1,2),y=c(1,2),z=c(1.5,1.5)),aes(x=x,y=y,color=z)) + geom_point() give me the error Error in grid.Call.graphics(L_raster, x$raster, x$x, x$y, x$width, x$height, : Empty raster but the following two plots work ggplot(data.frame(x=c(1,2),y=c(1,2),z=c(2.5,2....

 

« first day (1270 days earlier)      last day (1905 days later) »