Displaying 6 results from an estimated 6 matches for "nm3".
Did you mean:
nm
2009 Mar 13
2
Taking diff of character vectors
...t in value
but what if I have
nm2 <- c(rep("SPZ8", 10), rep("SPX9", 10))
how can I produce the same ouput as diff(nm1) does, that is zeros
everywhere except for one place where SPZ8 changes to SPX9 (there
should be 1 there)?
What if I have a matrix of characters like that:
nm3 <- c(rep("GLF9", 4), rep("GLF10", 16))
matr <- cbind(nm2, nm3)
How can I efficiently create two more columns that contain zeros
everywhere except for place where there is shift in character values?
Thanks for help!
Sergey
--
I'm not young enough to know everything....
2009 Sep 20
4
correlation help
Dear group,
I have a matrix like the following:
Name Sample1 sample2 sample3 sample4 ..... sample(n)
nm1 10.5 13.5 30 31
nm2 8 11 34 29
nm3 9 10.3 27.8 35
nm(j)
I want to be able to calculate correlation between all pairs of names.
For example (nm1,nm2), (nm1,nm3), (nm1,nmj), (nm2,nm3), (nm2,nmj)....
Then I want to calculate the significance of correlation using t-score
or p-value.
I can calcu...
2004 Dec 17
1
reshape and split
Dear R-users,
I am trying to reshape the DF "dat2" in the "long" format,
but can't figure out how to use the "split"-option:
> dat2
a.1995.z b.1995.z a.1996.z var
1 100.00000 100.00000 100.00000 Neue Anlagen insgesamt
2 40.09904 23.60890 40.88960 Neue Ausr??stungen
3 59.90096 76.39110 59.11040 Neue Bauten
This
2011 Oct 17
1
plotting issues with PCA
...y printing the first colour in the
file....code is below
site.codings <-
c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,5,4,4,4,4,4,3,3,3,6,6,6,6,6,6,6,6,5,5,5,5)
> names(site.codings) <- c( "WM1", "WM2", "WM3", "NM1", "NM2", "NM3", "KH1",
"KH2", "KH3", "LM1" ,"LM2" ,"LM3", "DB1" ,"DB2" ,"DB3", "DM1" , "DM2" ,
"DM3" , "FI1", "FI2", "BKI1", "BKI2", "BKO1&qu...
2004 Aug 06
0
FYI: ACM codecs in Netmeeting
If you want to use the Speex ACM codec in Netmeeting, you need to register
the codec with Netmeeting. Microsoft offers an API to accomplish this
task.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmeet/nm3
codec_1xk3.asp
The function is called AddACMFormat in the IInstallAudioCodecs COM
interface.
It takes a fully initialized WAVEFORMATEX structure as well as an extra
AUDCAP_INFO structure as arguments. This WAVEFORMATEX structure can be
obtained by querying the ACM codec for its supported modes.
I...
2009 Mar 14
1
multiple hypothesis testing
...but put it inside an sapply and run
> > over the columns and then cbind it back with the original dataframe.
> > A)
> > nm2 <- c(rep("SPZ8", 10), rep("SPX9", 10))
> > -1.0*c(0,as.numeric((head(nm2,-1) != tail(nm2,-1))))
> >
> > B)
> > nm3 <- c(rep("GLF9", 4), rep("GLF10", 16))
> > matr <- cbind(nm2, nm3)
> > temp<-as.data.frame(sapply(1:ncol(matr), function(.col) {
> > -1.0*c(0,as.numeric((head(matr[,.col],-1) != tail(matr[,.col],-1))))
> > }))
> > cbind(matr,temp)
> >...