similar to: Problem with zoo::window()

Displaying 20 results from an estimated 900 matches similar to: "Problem with zoo::window()"

2012 May 28
2
zoo: variable gets modified at making zoo object
I'm doing: > alyL32007z <- zoo(alyL32007,alyL32007$time) > range(time(alyL32007z)) [1] "2007-01-01 00:00:00 UTC" "2007-12-31 23:30:00 UTC" But then, while the original variable is: > summary(alyL32007$NEE_st) Min. 1st Qu. Median Mean 3rd Qu. Max. NA's -15.340 -1.615 -0.054 -0.814 0.750 8.965 11124 the variable within the zoo object
2012 Jun 08
3
day of the year for chron objects
Hi! Is not there an standard R function to retrieve the day of the year (since 1st Jan of the same year)? I know I can make my own using julian, but find it weird that having days(), months() etc doy() does not exist as an standard function. Also, is the following not a bit inconsistent? > a <- chron("20100506",format="ymd") > a [1] 100506 > years(a) [1] 2010
2011 Sep 16
1
cutree() and rect.hclust(): different labelling of classes
I've found that while cutree() and rect.hclust() make the same classes for a given height in the dendrogram, the actual labeling of the classes is different. For example, both produce the same 4 classes but class 1 according to cutree() is class 4 according to rect.hclust(). Would it be possible that future versions provide the same labeling? rect.hclust() is useful to display the classes
2013 Feb 28
1
query labels in iplot() (or other interactive scatterplot)
By Ctr-moving the cursor over a point in an iplot() scatterplot (package iplots) it is possible to check the exact x,y coordinates of a given point. Is it possible to check a text label for that point as well? (i.e., the same info that would get printed on the graphic using text(x,y, labels=v) or with identify(x,y,labels), but I do not want to get the labels permanently plotted on the graphic)
2011 May 18
3
Date_Time detected as Duplicated (but they are not!)
I have a problem with duplicated date_time stamps that I do not see as duplicated. I read a file with observations taken every 30 minutes: > aur2009=read.csv(paste(datadir,"AUR_ECPP_2009.csv",sep="/"),sep=";",stringsAsFactors=F) > aur2009[1:3,1:5] Date.Time E_filled E_filled_flag LE_filled LE_filled_flag 1 1/1/2009 0:00 0 NaN 5.86
2012 May 29
1
problems with xlim in plot.zoo() and window()
I'm trying to get a minimally intuitive way of plotting zoo objects extracted for given periods of time I do: > plot(alyL32007z$NEE_st,col=cod,type="b",pch=18,xlim=time(alyL32007z)[c(3000,15000)]) and get a correct plot but the expression for xlim is hard to read by humans. I try > time(alyL32007z)[c(3000,15000)] [1] "2007-03-04 11:30:00 UTC" "2007-11-09
2013 Feb 17
0
strptime() with format %OS does not print millisecs in MacOS
Hi! I'm finding this on MacOS Lion 10.7.5 > getOption("digits.secs") NULL > a <- "2012_10_01_14_13_32.445" > strptime(a,format="%Y_%M_%d_%H_%M_%OS") [1] "2012-02-01 14:13:32" > strptime(a,format="%Y_%M_%d_%H_%M_%OS3") [1] NA I can solve it with > options(digits.secs=3) > strptime(a,format="%Y_%M_%d_%H_%M_%OS")
2006 Jul 19
3
illegal operation in debian (PR#9086)
Full_Name: Agustin Perez Version: 2.3.1 OS: Debian 2.6.8-11-amd64-generic Submission from: (NULL) (193.147.142.6) First of all excuses for my bad use of english and thanks for read my problem. Well when I do the following comand in R suddenly crashes and exit me for the enviroment: > a<-matrix(1:13500,450,30) > a%*%t(a) *** caught illegal operation *** address 0x2a9590086f, cause
2008 Jun 27
4
Recoding
Hi! Given a vector (or a factor within a df),i.e. v1 <- c(1,1,1,2,3,4,1,10,3) and a dictionary cbind(c(1,2,3),c(1001,1002,1003)) is there a function (on the same line than recode() in car) to get v2 as c(1001,1001,1001,1002,1003,4,1001,10,1003) ? I'm using myself a function based on match() since long ago (I think that thanks to advice by Prof. B. Ripley), but would like to know if there
2008 Sep 12
2
Greyed text in the background of a plot
Hi! Is there any way of having a greyed ("ghosted") text (i.e, 2006) in the background of a plot? I'm making a dynamic plot and would like to show the year of each time step as a big greyed text in the background. (the idea comes from Hans Rosling video: http://video.google.com/videoplay?docid=4237353244338529080&sourceid=searchfeed ) Thanks Agus -- Dr. Agustin Lobo Institut
1999 Jul 28
2
3d in R
Dear R-users and R-developpers, I've not been able to find 3d graphics in R, like Splus spin() or brush(). Are there any that I've missed and/or is anybody working on implementing these type of functions? Thanks Dr. Agustin Lobo Instituto de Ciencias de la Tierra (CSIC) Lluis Sole Sabaris s/n 08028 Barcelona SPAIN tel 34 93409 5410 fax 34 93411 0012 alobo at ija.csic.es
2008 May 19
2
Log or diary file
Hi! Is it possible to set a file to which both commands and output would get automatically saved? I've tried with sink(), but only get the output. I mean something like a combined history and sink, as you get with File/Save to File.. in the windows GUI. Tis is done with diary filename in Matlab, and you can state diary on and diary off to control what is being saved to the file. Thanks Agus
2004 Sep 16
5
Indexing lists
DeaR useRs: I have a list with 500 elements, in each other there are data.frames and I want to take the first row and the first column of each elements of my list since the first to the 500-th. Thanks and excuse my bad English. --- [[alternative HTML version deleted]]
2009 May 12
2
ubuntu problem with 'r-cran-robustbase' [FWD Agustin Lobo]
Agustin, posted on R-help. I think the problem is one of the debian/ubuntu package 'r-cran-robustbase' and its setup or (missing?) dependencies. I can confirm Agustin's problem, working on Ubuntu 8.04.2 (8.04 is a "LTS" = long time support version). apt-get install r-cran-robustbase works fine, but when trying to load the package, there's a DLL - dependency on
2009 Jul 03
4
Function to eliminate blank space within strings?
Is there an specific function to eliminate blank space within strings? Thanks -- Dr. Agustin Lobo Institut de Ciencies de la Terra "Jaume Almera" (CSIC) LLuis Sole Sabaris s/n 08028 Barcelona Spain Tel. 34 934095410 Fax. 34 934110012 email: Agustin.Lobo at ija.csic.es http://www.ija.csic.es/gt/obster
2009 May 12
2
[Fwd: Re: ubuntu problem with 'r-cran-robustbase' [FWD Agustin Lobo]]
Subject: Re: [R-sig-Debian] ubuntu problem with 'r-cran-robustbase' [FWD Agustin Lobo] Date: Tue, 12 May 2009 13:30:49 +0200 From: Agustin Lobo <aloboaleu at gmail.com> Reply-To: aloboaleu at gmail.com To: Dirk Eddelbuettel <edd at debian.org> CC: Martin Maechler <maechler at stat.math.ethz.ch>, R-SIG-Debian at stat.math.ethz.ch References: <18953.17704.527898.355877
2008 May 04
8
Web tool for management xen DomainUs ?
Hi! I like to allow to several DomainUs admins to admin his virtual servers with a web interface, without contact with Domain0. This tool must be opensource, and allow shutdown, reboot and see the logs with a web user / pw. Perhaps too the memory, CPU, ,,, of the virtual server. Are there any tool some this? Any pointer will be welcomed. Regards, Agustin
2003 Dec 15
2
Error with spdep
Dear useRs: First of all I would like to thank all the responses. I've an error with package "spdep". I am working with a Windows XP machine (AMD-2000-XP RAM-256DDR) and 1.8.0. R-version and when I try to load spdep appear the following error: > library(spdep) Error in loadNamespace(i, c(lib.loc, .libPaths()), keep.source) : There is no package called
2011 Aug 24
1
as.numeric() and POSIXct format
Hi! I'm confused by this: > as.numeric(as.POSIXct(518400,origin="2001-01-01")) [1] 978822000 I guess the problem is that as.numeric() assumes a different origin, but cannot find any default origin. How can I get back the seconds from the POSIXct format? In other words, which the inverse function of as.POSIXct()? I've tried as.numeric and unclass() using a origin=
2007 Jul 24
1
Renamig a factor
Which is the proper way to rename a factor? If I do: test$Parc[test$Parc=="Ol?rdola"]<-"Ol?rdola" R complains that Warning message: invalid factor level, NAs generated in: `[<-.factor`(`*tmp*`, test$Parc == "Ol?rdola", value = "Ol?rdola") Thanks Agus -- Dr. Agustin Lobo Institut de Ciencies de la Terra "Jaume Almera" (CSIC) LLuis Sole