similar to: Loop to find dates whithin dates

Displaying 20 results from an estimated 2000 matches similar to: "Loop to find dates whithin dates"

2008 Jul 15
1
code reduction (if anyone feels like it)
# I am sure that I could be more efficient than this but how? Thanks in advance. #GPS in Decimal Degrees in the form longitude latitude RM215 <- matrix(c(-82.1461363, 33.5959109), nrow=1) SC <- matrix(c(-82.025888, 33.606454), nrow=1) RM202 <- matrix(c(-81.9906723, 33.5027653), nrow=1) RM198 <- matrix(c(-81.926823, 33.4634678), nrow=1) HC <- matrix(c(-81.920505, 33.46192), nrow=1)
2004 Jun 21
2
sunrise, sunset calculation
Are there any functions available to calculate sunrise and sunset times for given latitude,longitude and dates? If not, I'll appreciatte any pointers to C code I could use/port. Thanks, Angel
2008 Nov 09
1
maptools sunrise sunset function
##This is a function that I am trying to write to calculate sunrise and sunset and works "mostly", but returns nonsensical values. What am I #missing? Thanks in advance. ###remember to include maptools as dependence### library(maptools) sunrise.set <- function(lat, long, date, timezone="UTC", num.days=1){ #this needs to be long lat# lat.long <- matrix(c(long, lat),
2013 Jun 10
1
modify and append new rows to a data.frame using ddply
Hi, I have a data.frame that contains a variable act which records the duration (in seconds) of two states (wet-dry) for several individuals (identified by Ring) over a period of time. Since I want to work with daytime (i.e. from sunrise till sunset) and night time (i.e. from sunset till next sunrise), I have to split act from time[i] till sunset and from sunset until time[i+1], and from time[k]
2012 Oct 23
4
daylight
hi there, does anyone know how to calculate the amount of daylight on every day of the year in R? I mean the time between sunrise and sunset. thanks -- View this message in context: http://r.789695.n4.nabble.com/daylight-tp4647213.html Sent from the R help mailing list archive at Nabble.com.
2008 Nov 10
1
TimeZone Help - Finding TimeZone codes
I have looked at ?as.POSIXct ?POSIXct and many of the references that are on those pages. I am bewildered with timezones. Is there a way to get what would go into tz="" for making a function that uses POSIXct to be able to be used in all of the timezones in just the united states? This is for both windows and mac... this is the function that I am wanting to use it with
2010 Mar 04
1
extracting values conditonal on other values
Dear R helpers, I have a dataframe (test1) containing the time of sunrise and sunset for each day of the year for 3 years. I have another dataframe (test2) containing measurements that are taken every 15 minutes, 24/7. I would like to extract all rows from test2 that occur between sunrise and sunset for the appropriate date. Can you suggest a good vectorized way to do this? Keep in mind
2008 Jul 15
1
sunrise sunset calculations
Does anyone know if there is a sunrise sunset calculator for R? -- Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis [[alternative HTML version deleted]]
2003 Dec 10
1
ext3 from whithin W2K
hello everyone, in the past I used an utility to gain access to my ext3 filesystem from whithin W2K, I recall that the access was very restricted in terms of modes. Now I'm looking for that tool (of which I cannot remember the name at all) or, better, an unlimited one. Does anyone help me in this seeking without finding? In particular, does anyone know of a driver which present me the ext3
2008 Jul 15
2
POSIXct extract time
RM215.sp <- SpatialPoints(RM215, proj4string=CRS("+proj=longlat +datum=WGS84")) d060101 <- as.POSIXct("2006-01-01", tz="EST") study_seq <- seq(from=d060101, length.out=761, by="days") up.215 <- sunriset(RM215.sp, study_seq, direction="sunrise", POSIXct.out=TRUE) down.215 <- sunriset(RM215.sp, study_seq, direction="sunset",
2010 Feb 11
2
Find each time a value changes
Dear List, I am trying to find each time a value changes in a dataset. The numbers are variables for day vs. night values, so what I am really getting is the daily sunrise and sunset. A simplified example is the following: x<-seq(1:100) y1<-rep(1,10) y2<-rep(2,10) y<-c(y1,y2,y1,y1,y1,y2,y1,y2,y1,y2) xy<-cbind(x,y) I would like to know each time the numbers change. Correct
2012 Apr 30
1
Subtract days to dates in POSIXct format
Hello, I'm having problems working with date values in POSIXct format. Here is what I got (eg.lig attached): x <- read.table("eg.txt", sep = ',', col.names=c("ok","time","secs","lig")) # it gives time as factor z <- cbind(x,colsplit(x$time, split="\\s", names=c("date", "clock")))
2008 Jul 23
1
Re: C:WindowsTempCloseApp.exe
Okay, I found the right ahsetup.exe (Active Home). It's doing the same thing for me: extracting CloseApp.exe (which is the same program I found) to the temp folder, but then shutting down with an error message about being unable to use it. As to why, the answer, IMO, is that this is a very old program (the download site says it works in Windows 3.1), and most programs that old simply
2006 Sep 07
1
Rate limits whithin rate limits
Hi all, I''m sure I''m soing something wrong here. I am trying to set up a rate limit inside another rate limit. eg. I have a 512K rate limit on a particular VLAN. I am using an IFB so that packets passing through the bridge are counted at each port.(ie the throughput is limited to 512K, not just the traffic in one direction.) This part works OK, but I also want to limit a
2007 May 03
3
Semi-OT: useful things to do with XML browsers in phones
Greetings list, It seems that more and more phones these days are coming with XML mini-browsers. I'd like to have a go at developing something useful to use on them, but in all honesty, most of our customers use their phones to make and take calls and very little else. So I'm open to suggestions. What useful applications are you developing for these mini-browsers? What sort of things do
2009 Jan 19
1
maptools, sunriset, POSIX timezones
Hi ... I wonder if anyone can provide some insight into why the first three examples using the sunriset function (appended below, with results) give the correct answer, but the fourth generates and error. The first two use ISOdatetime with and without a time zone attribute, and the sunriset function returns the correct sunset time. The third and fourth adds 10 seconds to the ISOdatetime
2012 Feb 10
2
apply pairs function to multiple columns in a data frame
I am very new to R and programming and thank you in advance for your patience and help with a complete novice! I am working with a large multivariate data set that has 10 explanatory environmental variables (e.g. temp, depth) and over 60 response variables (each is a separate species). My data frame is set up like the simplified version below: JulianDay Temperature Salinity Depth Copepod
2004 Jul 17
6
Mac OS X installer for Asterisk
Hi I have created a Mac OS X installer package for installing Asterisk on OSX ver 10.2 and 10.3 Anyone who'd like to give this a try, please download the installer package from here ... http://www.astmasters.net/stuff/Asterisk.pkg.tgz to install Asterisk on OSX just double click the package file. please send any feedback to benjamin (at) sunrise (dash) tel (dot) com NOTE: this is a
2001 Mar 19
2
Samba & subnets
Hi We have two subnets with routing tables correctly set up so they can both ping to our Sun Solaris Box. 193.71.221 191.9.211 The Sun Solaris box lives on 193.71.221.1 and all PCs on that subnet can map to the Sun box without any problems. All PCs on the 191.9.211 cannot connect to the samba drives giving the error "Network not Found". Any help would be much appreciated. Thanks
2020 Mar 29
3
Upgrade to CentOS8
Hi Leon, I don't have the infra (nor the knowledge or expertise) to create a LiveCD I didn't think about Fedora. This is indeed a good pointer, I will definitely try that Actually, I'm not too worried about the basics, but rather about the wifi, audio & video drivers (one of the boxes is a multimedia system) Thanks!