Displaying 20 results from an estimated 70000 matches similar to: "Running R Script on a Sequence of Files"
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 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 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
2005 Apr 01
1
R mailing list archive difficulty
Hi, people! This is my first babble on this list, please be kind! :-)
Last Tuesday, I wrote to the (likely) Webmaster of the R site to report
a little problem, but also to ask for advice about how to get a bulk
copy of the mailing list archives, from 2002 to now.
While I quite understand that from Tuesday to now, there has been little
time, and it is only normal that I did not receive a reply
2008 Aug 26
4
sequence with start and stop positions
Hi,
I have a vector of start positions, and another vector of stop positions,
eg start<-c(1,20,50)
stop<-c(7,25,53)
Is there a quick way to create a sequence from these vectors?
new<-c(1,2,3,4,5,6,7,20,21,22,23,24,25,50,51,52,53)
the way Im doing it at the moment is
pos<-seq(start[1],stop[1])
for (i in 2:length(start)){
new<-seq(start[i],stop[i])
pos<-c(pos,new)
}
2004 Dec 16
8
counting numbers without replicates in a vector
Hi,
I am just wondering if there is an easy way to count
in a numeric vector how many numbers don't have
replicates.
For example,
a=c(1,1,2,2,3,4,5), how can I know there are three
numbers (3, 4 and 5) without replicates?
Thank you!
Jun
=====
2004 Nov 21
3
RE : Create sequence for dataset
Dear members,
I want to create a sequence of numbers for the multiple records of
individual animal in my dataset. The SAS code below will do the trick, but
I want to learn to do it in R. Can anyone help ?
data ht&ssn;
set ht&ssn;
by anml_key;
if first.anml_key then do;
seq_ht_rslt=0;
end;
seq_ht_rslt+1;
Thanks in advance.
Stella
2016 Sep 07
3
Fwd: Re: RSiteSearch, sos, rdocumentation.org, ...?
Hello, All:
Jonathan Baron is "giving up" maintaining the RSiteSearch database.
This breaks three things: (1) The R Site Search web service that
Baron has maintained. (2) The RSiteSearch function in the utils
package. (3) The sos package, for which I'm the maintainer and lead
author.
Might someone else be willing to take these over?
For me,
2009 Feb 26
9
Inefficiency of SAS Programming
If anyone wants to see a prime example of how inefficient it is to
program in SAS, take a look at the SAS programs provided by the US
Agency for Healthcare Research and Quality for risk adjusting and
reporting for hospital outcomes at
http://www.qualityindicators.ahrq.gov/software.htm . The PSSASP3.SAS
program is a prime example. Look at how you do a vector product in the
SAS macro
2004 Jun 15
2
import SYSTAT .syd file?
Does anyone know how to read a SYSTAT .syd file on Linux?
(Splus 6 does it, but it is easier to find a Windows box
with Systat than to download their demo. I'm wondering
if there is a better way than either of these options.)
Jon
--
Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron
R search page:
2007 Jan 12
2
[LLVMdev] Inserting an assembly instruction in the calling sequence of the powerpc target
Hi all,
I'm currently implementing a linux/ppc target in llvm. The abis between
Darwin/ppc and
linux/ppc are different and I'm running into problems with vararg calls.
Before a variadic method is called, an extra instruction must be
executed (which is creqv 6, 6, 6). This
instruction is not necessary in Darwin/ppc.
I looked into the PowerPC target implementation and the code generation
2016 Sep 08
6
Fwd: Re: RSiteSearch, sos, rdocumentation.org, ...?
Don't do anything yet. I may have found the problem by accident.
I tried to use the computer from something else, and it was being
drastically slowed down by some leftover processes, which turned out
to be xlhtml. That is something that converts Excel files. Apparently,
some excel files got into the libraries, and they were causing the
indexing to hang completely.
I am now running everything
2003 Apr 05
3
slides in linux R
Hello,
In S-Plus Windows you can transform graphics to Powerpoint very easily, in R Windows you can use enhanced metafiles (.emf) and Powerpoint almost as easy. Is there a simular way with R in Linux to transform to the presentation program in StarOffice or OpenOffice or are you stuck with the pdf device?
Fredrik Lundgren
2001 Nov 23
4
Are you experienced in SAS and R as well? Which of these would you recommend?
Hello!
Disapointed about SPSS I have to choose another statistic program. And altough I sympathise with the idea of a non-commercial software-project like R and I like the spirit of the R community (and of course I am not keen on paying 150$ to SAS for a one-year students license), I will probably buy SAS, because people I will work with use SAS and I want a close cooperation with them. Besides I
2008 Feb 25
1
Read.xport function in package foreign
Hi All,
Sorry that I didn't provide enough information.
I've been trying to import SAS xport files that contain multiple files
using package foreign's read.xport. I first attempted this back in 2005
and had problems. Some of files that were present in the SAS xport file
weren't being created in R. I submitted my problem to the community:
2007 Jan 14
0
[LLVMdev] Inserting an assembly instruction in the calling sequence of the powerpc target
On Fri, 12 Jan 2007, Nicolas Geoffray wrote:
> I'm currently implementing a linux/ppc target in llvm. The abis between
cool
> Darwin/ppc and linux/ppc are different and I'm running into problems
> with vararg calls.
ok
> Before a variadic method is called, an extra instruction must be
> executed (which is creqv 6, 6, 6). This instruction is not necessary in
>
2003 Feb 05
3
R as a `script'
is there any way i can use R as a tool for scripts in unix, as
wotan[hrue]$ cat example.R
#!/usr/bin/R
x=1
havard
--
Havard Rue
Department of Mathematical Sciences
Norwegian University of Science and Technology
N-7491 Trondheim, Norway
Voice: +47-7359-3533 URL : http://www.math.ntnu.no/~hrue
Fax : +47-7359-3524 Email: havard.rue at math.ntnu.no
2010 Feb 22
1
counting repeating sequence lengths in a vector
Hello,
I have a very long (~50,000) sequence of repeating numbers. The first
100 are:
[1] 0 0 0 0 0 0 0 0 0 0 0 429
[13] 429 429 429 429 429 429 429 858 858 858 858
858
[25] 858 1287 1287 1287 1287 1287 1716 2145 2145 2574 2574
3003
[37] 3003 3432 3432 3861 4290 4719 5148 5577 5577 6006 6006
2010 Mar 25
1
Read SAS data
Hi!
I need to import in R some SAS dataset (sas7bdat). I found two functions to
do it:
"read.ssd" from the package "foreign" and "sas.get" from "Hmisc".
df = read.ssd(libname = path2data, sectionnames = "sasSmallDataset",
tmpXport = path2data, tmpProgLoc = path2data, sascmd = path2sas)
sas.get(libraryName = path2data, member =
2004 Mar 31
2
choice-based conjoint
Hello everyone,
I am new to this list and the R-Project, so I hope my question is not
trivial or has been answered before. I searched the FAQs and the mailing
list archives and I could not find anything about Conjoint Analysis. I am
especially interested in Choice-based Conjoint, resp. discrete choice
models.
Is there a function / module that handles this issue? Or can the multinomial
logit