search for: res3

Displaying 20 results from an estimated 31 matches for "res3".

Did you mean: res
2013 Jun 10
4
Combining CSV data
Hello R community, I am trying to combine two CSV files that look like this: File A Row_ID_CR, Data1, Data2, Data3 1, aa, bb, cc 2, dd, ee, ff File B Row_ID_N, Src_Row_ID, DataN1 1a, 1, This is comment 1 2a, 1, This is comment 2 3a,
2010 Jul 20
1
p-values pvclust maximum distance measure
...------------------------------------ s <- matrix(runif(1600,0,1000), nrow=20) a.res1 <- pvclust(t(s), method.hclust="complete", method.dist="euclidian", nboot=500) a.res2 <- pvclust(t(s), method.hclust="complete", method.dist="maximum", nboot=500) a.res3 <- pvclust(t(s), method.hclust="complete", method.dist="canberra", nboot=500) a.res4 <- pvclust(t(s), method.hclust="ward", method.dist="euclidian", nboot=500) a.res5 <- pvclust(t(s), method.hclust="ward", method.dist="maximum", n...
2009 Jul 31
1
[PATCH] [memdisk] Additional EDD Device Parameter Table fields
...I len +.res1 db 0 ; Reserved +.res2 db 0 ; Reserved +.bustype equ ''PCI '' ; Host bus type (4 bytes, space padded) +.inttype equ ''ATA '' ; Interface type (8 bytes, spc. padded) +.intpath dd 0, 0 ; Interface path +.devpath dd 0, 0, 0, 0 ; Device path +.res3 db 0 ; Reserved +.chksum db 0 ; DPI checksum (not implemented) =20 %endif =20 diff --git a/memdisk/setup.c b/memdisk/setup.c index 98c4b69..b8efd8a 100644 --- a/memdisk/setup.c +++ b/memdisk/setup.c @@ -80,6 +80,16 @@ struct edd_dpt { uint64_t sectors; &...
2013 Aug 26
4
transform variables
Dear all! I have a data frame composed by 13 columns (year, and 12 months). I want to transform this data base in another like this year month values 1901 1 1901 2 1901 3 ..... 1901 12 1902 1 1902 2 .... 1902 12 Is there a possibility to succeed that in R? Thank you! best regards! CR -- --- Catalin-Constantin ROIBU Lecturer PhD, Forestry engineer Forestry Faculty of Suceava Str.
2013 Nov 21
1
how can I import a number of datsets in a folder in my working directory to a list in R
Hi, Suppose, if I create 15 files in my working directory. set.seed(48) lapply(1:15,function(i) {m1 <- matrix(sample(1:20,1686*2,replace=TRUE),nrow=1686,ncol=2); write.table(m1,paste0("file_",i,".txt"),row.names=FALSE,quote=FALSE)}) ?D <-dir() D1 <- D[order(as.numeric(gsub("\\D+","",D)))] D1 ?res <- t(sapply(D1,function(x) {x1<-
2007 Oct 14
0
repeated measures - aov, lme, lmer - help
...e? I'm unsure; results are slightly different. # I understand that there is no predict for lmer models. anova does not give me the significance for lmer modes, so I guess I should enter the variables by steps and compare models with anova(m1, m2, ...) # and now the binary data. Is this correct? res3 <- lmer(pr01 ~ rain + year + site + (1|tree), data=mydat, family=binomial); anova(res3) res3 Many thanks for any comments Juli -- http://www.ceam.es/pausas
2013 Oct 04
3
Trying to avoid nested loop
Dear R users. I'm trying to avoid using nested loops in the following code but I'm not sure how to proceed. Any help would be greatly appreciated. With regards,Phil X = matrix(rnorm(100), 10, 10) ## Version with nested loopsresult = 0 for(m in 1:nrow(X)){ for(n in 1:ncol(X)){ if(X[m,n] != 0){ result = result + (X[m,n] / (1 + abs(m - n))) } }} ## No
2013 Sep 25
1
Best and worst values for each date
Hi, May be you can try this: obj_name<- load("arun.RData") Pred1<- get(obj_name[1]) Actual1<- get(obj_name[2]) library(reshape2) dat<-cbind(melt(Pred1,id.vars="S1"),value2=melt(Actual1,id.vars="S1")[,3])? # to reshape to long form colnames(dat)[3:4]<- c("Predict","Actual") dat$variable<- as.character(dat$variable) #not that
2013 Feb 01
29
cumulative sum by group and under some criteria
Thank you very much for your reply. Your code work well with this example. I modified a little to fit my real data, I got an error massage. Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) : Group length is 0 but data length > 0 On Thu, Jan 31, 2013 at 12:21 PM, arun kirshna [via R] < ml-node+s789695n4657196h87@n4.nabble.com> wrote: > Hi, > Try this: >
2012 Oct 06
0
SFTP ls directory listing incorrect
...slightly wrong i.e., file sizes/flags/timestamps of two files are swapped. dan at localhost:/tmp> ls -l peers.* -rw-r--r--. 1 rob users 2176 Oct 4 15:12 peers.awk -rw-r-----. 1 dan traders 1311410 Oct 4 16:49 peers.res2 -rw-r-----. 1 dan traders 66799654 Oct 4 16:59 peers.res3 -rw-r--r--. 1 rob users 8900 Oct 4 16:56 peers.txt sftp> ls -l peers.* -rw-r--r-- 0 500 100 2176 Oct 4 15:12 peers.awk -rw-r----- 0 505 502 1311410 Oct 4 16:49 peers.res2 -rw-r--r-- 0 500 100 8900 Oct 4 16:56 peers.res3 -rw-r----- 0 5...
2006 Jul 06
0
Problem joining Netapp server to samba domain
...= 0x0 Flags2 = 0x0 Tree ID = 0 (0x0) Proc ID = 0 (0x0) UID = 0 (0x0) MID = 0 (0x0) Word Count = 17 (0x11) TotParamCnt=0 (0x0) TotDataCnt=42 (0x2a) MaxParmCnt=0 (0x0) MaxDataCnt=0 (0x0) MaxSCnt=39942 (0x9c06) TransFlags=0xAFF Res1=0x0 Res2=0x0 Res3=0x0 ParamCnt=0 (0x0) ParamOff=92 (0x5c) DataCnt=42 (0x2a) DataOff=92 (0x5c) SUCnt=3 (0x3) Data: (6 bytes) [000] 01 00 00 00 02 00 \001\000\000\000\002\000 Name=\MAILSLOT\NET\NETLOGON Data Data: (42 bytes) [000] 00 00 46 49 4C 45 52 54 4F 50 00 24 00 5C 4D 41 \000\000FILERT OP\000$\000\MA [010] 4...
2012 Dec 27
4
Finding (swapped) repetitions of numbers pairs across two columns
Hi, I've had this problem for a while and tackled it is a quite dirty way so I'm wondering is a better solution exists: If we have two vectors: v1 = c(0,1,2,3,4) v2 = c(5,3,2,1,0) How to remove one instance of the "3,1" / "1,3" double? At the moment I'm using the following solution, which is quite horrible: v1 = c(0,1,2,3,4) v2 = c(5,3,2,1,0) ft <-
2013 Jun 18
1
transform 3 numeric vectors empty of 0/1
Dear all, Without a loop, I would like transform 3 numeric vectors empty of 0/1 of same length Vec1 : transform 1 to A and 0 to "" Vec2 : transform 1 to B and 0 to "" Vec3 : transform 1 to C and 0 to "" to obtain only 1 vector Vec who is the paste of the 3 vectors (Ex : ABC, BC, AC, AB,...) Any idea ? Thank you for your help -- Michel ARNAUD
2011 Apr 04
2
General binary search?
Is there a generic binary search routine in a standard library which a) works for character vectors b) runs in O(log(N)) time? I'm aware of findInterval(x,vec), but it is restricted to numeric vectors. I'm also aware of various hashing solutions (e.g. new.env(hash=TRUE) and fastmatch), but I need the greatest-lower-bound match in my application. findInterval is also slow for
2020 Oct 31
0
fast way to find most common value across columns dataframe
Thank you. The problem was not finding the mode but applying it the R way (I have the tendency to loop into each line of the dataframes, which I believe is NOT the R way). I'll try them. Best regards Luigi On Sat, Oct 31, 2020 at 5:40 PM Bert Gunter <bgunter.4567 at gmail.com> wrote: > > As usual, a web search ("find statistical mode in R") brought up something that is
2000 Jan 06
1
nlme
...groups=~subj,data=datam,verbose=T,method="ML") res2 <- nlme(logconc~p2+p3+log(dose/(exp(p1)-exp(p2))* (exp(-exp(p2)*tm)-exp(-exp(p1)*tm))),start=list(fixed=c(5,-2,-0.1)), fixed=list(p1+p2+p3~1),random=pdDiag(p1+p2+p3~1), groups=~subj,data=datam,verbose=T,method="ML") res3 <- nlme(logconc~p2+p3+log(dose/(exp(p1)-exp(p2))* (exp(-exp(p2)*tm)-exp(-exp(p1)*tm))),start=list(fixed=c(5,-2,-0.1,0)), fixed=list(p1+p2~1,p3~bilirubin),random=pdDiag(p1+p2+p3~1), groups=~subj,data=datam,verbose=T,method="ML") However, when I add a second covariate, res4 <...
2008 Jul 17
2
fastICA
Hi everyone It looks like repeated runs of fastICA produce quite significantly different mixing matrices (not only in terms of sign and row order). I'm not a specialist, so would appreciate any advice on whether this should really be the case: > res3 = > fastICA(af[,2:20],4,alg.typ="parallel",fun="logcosh",alpha=1,method="C",row.norm=TRUE) colstandard > res4 = > fastICA(af[,2:20],4,alg.typ="parallel",fun="logcosh",alpha=1,method="C",row.norm=TRUE) colstandard > res3$A...
2020 Oct 31
2
fast way to find most common value across columns dataframe
As usual, a web search ("find statistical mode in R") brought up something that is possibly useful -- Did you try this before posting? If not, please do so in future and let us know what your results were if you subsequently post here. Here's what SO suggested: Mode <- function(x) { ux <- unique(x) ux[which.max(tabulate(match(x, ux)))] } # ergo:
2009 Aug 02
0
[PATCH] [memdisk] Additional EDD DPT Fields
...;MEM ' ; Host bus type (4 bytes, space padded) +.inttype dd 'MEMO' + dd 'RY ' ; Interface type (8 bytes, spc. padded) .intpath dd 0, 0 ; Interface path .devpath dd 0, 0, 0, 0 ; Device path .res3 db 0 ; Reserved -------------- next part -------------- A non-text attachment was scrubbed... Name: dpi_correction.patch Type: application/octet-stream Size: 835 bytes Desc: dpi_correction.patch URL: <http://www.zytor.com/pipermail/syslinux/at...
2007 Feb 28
0
Asterisk 1.4 does not load chan_vpb.so
...vpb.o and chan_vpb.oo, then try to link them together. I manually compiled it, then make went smoothly. But it refused to load chan_vpb.so I switched back to Asterisk 1.2, it segfaults on chan_vpb.so. my VPB driver details: vpb: Driver Version = 4.0 vpb: major = 254 vpb: tmp [0xf0342000] dev->res3 [0xf0342000] vpb: tmp [0xf0300000] dev->res2 [0xf0300000] vpb: 0WS Write cycle vpb: Manufactured 17/03/2004 vpb: Card version 20.03 vpb: Serial number 41201496 vpb: Setting up udev... vpb:1 V4PCI's detected on PCI bus I actually installed a newer vpb driver (4.0), it did not work....