search for: 1972

Displaying 20 results from an estimated 367 matches for "1972".

Did you mean: 1970
2013 Feb 12
3
Changing the order of months within a year
...ak Aug-71 1971 1.1612903 76.54839 45.96774 9 castlepeak Sep-71 1971 0.9333333 68.30000 36.86667 10 castlepeak Oct-71 1971 10.1612903 56.22581 31.74194 11 castlepeak Nov-71 1971 58.1000000 43.13333 28.43333 12 castlepeak Dec-71 1971 56.0645161 30.87097 16.29032 13 castlepeak Jan-72 1972 16.7741935 33.90323 15.41935 14 castlepeak Feb-72 1972 30.4137931 37.62069 19.82759 15 castlepeak Mar-72 1972 12.5161290 46.45161 24.06452 16 castlepeak Apr-72 1972 20.9333333 41.23333 22.10000 17 castlepeak May-72 1972 3.3870968 53.06452 28.77419 18 castlepeak Jun-72 1972 3.766...
2005 Dec 21
3
NextMethod causes R 2.2.0 to crash (PR#8416)
I found writing the following default method the for the generic function "julian" causes R to crash. julian.default <- function(x, ...) { x <- as.Date(x) NextMethod("julian", x, ...) } Here is a test example > m <- as.Date("1972-09-27") + 0:10 > m [1] "1972-09-27" "1972-09-28" "1972-09-29" "1972-09-30" "1972-10-01" "1972-10-02" "1972-10-03" [8] "1972-10-04" "1972-10-05" "1972-10-06" "1972-10-07" > cla...
2007 Jun 28
0
WEIBULL FRAILTY MODEL HELP
...rds, Denis Lalountas University of Patras insem<-read.table("Melanoma.txt",header=T) id <- insem$id timeto<-insem$time stat<-insem$status x1<-insem$ulcer x2 <-insem$thickness x2 <- log(x2) id time status sex age year thickness ulcer 1 1 10 0 1 76 1972 6.76 1 2 2 30 0 1 56 1968 0.65 0 3 3 35 0 1 41 1977 1.34 0 4 4 99 0 0 71 1968 2.90 0 5 5 185 1 1 52 1965 12.08 1 6 6 204 1 1 28 1971 4.84 1 7 7 210 1 1 77 1972...
2017 Jul 04
5
about adding a column for water year
Hi R users, I have a question about adding a column for water year. The dataframe has the structure below. But the wyear column just shows one year. Could anyone help me with this problem? Thanks. DF year month day time flow 1972 1 1 1972-01-01 5 1972 1 2 1972-01-02 5.5 1972 1 3 1972-01-03 6 ... 1985 12 31 1985-12-31 6 for(i in 1972:1985){ if(DF$year==i & DF$month %in% 1:9){ DF$wyear <- i { }else{ DF$wyear < i...
2017 Jul 04
0
about adding a column for water year
Hello, You have a '{' too many. for(i in 1972:1985){ if(DF$year==i & DF$month %in% 1:9){ DF$wyear <- i }else{ DF$wyear < i-1 } } } I believe this is it. Hope this helps, Rui Barradas Em 04-07-2017 19:31, lily li escreveu: > Hi R users, > I have a question about adding a column f...
2011 Mar 22
1
Find Principal Component Score per year
Hi, I am trying to calculate Principal Component Scores per id per year using the psych package. The following lines provide the scores per obeservation pca = data.frame(read.table(textConnection(" id year A B C D 1001 1972 64 56 14 23 1003 1972 60 55 62 111 1005 1972 57 51 10 47 1007 1972 59 49 7 10 1009 1972 65 50 9 32 1011 1972 52 58 3 5 1013 1972 63 52 9 27 1001 1973 65 56 14 25 1003 1973 61 55 62 7 1005 1973 58 51 10 47 1007 1973 60 49 7 19 1009 1973 66...
2006 Sep 09
1
reading and formating irregular time series for VaR
Hi, I am trying to read the following type of data from a .csv file to form an irregular time series object. I want to use it with the VaR package. How do I read it in correctly to an irregular time series object? Anupam. date,Open,High,Low,Close,Volume,OpenInterest,Contract 1972-08-16,54.25,54.25,54.25,54.25,1,1,KC1973H 1972-08-17,54.25,54.25,54.25,54.25,0,1,KC1973H 1972-08-18,54.25,54.25,54.25,54.25,0,1,KC1973H 1972-08-21,54.25,54.25,54.25,54.25,0,1,KC1973H 1972-08-22,54.25,54.25,54.25,54.25,0,1,KC1973H 1972-08-23,54.25,54.25,54.25,54.25,0,1,KC1973H
2017 Jul 04
0
about adding a column for water year
...alt.expr where "cond A length-one logical vector that is not NA." Your cond is a vector of length nrow(DF), so you don't want if, you want ifelse(). Did you fail to show us your warning messages?? 2. Revising your code and eliminating the extraneous brackets, one gets: for(i in 1972:1985){ ifelse(DF$year==i & DF$month %in% 1:9, DF$wyear <- i, DF$wyear < i-1) } But that doesn't work either, giving only 1985. Why? -- because the assignment statement DF$wyear <- i assigns the single value i to the whole column. So the whole column gets the last value of 1...
2011 Nov 19
3
reshape data.frame
...afternoon coding question. I'm having a hard time thinking of the correct search terms for what I want to do. If I have a df like this: a <- data.frame(name=c(rep('a',10),rep('b',15)),year=c(1971:1980,1971:1985),amount=1:25) name year amount 1 a 1971 1 2 a 1972 2 3 a 1973 3 4 a 1974 4 5 a 1975 5 6 a 1976 6 7 a 1977 7 8 a 1978 8 9 a 1979 9 10 a 1980 10 11 b 1971 11 12 b 1972 12 13 b 1973 13 14 b 1974 14 15 b 1975 15 16 b 1976 16 17 b 1977...
2012 Jul 17
1
[Bug 1972] ssh-keygen fails to generate SSHFP for ECDSA but exits with 0 code
https://bugzilla.mindrot.org/show_bug.cgi?id=1972 Daniel Black <daniel.black at ovee.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.black at ovee.com.au Keywords|...
2013 Mar 14
1
ggplot2 problem
...333333 124 Apr 1971 1.5000000 125 May 1971 0.0000000 126 Jun 1971 0.0000000 127 Jul 1971 0.0000000 128 Aug 1971 0.0000000 129 Sep 1971 2.0000000 130 Oct 1971 1.6666667 131 Nov 1971 16.0000000 132 Dec 1971 16.0000000 133 Jan 1972 13.3333333 134 Feb 1972 8.3333333 135 Mar 1972 15.0000000 136 Apr 1972 4.3333333 137 May 1972 0.0000000 138 Jun 1972 0.0000000 139 Jul 1972 0.0000000 140 Aug 1972 0.0000000 141 Sep 1972 7.0000000 142 Oct 1972 8.0000000 143 No...
2015 Aug 11
0
[Bug 1972] ssh-keygen fails to generate SSHFP for ECDSA but exits with 0 code
https://bugzilla.mindrot.org/show_bug.cgi?id=1972 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #4 from Damien Miller <djm at mindrot.org&g...
2010 Aug 19
1
zoo. window
Hi, I have a dataset including monthly date from 1971-01-01 to 2009-01-01. The dates are character variables. I want to select the subsample from my original data, so I use mydata3<-window(mydata,start="1972-02-01",end="2005-02-01"), or mydata3<-window(mydata, start=as.date("1972-02-01"),end=as.date("2005-02-01")) or mydata3<-window(mydata, start=c(1972-02-01),end=c(2005-02-01)) but I constantly receive Error in attr(x, "tsp") <- c(1, NROW(x), 1)...
2004 Sep 21
2
Ever see a stata import problem like this?
...e in case you are interested http://www.ku.edu/~pauljohn/R/morgen.dta looks like this to R (I tried various options on the read.dta command): > myDat <- read.dta("morgen.dta") > summary(myDat) CASEID year id hrs1 hrs2 Min. : 19721 Min. :1972 Min. : 1 NAP : 0 NAP : 0 1st Qu.: 1983475 1st Qu.:1978 1st Qu.: 445 DK : 0 DK : 0 Median : 1996808 Median :1987 Median : 905 NA : 0 NA : 0 Mean : 9963040 Mean :1986 Mean : 990 NA's:40933 NA's:40933 3rd Qu.:19872...
2009 Sep 30
1
Re cursive regression
...his issue. I need to estimate a recursive model for a time series data of asset returns. The dependent variable is the asset return and then I have a set of k variables, a lagged value of the dependent variable (plus an intercept) as regressors. My sample period (monthly observations) starts on Jan 1972. What I need to do is the following: 1)use a moving window regression (window of 60 observations, i.e. 5 years) 2)estimate all the possible model (Jan 1972 Dec 1977) using a subset of the k variables (intercept and lagged values always present) and choose the best model according to thee AIC crite...
2002 Sep 02
1
lattice install (PR#1972)
Full_Name: Robert King Version: 1.3 OS: windows Submission from: (NULL) (134.148.4.19) This looks like a problem with package dependencies. Should be sending this to the package author, not r-bugs? An attempt to install lattice from the windows binary runs OK, but attempting to load the library an error occurs: > install.packages("D:/Software/R/lattice.zip", .lib.loc[1], CRAN =
2009 Jan 14
1
publication statistics from Web of Science
...989 14 1988 11 1983 10 1987 7 1985 6 1986 6 1981 5 1984 5 1979 4 1982 4 2009 3 1971 2 1933 1 1973 1 1974 1 1977 1 1978 1 1980 1"), head=T),type=1, cumSum=4833, search="photonics"), list(values=read.table(textConnection(" date count 2008 129 2007 92 2006 50 2005 26 2004 15 2003 4 1972 1 2001 1 2002 1"), head=T),type=1, cumSum=319, search="plasmonics"), list(values=read.table(textConnection(" date count 2008 3207 2007 3105 2006 2666 2005 2323 2004 1910 2003 1552 2002 1372 2001 1292 2000 1095 1999 992 1998 863 1997 771 1996 643 1995 484 1993 418 1994 407 1992 3...
2013 Feb 15
10
reading data
...aAA? 1? 2? 739 0.1257000? 2? 2 AA??? 2???? 8867 8926 #2 aAAAA? 1? 2 2263 0.0004000? 2? 2 AR??? 4???? 7640 8926 #3??? aA? 2? 1??? 1 0.0845435? 2 AA? 2 6790 734,1092?? NA #4?? aAA? 1? 2 1965 0.0007000? 4? 3 AR??? 2??? 11616 8926 #5? aAAA? 1? 3 3660 0.0008600 18? 3 AA??? 2??? 20392? 496 #6??? AA na? 2 1972 0.0007000 11? 3 AR?? 25????? 509? 734 #$a2 ?# ?? Id? M mm??? x???????? b? u? k? j??? y??????? p??? v #1?? aAA? 1? 2? 739 0.1257000? 2? 2 AA??? 2???? 8867 8926 #2 aAAAA? 1? 2 2263 0.0004000? 2? 2 AR??? 4???? 7640 8926 #3??? aA? 2? 1??? 1 0.0845435? 2 AA? 2 6790 734,1092?? NA #4?? aAA? 1? 2 1965 0.0...
2004 Feb 04
5
Newbie question: histogram
Hello, how do you create a histogram with a data frame? year snow.cover 1970 6.5 1971 12.0 1972 14.9 1973 10.0 1974 10.7 1975 7.9 ... mydata=data.frame(year=c(1970,...),snow.cover=c(6.5,...)) hist(mydata) does not work. Many thanks. PR
2008 Jun 10
2
How to join data.frames and vectors of different length, in an inteligent way?
I have a data set something like this: "YYYY", "Value" 1972 , 117 1984 , 73 1969 , 92 1976 , 113 1999 , 80 1996 , 78 1976 , 98 1984 , 106 1976 , 99 it could be created with: > dafSamp <- data.frame(cbind(c(1972,1984,1969,1976,1999,1996,1976,1984,1976),c(117,73,92,113,80,78,98,106,99))) The real dataset is of cause much larger, app. 10...