Re: [R] installation problem on Ubuntu

2016-04-22 Thread Paul Tremblay
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH source ~/.bash_profile I still get the same error. On Thu, Apr 21, 2016 at 7:45 PM, David Winsemius wrote: > > > On Apr 21, 2016, at 1:23 PM, Paul Tremblay > wrote: > > > > I was able to install the curl

Re: [R] installation problem on Ubuntu

2016-04-21 Thread Paul Tremblay
t-get install curl libcurl4-openssl-dev > > On Wed, 2016-04-20 at 09:36 -0700, Paul Tremblay wrote: > > I needed to update R so I could install ggplot. I am running Ubuntu > 12.04. > > I cannot upgrade Ubuntu because I am using a work computer. > > > > I tried up

[R] installation problem on Ubuntu

2016-04-20 Thread Paul Tremblay
I needed to update R so I could install ggplot. I am running Ubuntu 12.04. I cannot upgrade Ubuntu because I am using a work computer. I tried upgrading the normal way: sudo apt-get update sudo apt-get install r-base r-base-dev But this only installed an earlier version. Finally I tried install

[R] faster way to use filter this

2016-04-15 Thread Paul Tremblay
I have the following (simplified) vectors: index <- c("shoe" "shirt" "fruit") cost <- c(100, 50, 2) data <- c("shirt", "shoe", "vegetable") I want my outcome to be: (50, 100, 0) (shirt => 50, shoe => 100, vegetable => not found, so 0) I have written the following function: for (i in custom_l

[R] Create a heat map with German postal codes

2015-02-06 Thread Paul Tremblay
Hi, I am tasked with making a map of German postal codes for a few major cities in Germany. Each postal code will have a differnt color, depending on a metric. For simplicity, let's just use population density. This is what I have achieved so far for London (which I used as an example). I have be