Displaying 20 results from an estimated 6000 matches similar to: "anyone know how to combine two vector with some # overlaped?"
2004 Apr 08
1
getting data frame rows out of a by object
Hi. I can quickly create a by object that selects rows from a data
frame. After that, though, I don't know how to merge the rows back
into a data frame that I can use.
Here is an example where there is a data frame with three columns, a,
b, and c. I update it so that there are two rows for each combination
of a and b. I use by to select the subgroups of rows that share the
same a and b
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 <-
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
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
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2006 May 19
4
Cross correlation/ bivariate/ mantel
> Background:
> OS: Linux Ubuntu Dapper
> release: R 2.3.0
> editor: GNU Emacs 21.4.1
> front-end: ESS 5.2.3
> -----------------------------
> Colleagues
>
I have two spatial datasets (latitude, longitude, fish eggs) and (latitude, longitude, fish larvae) at the same 280 stations (i.e. 280 cases). I want to determine if the 2 datasets are spatially correlated. In other
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
2005 Jul 28
2
lattice/ grid.layout/ multiple graphs per page
Background:
OS: Linux Mandrake 10.1
release: R 2.0.0
editor: GNU Emacs 21.3.2
front-end: ESS 5.2.3
---------------------------------
Colleagues
I have a set of lattice plots, and want to plot 4 of them on the page.
I am having trouble with the layout.
grid.newpage()
pushViewport(viewport(layout = grid.layout(2,2)))
pushviewport(viewport(layout.pos.col = 1, layout.pos.row = 1))
working trellis
2005 Aug 15
4
return unique values from date/time class object
Background:
OS: Linux Mandrake 10.1
release: R 2.0.0
editor: GNU Emacs 21.3.2
front-end: ESS 5.2.3
---------------------------------
Colleagues
I have a wind speed time series with a normal frequency distribution and a
spike in the 5 metres/second bin. The most likely explanation is that the
instrument was returning duplicate values at this speed. To check this, I
want to extract all the unique
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.
2005 Mar 14
1
initialising trellis device {lattice}/ postscript
Background:
OS: Linux Mandrake 10.1
release: R 2.0.0
editor: GNU Emacs 21.3.2
front-end: ESS 5.2.3
---------------------------------
Colleagues
I am using:
trellis.device(postscript, file="../figures/name.ps")
.....code to generate the trellis display here ....
graphics.off()
to create a postscript from a working xyplot display.
The problem is that the postscript file appears to be
2005 Sep 13
1
R CMD INSTALL -l /path/to/library packagename
Background:
OS: Linux Mandrake 10.1
release: R 2.1.1
editor: GNU Emacs 21.3.2
front-end: ESS 5.2.3
Colleagues
Since I upgraded to R 2.1.1, I am getting a an error message from R CMD
INSTALL packagename that says
R_HOME ('/usr/local/lib/R') not found.
That's not too surprising, since R is now in /usr/lib/R, but what is
confusing me is that
R CMD INSTALL -l /path/to/library