search for: sleepingwel

Displaying 11 results from an estimated 11 matches for "sleepingwel".

Did you mean: sleepingwell
2012 May 19
3
converting csv to image file
Hello everyone, I want to get a 1km by lkm grid raster image using my csv data. If I call latitude=a, longitude=b and preciptation=c. a<-(1,2,3,4,5) b<-(6,7,8,9,10) c<-(10,20, 30,40, 50) Then I found an example in r help which goes like pts = read.table("file.csv",......) library(sp) library(rgdal) proj4string(pts)=CRS("+init=epsg:4326") # set it to lat-long pts =
2006 Mar 12
1
boosting for multi-class classification
Hi List, I can't seem to find a package that implements boosting for multi-class classification. Does such a package exist?
2014 Aug 12
1
Define 'in' for new class
Hi List, Is it possible to define how 'in' works for an object of a specific class (to achieve a similar result to implementing the iterator protocol in a class Python)? Cheers, Simon Knapp [[alternative HTML version deleted]]
2013 Jul 19
1
Problem with distributing data in package.
Hi List, I am building a package for a client to help them create and perform analyses against netcdf files which contain 'a temporal stack' of grids. For my examples and test cases, I create an example dataset in code (as this is a lot more space efficient than providing raw data). The code creates a netcdf file in tempdir() and an object of class 'ncdf' in the global namespace.
2012 Nov 06
2
Question on callNextMethod
I don't understand why I get the following results. I define two classes 'Base' and 'Derived', the latter of which 'contains' the first. I then define a generic method 'test' and overload it for each of these classes. I call 'callNextMethod()' in the overload for Derived. From the output, it appears that the overload for Base gets called twice. Why is
2011 Jul 04
2
RWinEdt problem
Hi R Helpers, I am a long time RWinEdt user and have just acquired a new laptop. I have installed RWinEdt and things are going smoothly except for one small glitch - file names are not appearing on the document tabs. When I use WinEdt (as opposed to RWinEdt), they are appearing. Can anyone offer any advice on this? Thanks in advance, Simon Knapp OS: windows7 Arch: 64 bit R version: 2.13.0
2014 Oct 17
1
Holding a large number of SEXPs in C++
Background: I have an algorithm which produces a large number of small polygons (of the spatial kind) which I would like to use within R using objects from sp. I can't predict the exact number of polygons a-priori, the polygons will be grouped into regions, and each region will be filled sequentially, so an appropriate C++ 'framework' (for the point of illustration) might be: typedef
2012 Nov 07
0
Strange behaviour in as.Date
I have been having trouble passing a default argument to base::as.Date.character and think it is due to some funkiness in the function definition. base::as.Date.character is defined as function (x, format = "", ...) { # stuff deleted res <- if (missing(format)) charToDate(x) else strptime(x, format, tz = "GMT") as.Date(res) } which gives
2012 Jul 03
1
Questions about imports to a namespace
Hi, I am a bit unsure about using imports in packages and have a few questions. I'm sure the answer to some of these is 'it depends', but I'm interested in what others think and 'best practices' when this is the case. 1) If I use an import or importFrom declaration in a NAMESPACE, should I also qualify the package in calls to the imported function (e.g.
2008 Mar 11
1
Question on substitute.
I have a data frame of around 4500 rows which contain file name prefixes and other interesting variables. each prefix corresponds to multiple files and a I only have 4300 complete sets of files. If any one of the files is missing for a given prefix, then the function I use fails. The effect is emulated by the function "f" and data "dummy.data": f <- function(x) if(runif(1)
2005 Dec 09
2
Blocking problem with embeded R (windows)
Hi all, I am trying to make calls to R from an MFC application running on XP and am having problems blocking the application while the call executes. I have tried the following approaches to using R from the application (note that I set a wait cursor while R is executing). 1) call rcmd in BATCH mode using system(). This works well, except that I get the cmd window popping up... which makes the