Displaying 20 results from an estimated 110 matches similar to: "Create a list object in a loop"
2011 Sep 03
2
problem in applying function in data subset (with a level) - using plyr or other alternative are also welcome
Dear R experts.
I might be missing something obvious. I have been trying to fix this problem
for some weeks. Please help.
#data
ped <- c(rep(1, 4), rep(2, 3), rep(3, 3))
y <- rnorm(10, 8, 2)
# variable set 1
M1a <- sample (c(1, 2,3), 10, replace= T)
M1b <- sample (c(1, 2,3), 10, replace= T)
M1aP1 <- sample (c(1, 2,3), 10, replace= T)
M1bP2 <- sample (c(1, 2,3), 10, replace= T)
2015 Jan 08
2
latex warning
Dear all,
I am getting an R CMD check warning about the PDF manual. I am having a
hard time finding out what is wrong, here is the log of the Rd2pdf call.
The full check (and other) log is at
https://api.travis-ci.org/jobs/46373922/log.txt?deansi=true if anybody is
interested, and the package itself is here:
https://github.com/metacran/r-builder/tree/bintex/rbuildertest
Thanks, Best,
Gabor
2010 May 28
1
Does Sweave run in the global environment ?
Hello
It seems that sweave always runs in the global environment. I want to
run sweave from within a function, and pass a variable into sweave,
however when I do this, sweave doesn't see the variable.
Here's my example test_sweave.Rnw file
|%
\documentclass[a4paper]{article}
\usepackage[OT1]{fontenc}
\usepackage{Sweave}
\begin{document}
\title{Test Sweave Document}
\author{Paul
2007 Dec 06
5
Help rewriting looping structure?
Hey Folks,
Could somebody help me rewrite the following code?
I am looping through all records across 5 fields to calculate the cumulative
percentage of each record (relative to each individual field).
Is there a way to rewrite it so I don't have to loop through each individual
record?
##### tdat is my data frame
##### j is my field index
##### k is my record index
##### tsum is the sum of
2008 Oct 24
0
Problem with "plflatex wrapper.tex"
Hi, All:
I encountered problems running "pdflatex wrapper.tex", as
suggested on "www.r-project.org" -> Newsletter -> (near the bottom of
the page). After 220 lines of seemingly successful processing, I got an
error copied below. I hit <enter> a few times, and the "pdflatex"
finished, apparently successfully.
Comments?
Thanks,
2004 Jan 29
2
Finding Sweave.sty and other problems
Hi,
I've just tried to run example-3 from Friedrich Leish. I'm using R 1.8.1
and MiKTeX 2.2 on Windows XP.
I go
===
> library(tools)
> Sweave("example-3.Snw")
Writing to file example-3.tex
Processing code chunks ...
1 : term hide
2 : echo term verbatim
3 : term tex
4 : term verbatim eps pdf
You can now run LaTeX on example-3.tex
===
The file example-3.tex
2003 Dec 30
1
Accuracy: Correct sums in rowSums(), colSums() (PR#6196)
Full_Name: Nick Efthymiou
Version: R1.5.0 and above
OS: Red Hat Linux
Submission from: (NULL) (162.93.14.73)
With the introduction of the functions rowSums(), colSums(), rowMeans() and
colMeans() in R1.5.0, function "SEXP do_colsum(SEXP call, SEXP op, SEXP args,
SEXP rho)" was added to perform the fast summations. We have an excellent
opportunity to improve the accuracy by
2015 Jan 09
0
latex warning
>>>>> G?bor Cs?rdi <csardi.gabor at gmail.com>
>>>>> on Thu, 8 Jan 2015 17:18:27 -0500 writes:
> Dear all,
> I am getting an R CMD check warning about the PDF manual. I am having a
> hard time finding out what is wrong, here is the log of the Rd2pdf call.
> The full check (and other) log is at
>
2012 Sep 20
3
(no subject)
>From my book on corpus linguistics with R:
# (10) Imagine you have two vectors a and b such that
a<-c("d", "d", "j", "f", "e", "g", "f", "f", "i", "g")
b<-c("a", "g", "d", "f", "g", "a", "f", "a",
2011 Oct 20
0
StatET & Sweave cannot compile pdf files
I am new to R, Sweave, and LaTeX. I am running StatET with Eclipse 3.7
on a Windows
7 x64 OS. StatET also includes the Sweave add-on, which I use to try and
compile a PDF document.
I also installed MiKTeX 2.9, because, previously, R could not execute texi2dvi
(presumably, because there was no TeX runner). Basically, no .tex file could
be compiled into PDF file. After I installed MiKTeX, I was
2007 Feb 08
3
Get categories where forum-user posted in
I''m developing a system similar to the ForumExample (http://
wiki.rubyonrails.org/rails/pages/ForumExample), and stumbled upon the
following.
Let''s say I wanted to get all the categories a certain user posted in.
How do I get that information withouth using a custom query
through :finder_sql (and thus losing the find_in_collection ownage)?
It would also be great to see how many
2010 Oct 27
2
must .Call C functions return SEXP?
For using R's .Call interface to C functions, all the examples I've
seen have the C function return type SEXP. Why? What does R actually
do with this return type? What happens if I *don't* return a SEXP?
Reason I ask, is I've written some R code which allocates two long
lists, and then calls a C function with .Call. My C code writes to
those two pre-allocated lists, thus, I
2012 Sep 24
1
Question lattice SplomT
Dear Deepayan Sarkar,
I have (again) a question concerning "panel" and my function "SplomT",
see attachments. Some time ago you helped me to write this function,
thanks again. I have used it to great advantage in my statistics
instructions. Now the problem I encounter is that the .pdf figure
generated in Sweave consists of
one extra empty page at the start.
This prevents
2005 Jun 16
1
Sweave and sideways
Hi there,
I'm rying to 'turn' an Schunk in an .Rnw file(Xemacs-21.4.13, ESS-5.2.8,
R-2.1, miktex-2.4.1705).
Has anyone got the isorot package to work with Sweave?
JC
example test.Rnw:
\documentclass[a4paper]{article}
\usepackage{Sweave}
\usepackage{isorot}
\rotdriver{dvips}
\clockwise
\title{Sweave Example 1}
\author{apologies to Friedrich Leisch }
\begin{document}
\maketitle
2003 Apr 25
0
[Bug 85] New: couldn't write file ,call syscall ,ex. sys_open
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=85
Summary: couldn't write file ,call syscall ,ex. sys_open
Product: netfilter/iptables
Version: linux-2.4.x
Platform: i386
OS/Version: RedHat Linux
Status: NEW
Severity: major
Priority: P2
Component: ip_tables (kernel)
AssignedTo:
2020 Feb 14
3
R-3.6.2 make check fails
I am trying to build the latest version of R (3.6.2) on a CentOS system running 7.7.1908.
I have been able to build previous versions of R up to and including 3.5.3 successfully. Starting with 3.6.0
the "make check" step fails with errors relating to "pdflatex" being missing. So, I installed texlive-latex
(and the 100 other rpm dependencies) then tried rebuilding R.
2023 Oct 09
3
Deleting voicemail by program
Hi all,
I need to be able to delete a voicemail message using a program.
Is is sufficient to simply delete the .wav and .txt files in the spool directory?
Or do I need to also renumber the remaining files?
For example, let say a given mailbox has 20 messages in it and I want to
delete message number 5. Can I just delete the 2 files and expect that
asterisk will renumber them? Or do I
2004 Feb 19
1
latex problem with Sweave output file under Debian
Could someone tell me how to end the trouble I'm encountering when
running latex on the .tex file produced by Sweave()? Sweave() seems to
process the example file
(http://www.ci.tuwien.ac.at/~leisch/Sweave/example-1.Snw) without
problems, and the file example-1.tex produced is the same as in the Sweave
manual. However, when I run latex on example-1.tex, many error messages
and requests for
2018 Aug 02
1
NFS/RDMA connection closed
Hi, we are having a problem with NFS using RDMA protocol over our FDR10
Infiniband network. I previously wrote to NFS mailing list about this,
so you may find our discussion there. I have taken some load off the
server which was using NFS for backups, and converted it to use SSH, but
we are still having critical problems with NFS clients losing connection
to the server, causing the clients
2011 Jan 09
1
Operating on count lists of non-equal lengths
This is my first post to R-help and I look forward receiving some
advice for a novice like me...
I?ve got a simple repeated (4 periods so far) 10-question survey data
that is very easy to work on Excel. However, I?d like to move the
compilation to R but I?m having some trouble operating on count list
data in a neat way.
The data C
> str(C)
'data.frame': 551 obs. of 13