Displaying 20 results from an estimated 2000 matches similar to: "getting data frame rows out of a by object"
2004 May 05
4
anyone know how to combine two vector with some # overlaped?
Hi, there,
Suppose I have two vector say x=c(1 2 3 4 5) and y=(2
3 6 7). Then I want to combine these two vector
together and get z=c(1 2 3 4 5 6 7) with 2 and 3 only
appear once. I want to extend this one to a general
case(say more than 100 elements in x and y and each
time I don't know which elements are the same). Do you
happen to know how to do this and which command should
use?
Thank
2004 Jun 29
2
Numbers as symbols
I want to use question numbers from my survey data
(fake data below) as markers in a scatterplot. I'm
using "as.character" to convert question numbers to
characters. However, plot truncates the 0 (zero) off
of question 10. How can I get the ending zero so I can
add questions 11 - 20?
# Sample code below
Question <- c(1,2,3,4,5,6,7,8,9,10)
Performance <-
2004 May 25
3
accessing function arguments as text, macro style
Hi. In a case like this, I can get strip headings that have the name
"c" and the value for c.
d <- data.frame(a=1:5,b=6:10,c=11:15)
> xyplot(a ~ b | paste("c", c), data=d)
>
For more complicated examples, instead of using paste repeatedly I
would like to use a function. It seems like what I really want is a
macro, though. I'm not quite familiar enough
2004 Apr 01
2
row selection based on median in data frame
Hi. I am having trouble thinking of an easy way to grab rows out of a
data frame. I want to select the rows with a median value when the
rows are similar.
A simple example is this table, which I could read into a data frame.
I would like to find a new data frame with only the rows with a median
value for the "c" column given a certain "a" value.
For example, the c values
2002 Mar 21
5
repeating rows or columns within a matrix
Hello
Spse I have a matrix, say
1 2 3
4 5 6
7 8 9
and I would like to expand it by repeating rows within the matrix, to
get, if the repeating factor is 2, say:
123
123
456
456
789
789
(or columnwise as well) . There must be a smart way of doing that?
Many thanks
Juhana Vartiainen
juhana.vartiainen at labour.fi
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2001 Nov 29
3
Reset trellis plot backgroud color
Hello,
I run R on Windows 2000. When I load lattice library and plot some lme class
objects, the graphic window displays a dark-green color. Graphics look ok on
the screen, but lines and points become invisible whem I send the plot to a
printer because of the background color. Are there ways to reset the
background color? Both par(bg=) and windows() do not work. Any ideas?
Richard
2001 May 21
1
ignoring SIGPIPE causing problems in pipes
Hi. I'm writing an article on network backups, and instead of using
my old ssh1 software, I decided to go with openssh all the way. I got
the hang of the openssh way of doing protocol 2 public key
authentication, but ssh is failing to terminate when a pipe is broken.
I am ssh-ing to a remote host and doing a cat or zcat of a dump file,
then on the localhost, I'm using restore to extract
2001 Jun 06
1
proposal for cosmetic change: prompts
Hi. If I submit patches that make the prompts look more like prompts,
would those patches be welcome?
Before:
ecashin at nilda ecashin$ ssh-add ~/.ssh/id_dsa
Need passphrase for /home/ecashin/.ssh/id_dsa
Enter passphrase for /home/ecashin/.ssh/id_dsa
After (model 1):
ecashin at nilda ecashin$ ssh-add ~/.ssh/id_dsa
Need passphrase for /home/ecashin/.ssh/id_dsa
Enter passphrase for
1997 Apr 30
1
R-beta: Re: S Compatibility
Bill Venables writes:
----- Begin Included Message -----
foresight) was publicly very supportive of Ross & Ron's efforts.
++++++
well I've never been called that before!
----- End Included Message -----
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
1999 Mar 17
1
hist(list)?
It seems that the following should work:
> x<-read.table('1A.tab',header=T,skip=1);
> mode(x[1])
[1] "list"
> x[1]
p01
R1-00 0.0295
R1-01 0.0283
R1-02 0.0145
R1-03 0.0235
R1-04 0.0339
R1-05 0.0239
R1-06 0.0414
R1-07 0.0259
> hist(x[1])
Error: hist: x must be numeric
> as.numeric(x[1])
Error: (list) object cannot be coerced to vector type 14
>
1998 Apr 04
2
R-beta: standard-errors-glm
I have a small problem. I am running glm() in R-0.61.0 on Redhat 4.2.
I want to get the standard errors from the output. If I do
out <- glm(....)
summary(out)
I get the coefficients printed as well as their correlation matrix. If I do
out$coefficients I get the coefficients
out$fitted gives me the fitted values
I can then assign the fitted values or the value of the estimated
1998 Mar 18
2
R-beta: Plot and scale
Hello everybody,
I am doing a plot and I would like to know which parameter
I have to use in order to get an equal scale for the axes x and y:
Means, if the intervals in the x-axis is 0,5,10,15....
I would like to have the same scale for the y-axis.
Thank you so much for your help.
Halima from Leiden where the sun is shining.
Holland
1997 Apr 30
1
R-beta: Re: S Compatibility
Bill Venables writes:
> Are the scoping differences between R and S set out precisely and
> definitively somewhere? This would be useful.
In the source code perhaps? :-)
You can find a pretty precise description in the article Robert and I
did in JCGS.
Actually its pretty simple. Functions have access to the variables
which were in effect when the function was defined.
f <-
1998 Aug 20
2
R-beta: Hmisc and R
Hello,
I want to try the Design and Hmisc library from FE Harrell but,
i have trouble with the copyright for the library Hmisc :
in the home of the author :
http://fharrell.biostat.virginia.edu/s/unix/
in the file Hmisc.README
###COPYRIGHT NOTICE
###You may not port code in the Hmisc library to R.
Aie, Why ????
###You may distribute these functions freely as long as you do so
without
2005 Jul 14
5
Polycom Auto-Answer problems
CVS Head from 07/07/2005
I'm trying to make an IP-501 auto answer a call.
exten => 301,1,SetVar(_ALERT_INFO="Ring_Ans")
exten => 301,2,SetVar(ALERT_INFO="Ring_Ans") # Tried both combinations
exten => 301,3,Dial(SIP/5001,15)
exten => 301,4,Hangup
Sip.cfg for Polycom phone
<alertInfo voIpProt.SIP.alertInfo.2.value="Ring_Ans"
1998 Oct 16
3
mean and sd of each serial position
I want to do something like this in R. If I have three vectors
> a1
[1] 1 2 3
> a2
[1] 4 5 6
> a3
[1] 9 10 7
I want to compute
1. A vector that is the mean at each serial position of a1, a2, and a3.
so in this example it would have the contents
4.667, 5.667, 5.333333
2. A vector that is the SD at each serial position of a1, a2, and a3.
so in this example it would have the contents
1998 Feb 20
1
R-beta: scoping etc
A non-text attachment was scrubbed...
Name: not available
Type: text
Size: 1538 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/19980220/040a76f5/attachment.pl
1998 Mar 26
3
R-beta: Teach material for R
A non-text attachment was scrubbed...
Name: not available
Type: text
Size: 1480 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/19980326/974231c9/attachment.pl
1997 Sep 09
2
R-beta: "Comparison of Mathematical Programs for Analysis"
Hi,
I have just seen Stefan Steinhaus' web page :
http://www.uni-franfurt.de/~stst/ncrunch.html
I think it would be nice to include "R" as well.
I have taken Forrest Young's email on stat-lisp list and changed the
stuff for "R" :) Here it is: (someone please check this so we can
also send it to Stefan Steinhaus.
2001 Jun 15
1
no // comments, please
Non-gcc compilers tend not to like C++-style // comments in plain C
code, as I discovered when trying to build the latest snapshot
(20010615) with the Tru64 UNIX C compiler.
*** channels.h.orig Fri Jun 8 18:20:07 2001
--- channels.h Fri Jun 15 14:41:01 2001
***************
*** 209,215 ****
/* x11 forwarding */
int x11_connect_display(void);
! //int x11_check_cookie(Buffer *b);