[R] Memory issues with R on Ubuntu

2013-06-13 Thread Halldór Björnsson
Hi, I am using an Lenovo Thinkpad with Ubuntu and 5.5Gb of RAM. I am running against a memory ceiling. Upon starting R the following command executes, but the system monitor tells me that R is now using 2.4 GB, and gc() agrees with that: m=matrix(data=1,ncol=18e3,nrow=18e3) gc()

[R] github_install problem

2013-05-04 Thread Halldór Björnsson
I am trying to use the github_install from the devtool package. I get the following error on install_github(roxygen): Peer certificate cannot be authenticated with given CA certificates This is probably some github security issue (and not strictly a devtools thing). Has anyone seen this

[R] read.table and variable length of tables

2012-06-14 Thread Halldór Björnsson
the table length changes. Is there a way to get read.table to always read in the correct length and just stop when it hits the trailing section? Sincerely, Halld ór -- Halldór Björnsson Sérfræðingur/Research Scientist Veðurstofu Íslands/Icelandic Met. Office [[alternative HTML version

Re: [R] read.table and variable length of tables

2012-06-14 Thread Halldór Björnsson
Thanks, even better - Original Message - On Jun 14, 2012, at 12:18 PM, Halldór Björnsson wrote: Thanks and with datlines - as.data.frame(inp[( grep(PRE, inp)[1]+5 ):(grep(/ PRE, inp)[1]-1)]); I suggest this instead. read.fwf(textConnection(datlines), widths=rep(7,11)) V1 V2

Re: [R] read.table and variable length of tables

2012-06-14 Thread Halldór Björnsson
Thanks and with datlines - as.data.frame(inp[( grep(PRE, inp)[1]+5 ):(grep(/PRE, inp)[1]-1)]); I get the data as needed. Thanks again H. - Original Message - On Jun 14, 2012, at 10:23 AM, Halldór Björnsson wrote: Hi, I am trying to read in weather balloon data, where each file

[R] bivariate linear interpolation

2011-05-04 Thread Halldór Björnsson
Hi, I have three matrices (X,Y,P) with the same dimension. The X,Y grid is regular and I want to perform linear interpolation to pick out certain points. In matlab appropriate call is something like Pout=interp2(X,Y,P,Xout,Yout, method=linear) where Xout and Yout are the locations where I want

Re: [R] image function with date-time on X axis

2010-04-30 Thread Halldór Björnsson
this works. Thanks again Halldór On Fri, Apr 30, 2010 at 2:05 AM, Peter Ehlers ehl...@ucalgary.ca wrote: On 2010-04-29 12:15, Halldór Björnsson wrote: I am trying to plot a image where the x axis has the units of time. When I issue the image(x,y,z) command with x as a POSIXct object, it fails

[R] image function with date-time on X axis

2010-04-29 Thread Halldór Björnsson
I am trying to plot a image where the x axis has the units of time. When I issue the image(x,y,z) command with x as a POSIXct object, it fails to put a time stamp on the x axis. Instead I get a warning Incompatible methods warning and no dates on my x axis. This example shows my problem:

[R] How to know what device I am using

2009-04-30 Thread Halldór Björnsson
Some years ago I wrote a plotting routine that was run on both Linux Windows computers. There were some differences in the way the plot looked from the windows device and the X11 device. To ensure consistency I used getOption(device)) and made some changes to the plotting if the windows device