search for: 1900

Displaying 20 results from an estimated 588 matches for "1900".

Did you mean: 100
2006 Oct 30
4
read.fwf and header
Hi! I have data (also in attached file) in the following form: num1 num2 num3 int1 fac1 fac2 cha1 cha2 Date POSIXt 1 1 f q 1900-01-01 1900-01-01 01:01:01 2 1.0 1316666.5 2 a g r z 1900-01-01 01:01:01 3 1.5 1188830.5 3 b h s y 1900-01-01 1900-01-01 01:01:01 4 2.0 1271846.3 4 c i t x 1900-01-01 1900-01-01 01:01:01 5 2.5 829737.4 d j u w 1900-01-01 6 3.0 1240967.3 5 e k v v 1900-01-01 1900-01-01 01:01:0...
2006 Oct 30
4
read.fwf and header
Hi! I have data (also in attached file) in the following form: num1 num2 num3 int1 fac1 fac2 cha1 cha2 Date POSIXt 1 1 f q 1900-01-01 1900-01-01 01:01:01 2 1.0 1316666.5 2 a g r z 1900-01-01 01:01:01 3 1.5 1188830.5 3 b h s y 1900-01-01 1900-01-01 01:01:01 4 2.0 1271846.3 4 c i t x 1900-01-01 1900-01-01 01:01:01 5 2.5 829737.4 d j u w 1900-01-01 6 3.0 1240967.3 5 e k v v 1900-01-01 1900-01-01 01:01:0...
2009 Nov 27
1
Long execution time for quantile() and difftime objects (PR#14091)
...tion variable (the difference between a start and end date), I ran into the following issue. Using summary or quantile (which summary calls) on a difftime object takes an extremely long time if the object is even moderately large. A reproducible example: > x <- as.Date(1:10000, origin="1900-01-01") > x[1:10] [1] "1900-01-02" "1900-01-03" "1900-01-04" "1900-01-05" "1900-01-06" [6] "1900-01-07" "1900-01-08" "1900-01-09" "1900-01-10" "1900-01-11" > d <- x - as.Date("19...
2010 Aug 09
1
nested 'by'
Assuming a data frame or matrix with two columns representing variable that you want to aggregate over. you want to calculate column means, by year, for each Id example<-data.frame(id=c(rep(12345,5),rep(54321,6),rep(45678,7)),Year=rep(seq(1900,1902,by=1),6), x=seq(1,18,by=1),y=seq(18,1,by=-1)) example id Year x y 1 12345 1900 1 18 2 12345 1901 2 17 3 12345 1902 3 16 4 12345 1900 4 15 5 12345 1901 5 14 6 54321 1902 6 13 7 54321 1900 7 12 8 54321 1901 8 11 9 54321 1902 9 10 10 54321 1900 10 9 11 54321 1901 11 8...
2010 Aug 11
2
Sweeping a zoo series
Given a long zoo matrix, the goal is to "sweep" out a statistic from the entire length of the sequences. longzoomatrix<-zoo(matrix(rnorm(720),ncol=6),as.yearmon(outer(1900,seq(0,length=120)/12,"+"))) cnames<-c(12345,23456,34567,45678,56789,67890) colnames(longzoomatrix)<-cnames longzoomatrix[1:24,] 12345 23456 34567 45678 56789 67890 Jan 1900 -0.17123165 1.02087086 0.79514870 -0.54519494 -0.13025459 -0.0099...
2001 Oct 31
4
strptime bug (PR#1155)
...ASS) data(beav1) tmp <- beav1[90:93,] tmp attach(tmp) paste(day, time %/% 100, time %% 100) strptime(paste(day, time %/% 100, time %% 100), "%j %H %M") ## note that the times wrap and the times on both days 346 and 347 are ## mapped to "1900-01-01" ## Including the year in the format gets the right answer, with two ## different days appearing in the result. strptime(paste(1990, day, time %/% 100, time %% 100), "%Y %j %H %M") detach("tmp") ## > tmp <- beav1[90:93,] ## >...
2011 Mar 01
3
Difference in numeric Dates between Excel and R
Hello. I am using some dates I read in excel in R. I know the excel origin is supposed to be 1900-1-1. But when I used as.Date with origin=1900-1-1 the dates that R reported me where two days ahead than the ones I read from Excel. I noticed that when I did in R the following: > as.Date("2011-3-4")-as.Date("1900-1-1") Time difference of 40604 days but if I do the same op...
2003 Nov 19
5
ISOdate returns incorrect date?
Dear all, I have found the following (for me) incomprehensible behaviour of ISOdate (POSIXct): > ISOdate(1900,6,16) [1] "1900-06-15 14:00:00 Westeurop?ische Sommerzeit" > ISOdate(1950,6,16) [1] "1950-06-16 14:00:00 Westeurop?ische Sommerzeit" Note that in the first case I get the 15th of June back, not the 16th as I would have expected! This happened under R-1.7.1 on both windows an...
2009 Oct 06
2
Extracting year from a date object
Hi all, this one left me a bit puzzled, as I don't seem to find a function to perform this easily. I must have overlooked the obvious, so sorry in advance. I have a list of dates in numerical format (i.e. 34576), defined as the number of days that passed since january 1st 1900. So I apply the function : > MyDate <-as.Date(34576,origin="1900-01-01") > MyDate [1] "1994-09-01" But then I want to do something like : MyYear <- a.year.function(MyDate) MyYear should have the numerical value 1994. Alas, I don't find any function like that....
2009 Nov 27
0
Long execution time for quantile() and difftime objects (PR#14092)
...t; between a start and end date), I ran into the following issue. Using summary or > quantile (which summary calls) on a difftime object takes an extremely long time > if the object is even moderately large. > > A reproducible example: > >> x <- as.Date(1:10000, origin="1900-01-01") >> x[1:10] > [1] "1900-01-02" "1900-01-03" "1900-01-04" "1900-01-05" "1900-01-06" > [6] "1900-01-07" "1900-01-08" "1900-01-09" "1900-01-10" "1900-01-11" >> d <- x -...
2006 Sep 25
0
na.encode in format for Date and POSIXt classes
...is the example (the same in R 2.3.1 and 2.5.0 (2006-09-19 r39409)): testData <- data.frame(num=c(NA, 2.6), int=c(1, NA), fac=factor(c(NA, "abc")), cha=c("a", NA), dat=as.Date(c("1900-1-1", NA)), POS=as.POSIXct(strptime(c("1900-1-1 01:01:01", NA), format="%Y-%m-%d %H:%M:%S"))) testData$cha <- as.character(testData$cha) testData num int fac...
2006 May 30
3
Time rather than dates?
...h. However, I haven't found out how time as such should be specified. All my attempts result in time *and* date: >treatment_time<-c("01:02:03","02:03:04") # hours:minutes:seconds >time.2<-strptime(treatment_time,format="%H:%M:%S") >time.2 [1] "1900-01-01 01:02:03" "1900-01-01 02:03:04" Why the 1900-...? I had hoped for some easy conversion from time to numeric data and possibly back. Assistance would be appreciated. Robert
2011 May 06
4
[Bug 1900] New: Fix OPENSSH_CHECK_CFLAG_COMPILE warnings
https://bugzilla.mindrot.org/show_bug.cgi?id=1900 Summary: Fix OPENSSH_CHECK_CFLAG_COMPILE warnings Product: Portable OpenSSH Version: 5.8p2 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: Build system AssignedTo:...
2012 Feb 20
10
[PATCH] hvm: Correct RTC time offset update error due to tm->tm_year
...t_time, mktime is called to calculate seconds since 1970/01/01, input parameters of mktime are required to be in normal date format. Such as: year=1980, mon=12, day=31, hour=23, min=59, sec=59. However, the current input parameter of mktime is tm->tm_year, and it is the number of years since 1900. (For example, if current time is 2012/12/31, and tm->tm_year is 112). This is not suitable for requirement of mktime. So I think tm->tm_year should be changed to tm->tm_year+1900 when calling mktime. Please check the patch attached. Thanks, Annie ____________________________________...
2013 Jan 31
3
Locate Patients who have multiple high blood pressure readings
On Thu, Jan 31, 2013 at 10:29 AM, Weijia Wang <wwang.nyu@gmail.com> wrote: > Hi, > > > > I have a new question about subsetting in R. > > > > Say we have this data frame: > > > > PT_ID Blood_Pressure OBS_TYPE > > 92 1900 90.0 DBP > > 94 1900 90.0 DBP > > 174 2900 140.0 SBP > > 176 2900 130.0 SBP > > 180 3900 120.0 SBP > > 268 3900 150.0 SBP > > 268 3900 90.0 DBP > > > > I need to obtain those wit...
2011 Aug 14
2
conditional filter resulting in 2 new dataframes
This is what I am starting with: initial<- matrix(c(1,5,4,8,4,4,8,6,4,2,7,5,4,5,3,2,4,6), nrow=6, ncol=3,dimnames=list(c("1900","1901","1902","1903","1904","1905"), c("sample1","sample2","sample3"))) And I need to apply a filter (in this case, any value <5) to give me one dataframe with only the 'less than 5' values and with ...
2010 Nov 22
2
Help: Standard errors arima
...s don't seem up to finding what I need. (Maybe I don't know the correct terms?) I need the standard errors and not the confidence intervals from an ARIMA fit. I can get fits: > coef(test) ar1 ma1 intercept time(TempVector) - 1900 0.801459585 0.704126549 12.854527065 0.000520366 And confidence intervals: > confint(test) 2.5 % 97.5 % ar1 7.684230e-01 0.834496136 ma1 6.742786e-01 0.733974460...
2008 May 02
4
to extract particular date/data
Hi R-expert, If I have this daily rainfall data, how do call a particular day? Year,Month,Day,Amount 1900,12,22,1.3 1900,12,23,0 1900,12,24,0 1900,12,25,0 1900,12,26,0 1900,12,27,0 1900,12,28,0 1900,12,29,4.8 1900,12,30,0.3 1900,12,31,0.5 1901,1,1,0 1901,1,2,3 1901,1,3,0 1901,1,4,0.5 1901,1,5,0 1901,1,6,0 ... I used to use julian.date in S-Plus. Thank you so much for your kind attention and help....
2004 Oct 11
2
[Bug 1900] rsync --daemon hangs with --numeric-ids
https://bugzilla.samba.org/show_bug.cgi?id=1900 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From wayned@samba.org 2004-10-11 03:56 -------...
2007 Jan 07
3
as.Date() results depend on order of data within vector?
Dear all, The as.Date() function appears to give different results depending on the order of the vector passed into it. d1 = c("1900-01-01", "2007-01-01","","2001-05-03") d2 = c("", "1900-01-01", "2007-01-01","2001-05-03") as.Date(d1) # gives correct results as.Date(d2) # fails with error (* see below) This problem does not arise if the dates are NA rath...