Displaying 20 results from an estimated 3000 matches similar to: "Conditionally incrementing a loop counter"
2007 Nov 16
1
How to save multiple graphs into a single file
Hi,
I have searched the archives and help manuals and can not find anything
regarding how to save multiple plots/graphs into a single for example,
pdf file. There is plenty of discussion etc. about saving a single plot
to a single file, but not multiple plots to a single file. Is it
possible? I can't want to use lattice, because I have hundreds of plots.
So, to keep it simple, let's say
2004 Apr 14
1
Variable Descriptors
Is there a way to associate text descriptions with variables in a
data.frame?
For example...
Let's say that in my data.frame I have a variable named var1. var1
represents the responses to the question "When was the last time you saw
your physician?" When I tabulate the variable var1 I'd like the output to
be a bit more descriptive and contain the more descriptive
2006 Apr 27
1
? bug in 'sample' (PR#8813)
I have found that specifying different "sizes" in the sample command has
a funny effect on the random sampling. The code below is a condensed
version of a function I wrote to simulate a bootstrap method. For
simplicity, I eliminated the internal bootstrap loop, but kept a
statement to draw one bootstrap sample, because this is where the
problem occurs. The output (mean(y)^2) should be
2011 Aug 19
1
Writing non-graphic (text) output to PDF
Hi, friends.
I keep coming to you because I'm so new to R and can't seem to figure out
some simple things. Sorry.
Consider the following code. I want to load a table and write out the
structure to a PDF document. I just can't seem to manage writing
non-graphic output to PDF. Any help? I've tried several functions, but
nothing worked. All I get is the title.
#
1997 Jul 21
2
socket options
Do the socket options still work with versions of samba above 1.9.16p10? I
get error messages both on the command line and in the smb.log file that say:
Unknown socket option IPTOS_LOWDELAY
Unknown socket option TCP_NODELAY
Here is my smb.conf Global parameter entry:
socket options = IPTOS_LOWDELAY TCP_NODELAY
Do these have to be compiled into the Samba program?
If these are outdated
2011 Aug 12
2
Getting data from an *.RData file into a data.frame object.
Hi, all.
I'm new to R. I've been a SAS programmer for 20 years.
I seem to be having trouble with the most basic task - bringing a table in
an *.RData file into a data.frame object.
Here's how I created the *.RData file.
library(RODBC)
db <- odbcConnect("*******")
df <- sqlQuery(
db
, "select * from schema.table where year(someDate)=2006"
)
save(
2006 Mar 15
2
lapply vs. for (was: Incrementing a counter in lapply)
> From: Thomas Lumley
>>
>> On Tue, 14 Mar 2006, John McHenry wrote:
>>
>> > Thanks, Gabor & Thomas.
>> >
>> > Apologies, but I used an example that obfuscated the question that I
>> > wanted to ask.
>> >
>> > I really wanted to know how to have extra arguments in
>> functions that
>> > would allow,
2006 Mar 13
3
Incrementing a counter in lapply
Hi All,
I'm looking for some hints on idiomatic R usage using 'lapply' or similar.
What follows is a simple example from which to generalize my question...
# Suppose, in this simple example, I want to plot a number of different lines in different colors;
# I define the colors I wish to use and I plot them in a loop:
d<-
2003 May 07
2
"Program" files
Is there any such thing as a program file in R? That is, is it possible to
compile and save code for performing data management and analytic tasks for
a given project into a single/multiple file(s) (i.e., like a script file
(S-Plus), a do file (STATA), or a *.sas file (SAS))?
Any words of wisdom or a point in the direction of some documentation would
be helpful. If it is not possible to work
2012 Oct 10
2
svyplot
Hello,
Using the svyplot () function, I have plotted four graphs that are saved in four different .png files.
I am looking for examples how to redraw the same four graphs within grid viewports so that they stay together on a page. The goal is to create one .png file that will include all four graphs (2 rows, 2 columns).
Any help would be appreciated.
Thanks,
Pradip
Pradip K. Muhuri,
2001 Aug 29
5
newbie graphics question
Hi!
I need to plot two lines on the same graph. I do
plot(x,y)
then
plot(x,z,add=TRUE)
but I get the following warning messages
Warning messages:
1: parameter "add" couldn't be set in high-level plot() function
2: parameter "add" couldn't be set in high-level plot() function
3: parameter "add" couldn't be set in high-level plot() function
4:
2005 Jun 02
2
overlaying plots
surely this not hard, but i can't figure it out. i'd like to overlay
the results of two ecdf's.
e.g. xx<--ecdf(x) and yy<--ecdf(y). i'd like to plot xx and yy on the
same graph.
thanks...mj
[[alternative HTML version deleted]]
2005 Jul 27
2
Returning positions of a vector
Hi,
I'd like to return the rows of sampled values of a vector. Can't figure
out how to do it.
For example: I start with [3, 1, 7, 4, 10] that have position
[1,2,3,4,5]. I sample [10,1,4] and I want to return [5,2,4].
I'm sure there's a simple way to do that but haven't been able to figure
it out or locate it.
Thanks in advance...mj
[[alternative HTML version
2003 Apr 24
3
Detailed contingency tables
Is there any existing function for creating contingency tables that will
display counts, row, column, and cell percentages in the same
tables....anything similar to crosstabs in S?
Marc W. Zodet, MS
Health Statistician
Center for Cost and Financing Studies
Division of Statistical Research and Methods
2101 East Jefferson Street, Suite 500
Rockville, Maryland 20852
Phone: 301-594-7072
Fax:
2012 Oct 26
1
How to resolve split-brain and replication failures?
Hi All,
What is the recommended procedures for resolving split-brain conditions on files and replication failures?
Thanks,
Michael
______________________________________________________________________________________
Michael Kushnir
System Architect / Engineer
Communications Engineering Branch
Lister Hill National Center for Biomedical Communications
National Library of Medicine
8600
2011 May 24
1
R in batch mode
Hi Everyone,
I am a new R user and trying to run R jobs in batch mode.
Robert Muenchen (2009), in his book "R for SAS and SPSS Users", has suggested writing a small batch file like mR.bat as shown below:
"C:\Program File\R\R-2.10.0\bin\Rterm.exe" --no-restore --no-save < %1 > %1.Rout 2>& 1
Could anyone tell me in which directory or subdirectory I should
2002 Dec 26
3
questions from a newbie
I have several newbie questions - any help much appreciated:
1. I run a combination Windows 98 and XP home network - have been looking at
Linux on two boxes at home - one desktop - one laptop - RH 7.3
2 I can get samba to run okay and in each of the two Win98SE machines can
see them as localhost
3. I cannot access any resources on the Linux machines - Win98 asks for a
password - \\localhost\IPC$
2012 Oct 02
2
svyby and make.formula
Hello,
Although my R code for the svymean () and svyquantile () functions works fine, I am stuck with the svyby () and make.formula () functions. I got the following error messages.
- Error: object of type 'closure' is not subsettable # svyby ()
- Error in xx[[1]] : subscript out of bounds # make.formula ()
A reproducible example is appended below.
I would appreciate if
2012 Oct 23
1
Problems with striped-replicated volumes on 3.3.1
Good afternoon,
I am playing around with GlusterFS 3.1 in CentOS 6 virtual machines to see if I can get of proof of concept for a bigger project. In my setup, I have 4 GlusterFS servers with two bricks each of 10GB with XFS (per your quick-start guide). So, I have a total of 8 bricks. When bu
I have no problem with distributed-replicated volumes. However, when I set up a striped replicated
2011 Dec 02
0
Permanent Opening for Unix Systems Admin in Rockville, MD - USA
Hello All,
This is Ryan Jones from Realinterface. We have a position that very closely
matches your skill set. Can you please call me on 714-729-4011 for a few
quick minutes or email me the best time to call you and we can discuss the
position?
You may go through the summary of the position below:
Title of the position: Unix Systems Admin (FreeBSD)
Type: Permanent
City, State