[R] Merging data frames on a variety of columns

2010-09-17 Thread Chris Poliquin
Hello, This is a semi-complicated question about comparing two datasets, probably using merge, but I am open to other ideas. I have a large frame of information about companies.  It's over 30,000 rows and looks something like... df1 <- identifier1 identifier2nameother_name

[R] Lattice trellis.focus() with pdf

2008-12-31 Thread Chris Poliquin
Hi, I have a the code for a plot that works perfectly running in R and printing to a Quartz object but which doesn't work when I make the trellis device a pdf. The code is as follows: trellis.device(device="pdf", new=TRUE) trellis.par.set(my.theme()) dotplot(Y ~ X | C, groups=G, data=

[R] Line graphs with NA

2008-12-28 Thread Chris Poliquin
Hi, I have sets of three points provided by subjects that I want to graph as lines over a specific range, but the subjects were split into two groups and provided different points. The subjects provided a y-value for the given x-value, for example: Subject: 1 2 3 4

[R] Problems with large data frames?

2008-12-12 Thread Chris Poliquin
Hi, I recently added another 1,000 observations to a data frame I have for a total of 10,861 observations. Observations are by row and the frame has 15 columns. R now keeps converting certain columns to factors whenever I run regressions and can't seem to figure out the correct scaling

Re: [R] read.table with different row lengths

2008-12-10 Thread Chris Poliquin
mple.txt' > ex V1 V2 V3 V4 V5 V6 V7 V8 1 1 0 3 4 5 NA NA NA 2 1 3 5 6 8 7 7 NA 3 2 1 1 1 4 7 7 7 > dim(ex) [1] 3 8 Is this what you want? HTH, Jorge On Wed, Dec 10, 2008 at 1:50 PM, Chris Poliquin <[EMAIL PROTECTED] > wrote: Hi, I need to read in a

[R] read.table with different row lengths

2008-12-10 Thread Chris Poliquin
Hi, I need to read in a series of text files with a time series on each row. The series are of different lengths and I'd like to just use the first row as the length and have R ignore extra values in rows that go over this length. For example: 1 0 3 4 5 1 3 5 6 8 7 7 2 1 1 1 4 7 7 7 So

[R] Running R Script on a Sequence of Files

2008-12-05 Thread Chris Poliquin
Hi, I have about 900 files that I need to run the same R script on. I looked over the R Data Import/Export Manual and couldn't come up with a way to read in a sequence of files. The files all have unique names and are in the same directory. What I want to do is: 1) Create a list of the