similar to: compute time span in months between two dates

Displaying 20 results from an estimated 3000 matches similar to: "compute time span in months between two dates"

2007 Oct 18
2
error: unused arguments
Hi what does this mean when i get above error? When I call function foo(), specifying parameters a and b as below a<-5 b<-6 > y <- foo(a,b) > Error in foo(a, b) : unused argument(s) (6) Thanks Zava -------------------------------------------------------- This is not an offer (or solicitation of an offer) to bu...{{dropped:24}}
2007 Jul 03
2
vertically concatenating data frames
Hi, what is the recommended way to vertically concatenate 2 data frames with the same column names but different number of rows? My problem is something along these lines: df1 <- data.frame(var1=var1,var2=var2,var3=var3) # nrow(df1)=1000 df2 <- data.frame(var1=var4,var2=var5,var3=var6) # nrow(df2)=2000 I tried df <- c(df1,df2), no success. stack does not seem to be appropriate
2007 Jul 12
2
lead
Hi, is there any function in R that shifts elements of a vector to the opposite direction of what Lag() of the Hmisc package does? (something like, Lag(x, shift = -1) ) Thanks Zava -------------------------------------------------------- This is not an offer (or solicitation of an offer) to buy/se...{{dropped}}
2007 Jul 17
2
poor rbind performance
Hi I rbind data frames in a loop in a cumulative way and the performance detriorates very quickly. My code looks like this: for( k in 1:N) { filename <- paste("/tmp/myData_",as.character(k),".txt",sep="") myDataTmp <- read.table(filename,header=TRUE,sep=",") if( k == 1) { myData <- myDataTmp } else{ myData
2007 Jun 14
2
connecting to DB2 database
Hi, i am trying to connect to a DB2 server using the DBI library. getData <- function() { driver <- dbDriver("DB2") conn <- dbConnect(driver,"server","uname","pword") data <- dbSendquery(conn, "select etc.") } When I run the function, i get the error > data <- getData() Error in
2007 Jul 05
1
converting list to an array
Hi, I have a list myList (see below) that consists of id's $'7',....,$'10' and each id has an individual array, the length of which can vary from id to id. How can I convert this list into an array, ie. stacking the individual arrays into one large array? Thanks Zava myList: $`7` [1] 20050201 20050301 20050401 20050501 $`8` [1] 20050201 20050301 20050401
2007 Jul 05
1
generating lower triangular matrix
Hi, I would like to generate below triangular matrix for some a. 0 0 0 0 0 0 1 0 0 0 0 0 a 1 0 0 0 0 a^2 a 1 0 0 0 a^3 a^2 a 1 0 0 a^4 a^3 a^2 a 1 0 What's an efficient way to do this? (this matrix being KxK, K very large) Thanks Zava -------------------------------------------------------- This is not an offer (or solicitation of an offer) to buy/se...{{dropped}}
2007 Jul 18
1
passing a parameter to a file from command line
Hi, I have a file fileFoo.R, say that contains these two lines, invoking function foo that is specified in "foo_details.R": source("foo_details.R") foo(parameter1) I want to specify and pass parameter1 in my command line when invoking R in linux: R --no-save <fileFoo.R. How can I do that? And how can I retrieve the value of parameter1 in my fileFoo.R function
2010 Oct 18
2
VectorComparison
Hi all, I am not exactly fluent in R and I got stuck with this. I would like to compare each elements of a vector A with any of the elements in Vector B. For some reasons it does not work. > StartDate = as.Date("01/10/2007", "%d/%m/%Y") > TimeSpan = seq(StartDate, by = 'days', length = length(myAverageCWVs$X1986)) > TickLabels = c("2007-10-01",
2008 Dec 08
2
No more monthly World Wine News?
I was just wondering if there was a change applied in the release format and dates of these newsletters. I noticed that before the WineConf issue they were released monthly; since then there hasn't been one published. I just enjoyed reading these and getting informed about WINE development; hence no big deal, but it would be great to hear what decisions have been taken in the timespan between
2005 May 26
2
warnings from hist(): parameter XXX couldn't be set in high-level plot functionN
Hello - This is not a real problem, just an annoyance. Sometimes, but not always, I get a set of strange warnings from hist(). Example follows. ############################ #Produce a histogram of start dates for a set of field measurements. # I didn't reproduce all the dates, because not sure it's relevant, but here's a sample. # Note the invalid date in the fifth element. >
2011 Jan 20
1
Generating time progressing line for Google Earth
Dear, I am trying to visualise a time-progressing line (it's supposed to represent spread patterns) using brew package and Google Earth. The idea is to have a function which takes start and end point geographic coordinates, as well as number of intervals to chop the path up, and returns the collection of points segmenting this line. Unfortunately my calculations fail for large distances,
2007 Sep 17
2
Date vs date (long)
Peter et al Thanks for the comments on dates. Some of the respondents missed the point, by showing ways that I could work around the problems, when my main argument is that one shouldn't have to work around problems. So I hereto present round 2 of the debate. 1 Postulates a. In my 35 year computing experience, I think that nothing frustrates me more than a computer program that
2024 Jan 31
1
time based group membership in FL 2016
Hi all, it's again a question about FL 2016 and if samba supports it. If yes, how can I use it without powershell. In FL 2016 there is the possibility to put a user into a group and the membership is time based. So I could put the user Foo into the group 'domain admins' for 30 minutes and after 30 minutes the system will remove user foo from the group. But to activated this
2006 May 15
3
Page hit counter?
Hello all, Yet another "don''t reinvent the wheel" n00b question: Is there an ''official'' page hit counter plugin/code snippet/whatever? I would need something like this: - It is possibility to set a constant timespan (say 5 hours). - On every page hit, save away @request.remote_ip and Time.new - The counter gets incremented only if the same IP was here
2011 Aug 16
4
Dashboard table resource_statuses growing uncontrollably
I''ve "inherited" the administration of a puppet-dashboard (version 1.1.0, installed on RHEL 5.6 from puppetlabs RPM), and have hit a problem I''m hoping for some help with. In short, one table, "resource_statuses" appears to be growing at a rate far higher then the other tables: mysql> select count(*) from nodes; +----------+ | count(*) | +----------+ |
2008 Apr 28
2
Caching current events for new listeners
Hi, I'm trying to work out how one would go about caching "interesting" packets from a stream to be sent to newly connecting listeners. At the moment, for, eg, Theora and Vorbis, the only interesting packets are the recent ones (up to a keyframe for theora), but, in my case, I can have old packets be still active while newer packets are obsolete, as packets are sorted by their
2024 Jan 31
1
time based group membership in FL 2016
Op 31-01-2024 om 17:21 schreef Stefan Kania via samba: > Hi all, > > it's again a question about FL 2016 and if samba supports it. If yes, > how can I use it without powershell. > > In FL 2016 there is the possibility to put a user into a group and the > membership is time based. So I could put the user Foo into the group > 'domain admins' for 30 minutes and
2016 Nov 07
2
RFC: General purpose type-safe formatting library
James Y Knight via llvm-dev <llvm-dev at lists.llvm.org> writes: >> You might be able to hook up a template-specialization like mechanic to the >> processing of %s (similar to my current approach), but it's not obvious how >> you proceed from there to get custom format strings for individual types. >> For example, a formatter which can print a TimeSpan in
2024 Jan 31
2
time based group membership in FL 2016
On Wed, 31 Jan 2024 20:02:55 +0100 Stefan Kania via samba <samba at lists.samba.org> wrote: > > > Am 31.01.24 um 17:45 schrieb Kees van Vloten via samba: > > > > Op 31-01-2024 om 17:21 schreef Stefan Kania via samba: > >> Hi all, > >> > >> it's again a question about FL 2016 and if samba supports it. If > >> yes, how can I use