search for: years

Displaying 20 results from an estimated 39074 matches for "years".

Did you mean: year
2007 Oct 26
1
[Fwd: Re: subsetting]
Sorry that I was unclear. For an individual to qualify for my analysis I want both of the following two criteria to be fulfilled: First, I want to select measurement taken at a certain age: for the focal individual the year of measurement (year) should be the same as year.hatch Second, I want the focal individual to be born by a mother that reproduces for the first time. So the /parents /of
2006 Nov 20
1
sem package subscript out of bounds error
I'm having the most curious error while using the sem package. For the model I'm working with, I keep getting the following error: Error in J[cbind(1:n, observed)] <- 1 : subscript out of bounds I''ve used debug=TRUE with sem, and there don't appear to be any problems with model - there are no latent variables in this model. The variables in the covariance matrix
2004 Jun 16
3
Aggregating on Water Year Rather Than Calendar Year
...e able to find the annual means for the water year. To do so I've taken the input date-time, which is in the usual format "1991-10-07 10:35:00" changed it by: w$d<-as.POSIXct(w$date.time) Now I can add an offset of 92 days w$w.year<-as.POSIXct(w$d+7948800) and have the years correspond to the "water year." Now I wish to obtain some means by something like: waterT<-aggregate(w$value[w$param.name=="Temperature"], list(w$w.year[w$param.name=="Temperature"]),mean) Except that I need to work on the year and being a neophyte in date arith...
2009 Mar 06
1
Interpreting GLM coefficients
Hi all, I?m fitting GLM?s and I can?t interprete the coefficients when I run a model with interaction terms. When I run the simpliest model there is no problem: Model1<-glm (Fishes ~ Year + I(Year^2) + Kind.Geographic + Kind.Fishers + Zone.2 + Hours + Fishers + Month, family = poisson(log)) # Fishes, Year, Hours, and Fishers are numeric, Kind.Geographic, Kind.Fishers, Zone.2 and
2006 Apr 25
2
School Years/Teams listing problem
People, I have tables years and teams and I have the years listing like: 1965 1966 1967 . . I want to be able to click on the year and ONLY list teams for that year. At first I thought the following was working until I started populating the table with teams for more than one year. For views/years/list.rhtml: <% for y...
2018 Feb 21
7
alternative for multiple if_else statements
...have written two codes, first one fails while the second works, the only difference being I have reversed the order in which the entries are populated in the second code (from 2007-2016 to 2016-2007) and removed the if_else statement for 2015. Also noticed, that for the second code, which spans the years 2007-2016 (less 2015), if a participants entries start from 2010-2016, the code fails. Kindly assist in figuring this out...or better yet, an alternative. trialData <- structure(list(study = c("site_1", "site_1", "site_1", "site_1", "site_1&quot...
2010 May 19
8
Generating all possible models from full model
...ar, data=mydata)) #Manta abundance increases with increased levels of plankton m7<-glm.convert(glm.nb(mantas~plankton,data=mydata)) #Two terms - 21 models m12<-glm.convert(glm.nb(mantas~site*year, data=mydata)) #Interaction term to account for hotel being closed at Keauhou for some years m13<-glm.convert(glm.nb(mantas~site+cosmonth,data=mydata)) m14<-glm.convert(glm.nb(mantas~site+sinmonth,data=mydata)) m15<-glm.convert(glm.nb(mantas~site+coslunar,data=mydata)) m16<-glm.convert(glm.nb(mantas~site+sinlunar,data=mydata)) m17<-glm.convert(glm.nb(mantas~site+pl...
2020 Oct 06
2
Version controlled (git) Maildir generated by Dovecot
...art with a number: # cat .gitignore ----------------------------------- !.gitignore !*/ !/Maildir/cur/[0-9]* !/Maildir/*/cur/[0-9]* ----------------------------------- and it's working: # git add . --dry-run ----------------------------------- add '.gitignore' add 'Maildir/.INBOX.years.2020.family/cur/1601986418.M110302P17113.mail1,S=8066,W=8276:2,S' add 'Maildir/.INBOX.years.2020.family/cur/1601986418.M134554P17113.mail1,S=8024,W=8234:2,S' add 'Maildir/.INBOX.years.2020.family/cur/1601986418.M157569P17113.mail1,S=8005,W=8215:2,S' add 'Maildir/.INBOX.years...
2009 Nov 05
3
performing operations on a dataframe
...of each year? (Note: Different lengths for each year, ie, length(Year==2000)!=length(Year==2001)) For example, if Year==2000, function(x) x/146; if Year=2001, function(x) x/237; etc. I've figured out the long convoluted way, but since I plan to operate numerous transformations on the different years, is there some way to solve this in just a few steps? Thanks for your answer in advance! Lanna [[alternative HTML version deleted]]
2013 Jan 22
2
Creating a Data Frame from an XML
Hello, I'm attempting to read information from an XML into a data frame in R using the "XML" package. I am unable to get the data into a data frame as I would like. I have some sample code below. *XML Code:* Header... Data I want in a data frame: <data> <row BRAND="GMC" NUM="1" YEAR="1999" VALUE="10000" /> <row
2017 Jul 09
0
Histogram plots in Lattice with spatialgrid dataframe data
...n_bias$bias2010,ann_bias$ > bias2011,ann_bias$bias2012,ann_bias$bias2013,ann_bias$ > bias2014,ann_bias$bias2015,ann_bias$bias2016) > > > data<-data.frame(year=c(year),bias=c(dat)) > > histogram(~ bias | year, data=data) > > I get a lattice plot of histograms, where the years vary, but all the > histograms are identical, which I know they should not be. It seem that all > the data from the combined spatialgrid dataframes are being used and > repeated. > > Obviously, I'm not constructing the data correctly. Can someone tell me > what I doing wrong....
2008 Jan 23
3
How to do more advanced cross tabulation in R?
Hi, I am trying to reproduce some functionalities of Excel pivot table in R, sadly, I couldn't figure out how to do it. I am wondering if this is even possible in R. Does anyone know? Here is an example: year=rep(2003,16) quarter=rep(1:4,each=4) sales=1:16 company=rep(c("a","b","c","d"),4) df=data.frame(year,quarter,sales,company) #this is the
2007 Oct 25
1
subsetting
Dear all, I have received some data on birds that looks sth like this: # a unique id for each individual id <- c(1,1,1,2,2,2,3,3,3,4,4,5,6) # the year the bird was measured year <- c(1995, 1996, 1997, 1995, 1996, 1997, 1996, 1997, 1998, 1996, 1997, 1997, 1998) # the year the bird was hatched year.hatch <- c(1995, 1995, 1995, 1995, 1995, 1995, 1996, 1996, 1996, 1996, 1996, 1997, 1998)
2017 Jul 09
2
Histogram plots in Lattice with spatialgrid dataframe data
..._bias$bias2008,ann_bias$bias2009,ann_bias$bias2010,ann_bias$bias2011,ann_bias$bias2012,ann_bias$bias2013,ann_bias$bias2014,ann_bias$bias2015,ann_bias$bias2016) > data<-data.frame(year=c(year),bias=c(dat)) > histogram(~ bias | year, data=data) I get a lattice plot of histograms, where the years vary, but all the histograms are identical, which I know they should not be. It seem that all the data from the combined spatialgrid dataframes are being used and repeated. Obviously, I'm not constructing the data correctly. Can someone tell me what I doing wrong. I've poured over this for...
2017 Jul 10
1
Histogram plots in Lattice with spatialgrid dataframe data
...t;> bias2011,ann_bias$bias2012,ann_bias$bias2013,ann_bias$ >> bias2014,ann_bias$bias2015,ann_bias$bias2016) >> >> > data<-data.frame(year=c(year),bias=c(dat)) >> > histogram(~ bias | year, data=data) >> >> I get a lattice plot of histograms, where the years vary, but all the >> histograms are identical, which I know they should not be. It seem >that all >> the data from the combined spatialgrid dataframes are being used and >> repeated. >> >> Obviously, I'm not constructing the data correctly. Can someone tell >...
2011 Jan 31
1
leap year and order function
im trying to write a for loop so that every leap year, the number of days becomes to 366 instead of 365. could someone help me out? and also, this set of data has 99.99s I set all the 99.99 ==NA. however, when im doing the order function to find the max value of that year, it still reads 99.99 as the max value. Thank you very much maxday <- matrix(NA,63,5) for (a in 1948:2010){
2012 Jan 30
1
Linear Mixed Model set-up
Hello, I have some data covering contaminant concentrations in fish over a time period of ~35 years. Each year, multiple samples of fish were taken (with varying sample sizes each year). Ultimately, I want an estimation of the variance between years, and the variance within years + random effects. I used a linear mixed model to estimate these variances, but after reading a number of different...
2011 Jun 21
2
Tricky (?) conversion from data.frame to matrix where not all pairs exist
Dear expeRts, In the minimal example below, I have a data.frame containing three "blocks" of years (the years are subsets of 2000 to 2002). For each year and block a certain "value" is given. I would like to create a matrix that has row names given by all years ("2000", "2001", "2002"), and column names given by all blocks ("a", "b",...
2006 May 08
2
Creating a "Foo has_many bars" association where bar isn''t a model.
Hi Let''s say we have model Foo. Each Foo instance can have several bars. Those bars are primitive, so they shouldn''t be models. For example, Foo might be a type of convention, and the bars might be years the convention was held in. Naively, we would have a conventions_years date, and put: has_many :years inside class Convention. But then we''d get an error, since for has_many to work, there must be a Year model. Which is silly: why would we have a Year model, then get the actual year by Y...
2012 Dec 01
1
reading json tables
I'm trying to read two data sets in json format from a single .js file. I've tried fromJSON() in both RJSONIOIO and RJSON packages, but they require that the lines be pre-parsed somehow in ways I don't understand. Can someone help? > wheat <- readLines("http://mbostock.github.com/protovis/ex/wheat.js") > str(wheat) chr [1:70] "var wheat = [" "