Displaying 7 results from an estimated 7 matches for "poliquin".
2008 Dec 05
6
Running R Script on a Sequence of Files
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 file names in the directory (this is really
what I need help with)
2) For each item in the
2008 Dec 31
2
Lattice trellis.focus() with pdf
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=D, layout=c(2,1), ... )
trellis.focus("panel", 1, 1)
for (y in 1:5) {
2008 Dec 10
2
read.table with different row lengths
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 the 7s would be ignored and I would have a 5x3 matrix. I tried
creating a series of colClasses
2008 Dec 28
1
Line graphs with NA
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 ... 127
"1" NA 3 2 NA ...
"2" 4 NA
2008 Dec 13
1
Problems with large data frames?
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 for the axes of plots on its own.
Are these problems the result of the size of my data frame or
2010 Sep 17
0
Merging data frames on a variety of columns
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???? identifier2 name other_name year
H34 C56 ACME ACME_LTD 2001
H34
2008 Dec 11
1
Coercing data into a simple array
I am using acf() to get the autocorrelations of a time series. It works but
I want to then get the autocorrelations into a simple list of numbers.
> x <- acf(price_changes, lag.max = 12,type = "correlation",plot = FALSE)
> x
Autocorrelations of series ‘price_changes’, by lag
0 1 2 3 4 5 6 7 8 9 10
11 12
1.000