search for: simonjkiss

Displaying 9 results from an estimated 9 matches for "simonjkiss".

2011 Jan 18
2
Counting dates in arbitrary ranges
Dear Colleagues, I have a data set that looks as below. I'd like to count the number of dates in a series of arbitrary ranges (breaks) i.e. not pre-defined breaks such as months, quarters or years. table(format()) produces ideally formatted output, but table() does not appear to accept arbitrary ranges. I also tried converting the dates to numeric and using histogram to try to get the data,
2011 Jan 17
1
Importing multiple text files with lapply.
Hello, I'm trying to read in 50 text filess with dates as content to create a list of tables. a is the list of filenames that need to be read in. The following command returns the following error mylist<-lapply(a, read.table(header=TRUE, sep="\n")) Error in read.table(header = TRUE, sep = "\n") : element 1 is empty; the part of the args list of
2011 Jan 25
1
subsetting based on joint values of critera
Dear colleagues, I have a dataset that looks as below. I would like to make a new dataset that excludes the cases which are joint conjunctions of particular state names and years, so Connecticut and 2010, Maryland and 2010 and Vermont and 2010. I'm trying the following subset code: newdata<- subset(bpa, (!State=="Connecticut" & year<"2010")) It appears that
2010 Oct 10
1
Create single vector after looping through multiple data frames with GREP
...) #here's another attempt I'm trying.... economy<-data.frame for (i in 15:19) { economy[i,] <-r[[i]][grep('Economy', r[[i]][,1]), ] } Begin forwarded message: > From: Simon Kiss <sjkiss at gmail.com> > Date: October 7, 2010 4:59:46 PM EDT > To: Simon Kiss <simonjkiss at yahoo.ca> > Subject: Fwd: [R] Converting scraped data > > > > Begin forwarded message: > >> From: Ethan Brown <ethancbrown at gmail.com> >> Date: October 6, 2010 4:22:41 PM GMT-04:00 >> To: Simon Kiss <sjkiss at gmail.com> >> Cc: r-hel...
2010 Dec 11
0
is there a packge or code to generate markov chains in R
...task. Thank u friends in advance. -- View this message in context: http://r.789695.n4.nabble.com/help-requested-tp3082147p3082147.html Sent from the R help mailing list archive at Nabble.com. ------------------------------ Message: 37 Date: Fri, 10 Dec 2010 10:25:48 -0500 From: Simon Kiss <simonjkiss at yahoo.ca> To: r-help at r-project.org Subject: [R] 45 Degree labels on barplot? Help understanding code previously posted. Message-ID: <6EC1F9BA-28EF-4052-9F54-CD8E38B06E79 at yahoo.ca> Content-Type: text/plain; charset=us-ascii Dear colleagues, i found a line or two of code in the he...
2010 Apr 27
0
NULL variable read in from SPS
Hello all, I'm having difficulty getting one particular variable into R from SPSS v. 16.0 for mac. R version is 2.10.1. I saved the relevant variables from SPSS into a .csv file and then read them into R. All the variables worked fine, except for one (enviro_spending). In the SPSS file it is correctly coded as a nominal variable and there is nothing that I can tell that
2011 Jan 26
0
baseline hazard function
Dear colleagues, I have the following dataset. It is modelled on the data included in Box-Seteffenheiser and Jones "Event History Modelling" Using the following code, I try to find the baseline hazard function haz_1<-muhaz(bpa$time, bpa$censored, subset=(bpa$year=="2010" | bpa$ban=="1"), min.time=1, max.time=3) I think I'm doing everything right, but what I
2011 Oct 31
0
(no subject)
Dear colleagues I'm using data that looks like .test and .test1 below to draw two mosaic plots with cell labelling (the row percentages from the tables). When I take out the pop=FALSE commands in the mosaic commands and comment out the two lines labelling the cells, then the plots are laid out exactly as I'd like: side-by-side. But I do require the cell labelling and the pop=FALSE
2010 Dec 10
2
45 Degree labels on barplot? Help understanding code previously posted.
Dear colleagues, i found a line or two of code in the help archives from Uwe Ligges about creating slanted x-labels for a barplot and it works well for my purposes (code below). However, I was hoping someone could explain to me precisely what the code is doing. I'm aware it's invoking the text command, and I know the first ttwo arguments to text are x and y co-ordinates. I'm also