Displaying 20 results from an estimated 29 matches for "frame2".
Did you mean:
frame
2002 Jan 18
2
length of dimnames???
...ay extent
I do not know what it means and could not find how to get around that
in the manual nor in the R search page.
Any idea?
Thanks,
jp
-----------------------------
> frame1 <- read.table("/Users/gattuso/zRdata/coca/oceanic.txt",
>header=TRUE,sep=",")
> frame2 <- read.table("/Users/gattuso/zRdata/coca/cellids.txt",
>header=TRUE,sep=",")
> frame1$celltype <- frame2[match(frame1$ID,frame2$ID),2]
> frame1$cellid <- frame2[match(frame1$ID,frame2$ID),3]
> frame1$zone <- frame2[match(frame1$ID,frame2$ID),6]
>...
2005 Jan 23
5
How to use "identify"
I can't get identify to work, using R 2.0.1 under windows xp pro,
service pack 2. Here's what I enter, and the result:
> plot((our.frame2$c1),(our.frame2$c9)) # Produces desired plot
> identify(our.frame2$c1) # Plot comes to forefront, so I select a point
warning: no point with 0.25 inches
numeric(0)
Is my call to identify correct? The help page for indentify (from
?identify) doesn't give any examples, so I don't know...
2005 Oct 09
3
cor doesn't accept na.rm? (PR#8193)
Full_Name: Paul Bailey
Version: 2.1.1
OS: OS X 10.3
Submission from: (NULL) (68.252.250.144)
?cor
[tells me that it has a na.rm variable]
> cor(frame2[1,],frame2[2,],na.rm=T)
Error in cor(frame2[1, ], frame2[2, ], na.rm = T) :
unused argument(s) (na.rm ...)
hmm.
2012 Jan 14
3
add column with values found in another data frame
...for your help. I need to know how to look
something up in one data frame and add it as a column in another. If I have
a data frame that looks like this:
> frame1
ID score test age
1 Guy1 10 1 20
2 Guy1 13 2 20
3 Guy2 9 1 33
4 Guy2 11 2 33
and another frame that looks like this:
> frame2
ID
1 Guy1
2 Guy2
How do I add a column to frame2 so it looks like this:
ID age
1 Guy1 20
2 Guy2 33
I know this must be simple, but I couldn't find the solution by searching.
thanks so much
Jeremy
--
View this message in context: http://r.789695.n4.nabble.com/add-column-with-values-fou...
2007 Aug 14
2
Question about unicode characters in tcltk
...ipts into a tcltk menu.
The code creates all the mu's, and the 1 and 2 subscripts, but it
won't create the 0. Is there a certain set of characters that R won't
recognize the unicode for? Or am I input the \u2080 incorrectly?
library(tcltk)
m <-tktoplevel()
frame1 <- tkframe(m)
frame2 <- tkframe(m)
frame3 <- tkframe(m)
entry1 <- tkentry(frame1,width=5,bg='white')
entry2 <- tkentry(frame2,width=5,bg='white')
entry3 <- tkentry(frame3,width=5,bg='white')
tkpack(tklabel(frame1,text='\u03bc\u2080'),side='left')
tkpack(tklabel(fr...
2005 Aug 12
2
coercing created variables into a new data frame using na.omit()
....variable<-rep(1,length(weight3))
for (x in 1:length(new.variable))
{f<-((((age1[x]-7)*(weight[x]-mw))+((age2[x]-7)*(weight2[x]-mw))+((age3[x]-7)*
(weight3[x]-mw)))/(((age1[x]-7)^2)+((age2[x]-7)^2)+((age3[x]-7)^2)));
new.variable[x]<-f}
#then bind it into the existing old data frame
data.frame2<-cbind(data.frame1,newvariable)
rm(dat.frame1)
attach(data.frame2)
#everything o.k. so far but now the problem part... I basically want to remove
all the rows with NA in the new data frame including corresponding rows in the
new variable
data.frame3<-na.omit(data.frame2)
rm(data.frame2)
att...
2011 Apr 05
2
Help to check data before putting it in a database
...als) with a set of
columns containing data about these goals (player name, tactic position,
etc). For now, this database will be called "data.frame1".
What I need is to feed this "data.frame1" with new information about my team
goals. I will call this new information "data.frame2". This set of new goals
is organized in the same way as in "data.frame1" (equal numbers of cols).
Where help is needed:
I need help in finding a way to check the player-name column in
"data.frame2" before feeding "data.frame1" with it. What I need is a way to
ve...
2006 Oct 16
3
lda
I'm trying to do a linear discriminant analysis on a dataset of three
classes ("Affinities"), using the MASS library:
> data.frame2 <- na.omit(data.frame1)
>
> data.ld = lda(AFFINITY ~ ., data.frame2, prior = c(1,1,1)/3)
Error in var(x - group.means[g, ]) : missing observations in cov/cor
What does this error message mean and how can I get rid of it?
Thanks!
Pieter
2010 Jan 20
1
Merge and join data
...I've included a basic
example of what I'm trying to do below. Thanks!
Sean
data.frame1<-as.data.frame(matrix(c('winter','dredge','515',100,150),1,5))
names(data.frame1)<-c('Season','Gear','Area','COD','POLL')
data.frame2<-as.data.frame(matrix(c('winter','dredge','515',13,24,18),1,6))
names(data.frame2)<-c('Season','Gear','Area','COD','POLL','HAD')
I'd like to end up with something that looks like this:
Season Gear Area COD...
2013 Feb 13
3
match in dependence of 2 columns
...name value
A 1 Evo 100
B 1 Mer 80
C 2 Ford 50
And now i want to match the value to data.frame 2 in dependence of cu.nr.
and name.
data.frame2
cu.nr. name
A 33 Evo
B 1 Mer
C 1 Pold
as you can see, there is only one row with equal cu.nr. and name. How can i
match the da...
2002 Jan 02
1
Combining files
Hi:
I am a very recent user of R 1.40 for MacOSX and went through the
help files but did not not find the function that I am looking for.
I have two comma separated files which I want to partly combine.
File 1 has 49670 lines and 26 columns (separated by commas) and looks
like this:
...
2007 Jun 13
1
how to optionally include variables in a data.frame at assignment
I am creating a data.frame inside a function and the set of variables
to include depends on the current value of other variables. Is there
a way to accomplish this in the original assignment? Or must I first
create the core data.frame with the variables I always want and then
use if blocks to add other variables?
Basically, I'm hoping for something like this (which does not work):
1999 Mar 01
1
"xpdrows.data.frame" (PR#131)
...t;???
By the way, how to debug this example under windows? debug() doesnt
accept
the functions used (.Primitive), and R wont run under gdb --- may have
to do
with R.dll, from the manual for gdb i get it that it cannot debug
functions
in shared libraries?
copied:
Using the data frames frame1 and frame2 from the attached saved dataset
frame.dat
(say load("frame.dat") ):
> for (i in 1:11) {
+ frame1[i, ] <- frame2[i, ] }
Error: couldn't find function "xpdrows.data.frame"
--- What is function xpdrows.data.frame? There should be an more
appropiate
error mssa...
2008 Aug 04
0
AEC
Hi,I'am new to speex,i have a question:
Suppose i have two frames:frame1(5ms),frame2(10ms),And i don't want to do aec in middle 5ms frame. Can i just link them in frame1(5ms)....000000(5ms).....frame2(15ms),then do AEC with recorded buffer(20ms)?
_________________________________________________________________
???MSN???????????????????
http://mobile.msn.com.cn/
--------------...
2002 Jun 27
1
Simple Matrix plot question
Hello.
I'd like to produce a simple pairs-like plot
with two data frames - but not a traditional scatter-plot matrix -
just multiple bivariate plots of data.frame1[i] vs data.frame2[i] ...
In other words, given data frames X and Y, I'd like multiple plots on a
page like:
Y1 Y2 Y3
X1
X2
X3
Thanks in advance.
-R
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Sen...
2006 Oct 23
1
R tcl/tk
...later frame.2 resides where it should in the toplevel frame.
tkgrid(tklabel(frame.2, text="FACTOR column "), tkentry(frame.2,
textvariable=FACTOR.column.value, width=2), sticky="e")
This doesn't work because I don't know how to tell tcl that answer.button1
belongs in frame2:
tkconfigure(answer.button1, variable=buttonValue, value="TRUE")
tkgrid(tklabel(frame.2, text="Question? yes "), answer.button1,
sticky="e")
^^^^^^^^^^^^^^^
I know this can not be as hard as I am making it.
Thank...
2008 May 26
1
To draw observation [m, n] from 20 data frames named frame1, ... , frame20
Hi all,
I have 20 data frames, named frame1, ... , frame20. Each data frame has the
dimension 20x5. I need to build a function that calls out the observation in
Row 1, Col 2 from all 20 data frames and places it in a vector of length 20. I
have tried the following code:
vect <- rep(0,20)
for(i in 1:20){
vect[i] <- paste("frame",i,&...
2010 Sep 29
2
Adding two data.frames.
Hi
I have two data frames that contains the same sort of data and I want do add
them together to get one big data frame, anyone know how to do that?
ex:
data.frame1
A B C
1 2 3
4 5 6
7 8 9
and
data.frame2
A B C
9 8 7
6 5 4
3 2 1
Would then become one big set:
data.frame3
A B C
1 2 3
4 5 6
7 8 9
9 8 7
6 5 4
3 2 1
Thx for your help
//Joel
--
View this message in context: http://r.789695.n4.nabble.com/Adding-two-data-frames-tp2718771p2718771.html
Sent from the R help mailing list archive at Nabbl...
2004 Aug 06
1
auto-detection of frame boundary
I tried feeding in the 3 encoded frame in ONE BLOCK, and calling speex_decode() 3 times in a roll. Only the 1st frames came out perfectly. For the other 2, I got "corrupt" frame warning.
I was supposed to get 38 bytes consumed each frame (narrow-band, VBR off). I tried speex_bits_remaining() to peek on the # of bits consumed, and got variable (clearly wrong)#s returned.
But if I
2017 Jan 16
2
Error al fusionar tablas
Buenas tardes,
Estoy tratando de fusionar dos data.frames pero no obtengo lo deseado.
Un data.frame (Df1)tiene 53.657 observaciones (y 8 variables) que
pertenecen una a cada individuo de la muestra. El otro (Df2) tiene 63.987
observaciones (y 17 variables), de los 53.657 individuos previos porque
algun individuo tiene varias observaciones. Ambos solo coinciden por la
variable