« first day (681 days earlier)      last day (2494 days later) » 

1:35 AM
Off topic:
-2
Q: looking for UN region codes to match countries in R

user1612278I am looking for a downloadable dataset that will allow me to link countries from "http://spatial-analyst.net/DATA/WorldPolyCountries.Rdata" to UN geographical (continental) regions and geographical sub-regions (http://unstats.un.org/unsd/methods/m49/m49regin.htm). I have a lot of matching to do...

 
 
2 hours later…
 
5 hours later…
8:29 AM
I think Paul deserves some love for mending this cryptic feature of new_data. stackoverflow.com/a/12190397/322912
 
 
2 hours later…
10:21 AM
Consistent in arguments R is not. My greatest nightmares are tapply, by and aggregate.
 
Curiously, tapply and aggregate is a bit similar. But by is a mystery that passes me by.
 
10:44 AM
@RomanLuštrik I did not really mend it, I just added a warning when the user uses the wrong syntax
a fix would be using newdata instead of new_data, to make it consistent with gstat
however, I'm a bit reluctant to do that as it work break existing code...
 
11:12 AM
You could capture the argument and change it to newdata.
 
would be an option
 
Lemme check.
 
but at least now there is a clear error message
you could check list(...) for newdata and assign it to new_data inside the function
but I'm not really keen on this kind of black magic
right now the argument is called new_data, for better or worse
and you should use new_data
 
11:26 AM
Paul, do you know of a clean way of extracting values from a SpatialPolygons? coordinates() is handy for extracting the centroid and I was wondering if there's anything similar for coordinates. P@polygons[[1]]@Polygons[[1]]@coords is rather ugly if you ask me.
 
a really nice way is to use fortify
this is part of ggplot2
coords_dataframe = fortify(polygon)
it actually calls fortify.SpatialPolygonsDataFrame
I use this often to create a polygons data.frame which ggplot2 can plot
 
Good enough, thank you. Want me to put this as a Q?
 
Thats fine
and I'll respnd
was looking, but this does not seem to be a question which was already asked
2
Q: Convert map data to data frame using fortify {ggplot2} for spatial objects in R

GodinAI use to be able to run this script without any problem, but now the fortify {ggplot2} command gives me an error message. Any hint of what might be the problem would be great! I used the fortify command to be able to geom_map the shapefile using ggplot2. Below is my script and link for downloadi...

there is this post
 
Morning all. Need two more votes to 'Delete' the now-closed Rcpp question.
 
@Paul, I think this one answers the question, but would be PITA to find it.
 
12:02 PM
@DirkEddelbuettel it just got mine.
 
@GavinSimpson Thank you. Now, one more please to delete question '12188951'.
 
-3
Q: Compile c++ code with g++ and rcpp library

user1436187How can I compile the c++ code with g++ when I include Rccp.h header? I used these flags: -std=c++0x -g -O3 -Wall -pipe -pedantic -Wno-variadic-macros -L /usr/lib/R/site-library/Rcpp/lib -lRcpp and get these errors: "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .buil...

 
I guess I don't have enough rep yet.
I'm 500 short. :D
 
12:29 PM
@RomanLuštrik I replied
 
 
2 hours later…
2:16 PM
Tenkjuverimač.
 
:-)
 
Which is phonetically "thank you very much". :)
 
I gathered
 
In math notation 10Q>>.
2
 
 
2 hours later…
4:22 PM
curse you @DirkEddelbuettel and your pre-5-minute edits!
I deleted my comment in order to avoid looking like a doofus for mentioning something you edited in before the edit would be recorded as different from your original post.
 
4:59 PM
@JoshuaUlrich -- Thanks for answering my question about how to find the CRAN Archive directory's URL. Following up, how do you discover URL's for CRAN's subdirectories? When I go to http://cran.r-project.org/, and navigate to various folders, the URL in my browser's address bar remains unchanged. Is there an easy way to examine the directory structure at CRAN central?
 
Sure, follow the links from the per-package pages, eg all sources are in $CRAN/src/contrib/, and binaries eg in $CRAN/bin/linux/ubuntu/
You want $CRAN/src/contrib/$pkg/Archive for live packages, and $CRAN/src/contrib/Archive/ for retired packages
 
@JoshO'Brien I can see the full URLs in the lower-left corner of my browser (Firefox). If you open any of the links on the left-hand navbar in a new tab/window, you'll see the full URLs too. The homepage uses an iframe, which is why you don't see the URL change in your address bar.
 
@JoshuaUlrich Perfect. That was just what I was asking, and it works for me too.
 
 
3 hours later…
8:01 PM
How do I tell RStudio to forget about a project I created (just to show projects to a coworker) ?
 
@DirkEddelbuettel This is not tech support.
:)
 
By editing ~/.rstudio/monitored/lists/project_mru, it seems
 
@RomanLuštrik you're welcome
 
8:37 PM
The urge to want to break individual Rstudio panes into separate windows is overwhelming
I want my editor THERE and my graphics THERE on that other monitor thanks...
 
Ditto. That's why I prefer Rterm over RJ console in Eclipse.
 
@Spacedman Multi-monitor support would be nice. They're super-responsive to feature requests, though. Suggest it? support.rstudio.org/help/discussion/new
 
@AriB.Friedman I'm fairly certain that multiple monitors has been requested a lot.
 
@AriB.Friedman That's not true. I've been asking for vim keybindings from day 1 and I just got it.
But I'm not bitter.
 
super^H^H^H^H^H somewhat responsive
maybe my feature requests are just better than y'all's? :-)
 
8:50 PM
Probably. I'm still waiting for my pony.
 
"Hey RStudio, can you strip out all your window management code that makes it look all shiny and mac osxy so it can just have standard boring Windows chrome on everything and looks much more like the dull old R gui? kthx"
i'll go take my blood pressure tablets now.
 
"Get off my desktop!" is the new "Get off my lawn!"
 
9:28 PM
The weird thing is that they seem to do it in places. I still don't use RStudio all that much (hey, it doesn't rhyme with 'macs) but a) I managed to pop a help frame out [ though that may have been the desktop version ] and b) on version control the rather slick revision control view comes up in a new frame too. Maybe plots are just too heavy?
 

« first day (681 days earlier)      last day (2494 days later) »