Displaying 20 results from an estimated 1000 matches similar to: "How to save multiple graphs into a single file"
2007 Dec 27
4
Conditionally incrementing a loop counter
Hi,
I am trying a for loop from 1 to 100 by 1. However, if a condition does
not get met, I want to "throw away" that iteration. So if my loop is
for (i in 1:100)
and i is say, 25 and the condition is not met then I don't want i to go
up to 26. Is there a way to do that? I can't seem to manually adjust i
because from what I understand, R creates 100 long vector and uses that
to
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
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.
#
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
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(
2005 Nov 09
6
elements in a matrix to a vector
hi all,
i'm trying to get elements in a matrix into a vector. i need a
"streamlined" way to do it as the way i'm doing it is not very
serviceable. an example is a 3x3 matrix like
0 0 3
2 0 0
0 4 0
to a vector like
3 2 4
thanks...mj
[[alternative HTML version deleted]]
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
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,
2005 Nov 15
3
Reading in a table with unequal columns
Hi,
Wasn't sure how to explain this problem succinctly in a title. I am
trying to read in a text file that looks like:
0 1000 175 1 2 3
1 1000 58 0 2 9
2 1000 35 0 1 3 10
3 1000 300 0 2 4 5 10 11 18
4 1000 150 3 5 6
5 1000 100 3 4 6 7 18
6 1000 50 4 5 7 8
7 1000 155 5 6 8 19
8 1000 255 6 7 19
9 1000 200 1 10 12
10 1000 52
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$
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
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
2000 Jul 17
2
Plain Text Passwords
How do you undo the Plain Text Password Registry hack in Windows? How do I
reverse it after it has been applied?
Daniel Hardy
metaSENSORS, Inc.
358 Hungerford Drive
Rockville, Maryland 20850
Tel: (301) 762-3078 ext. 35
Fax: (301) 340-0769
Email: danh@metasensors.com
On the Web at www.metasensors.com
-------------- next part --------------
HTML attachment scrubbed and removed
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
2016 Jun 20
2
xxx not available for .C in package yyy
Hi R package developers. This is literally the strangest thing I've ever seen.
Latest (as of a month ago) R under cygwin64. I'm teaching an intern package
building and using the .C interface. The package compiles, but when it gets
to "setting up lazy load" or some such it throws the error "triang" not available for .C()
in package "randpkg". Upon checking,