search for: v1

Displaying 20 results from an estimated 7314 matches for "v1".

Did you mean: vr1
2008 Jan 13
4
For Loop performance
Hello, Newbie question and hope you can help . I have two vector V1 and V2, where length(V2) = length of (V1) * 2; length(V1) ~ 16,000. For each member in V1, I need to compare 2 element of V2 for equality i.e. for (I in 1:length (V1)) { if ( v2[i] == v1[i] & v2[i+1]==v1[i] ){ statement_1 statement_2 . } }...
2012 Jun 06
2
non ascill characters in plots. no alternative but plotmath?
...me, the plot looks ok on the screen. Format1 <- c(320,500,700,1000,500,320,700,500,320) Format2 <- c(800,1000,1150,1400,1500,1650,1800,2300,2500) Vowel <- c("u","o", "?", "a","?", "y", "?", "e","i") V1 <- data.frame(Format1,Format2,Vowel) plot(Format1 ~ Format2, data = V1, type="n") text(V1$Format2, V1$Format1, labels=V1$Vowel) On my Debian linux system, the plot shows the Greek letters just fine in the screen device. However, I turned on a pdf device to run the same code and see...
2014 Oct 07
2
[LLVMdev] Can libc++ build for arm cross compiler?
...++.so > clang: warning: argument unused during compilation: '-nostdinc++' > [100%] Built target cxx > [100%] Built target cxx > Install the project... > -- Install configuration: "Release" > -- Installing: > /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/cxxabi.h > -- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/. > -- Installing: > /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./vector > -- Installing: > /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ratio > -- Installing: > /home/cs...
2008 Sep 05
1
binary order combinations
Dear all! I have a vector of names names<-("V1", "V2", "V3",....., "V15") I could create all possible combinations of these names (of all lengths) using R: combos<-lapply(1:15,function(x) {combn(names,x) }) I get a list with all possible combinations of elements of 'names' that looks like this (j...
2014 Oct 03
3
[LLVMdev] Can libc++ build for arm cross compiler?
On 10/3/14 10:16 AM, Dan Albert wrote: >> >> I try to build libc++ and libc++abi for host x86_64(linux) and target >> arm(linux) but fail. >> > > Failing in what way? If this isn't working out of the box, we've done > something wrong. Yeah, it would help to know more specifics about where you're getting stuck. > > jroelofs might know more... For
2008 Jul 30
1
model mix problem. FALSE CONVERGENCE
...lt;- titi[,-1] #Les facteurs #Cr?ation d'un r?pertoire o? enregistrer les r?sultats if (any(dir(getwd())==strsplit(pat,"/"))==F) { if (pat!="") { dir.create(file.path(getwd(),pat)) } } ##################################### ANOVA 2 voies v1 <- Facteurs[[CLASSE[1]]] v2 <- Facteurs[[CLASSE[2]]] if (is.null(v1) | is.null(v2)) { guiDlgMessage("Vous n'avez pas sp?cifier un facteur cat?goriel correct.\r\n\r\nAttention, il faut que le nom du facteur que vous entrez \r\ndans l'interface et celui du fichier...
2010 Jul 08
2
pass-by-reference
I'm working with a large object that I want to modify slightly in a function. Pass-by-reference would make a lot of sense, but I don't know how to do it. I've searched this archive and thought that I can do something like f <- function(x) { v1 <- list(a=x,b=3) g(x) v1 } g <- function(x) { frame <- parent.frame() assign("v1",list(a=x,b=x),frame) } f(4) returns list(a=4,b=4) but what if I wanted to make v1[[1]] = v1[[1]] + v1[[2]] without creating a copy of v1? f2 <- function(x) { v1 <- list(a=x,b=3)...
2006 Apr 21
3
Creat new column based on condition
Hi, How can I accomplish this task in R? V1 10 20 30 10 10 20 Create a new column V2 such that: If V1 = 10 then V2 = 4 If V1 = 20 then V2 = 6 V1 = 30 then V2 = 10 So the O/P looks like this V1 V2 10 4 20 6 30 10 10 4 10 4 20 6 Thanks in advance...
2012 Dec 01
5
How to built a pivot table of value
Hi R users Imagine the table "base": p=c("d","d","b","b","a","a") q=c("v1","v2","v1","v2","v1","v2") r=c(5,2,4,8,9,7) base=data.frame(p,q,r) base p q r 1 d v1 5 2 d v2 2 3 b v1 4 4 b v2 8 5 a v1 9 6 a v2 7 How programming R to get this result: v1 v2 a...
2013 Apr 15
3
Overlay two stat_ecdf() plots
I want to plot two scdf-plots in the same graph. I have two input tables with one column each: > Targets <- read.table("/media/....", sep="", header=T) > NonTargets <- read.table("/media/...", sep="", header=T) > head(Targets) V1 1 3.160514 2 6.701948 3 4.093844 4 1.992014 5 1.604751 6 2.076802 > head(NonTargets) V1 1 3.895934 2 1.990506 3 -1.746919 4 -3.451477 5 5.156554 6 1.195109 > Targets.m <- melt(Targets) > head(Targets.m) variable value 1 V1 3.160514 2 V1 6.701948 3 V...
2017 Sep 14
2
IVUsers pass is fragile. Is this okay? How can it be resolved?
...t sets of IV users if either: i) The order of the PHI nodes in the %loop block are reordered; or ii) The uselistorder directive is uncommented --- target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1" target triple = "x86_64-unknown-linux-gnu" define void @test(i64 %v1, i32 %v2, i64* %addr) { entry: br label %loop loop: %iv = phi i64 [%v1, %entry], [%iv.inc, %loop] %iv2 = phi i32 [%v2, %entry], [%5, %loop] %0 = trunc i64 %iv to i32 %1 = sub i32 %iv2, %0 %2 = sitofp i32 %1 to double %3 = sub i64 0, %iv %4 = trunc i64 %3 to i32 %5 = sub i32 %1, %4 %iv.in...
2010 Jun 08
2
Logical vector question
If I create a vector thusly > v1 <- runif(20, min=0, max=1) > v1 [1] 0.9754443 0.6306228 0.3238158 0.3175769 0.6791534 0.6956507 0.3840803 [8] 0.1421328 0.8592398 0.4388306 0.9472040 0.4727435 0.5645302 0.7391616 [15] 0.6116199 0.2727754 0.2657867 0.5261744 0.8764804 0.2032126 And I want to create a logical vector the sam...
2006 Oct 29
1
Unexpected behavior of predict and interval="confidence"
Based on some recent r-help discussions, I have been trying out plotting confidence intervals using predict and matplot. Matplot appeared to not be plotting the linear regression when using the default column names generated by read.table (V1, V2, etc). On further inspection, the error seemed to be with predict and vector names (V1, V2) rather than with matplot. I was using some textbook data sets that were read with read.table, so my data.frame columns were named by default. The problem seems to be related to the name of the...
2010 Feb 08
7
data frames; matching/merging
...one. But I'm convinced there must be a faster (and probably more elegant) way to accomplish what I'm looking to do (perhaps using the "merge" function?). I figured somebody out there might've already figured this out: I have a dataframe with two columns (let's call them V1 and V2). All rows are unique, although column V1 has several redundant entries. Ex: V1 V2 1 a 3 2 a 2 3 b 9 4 c 4 5 a 7 6 b 11 What I'd like is to return a dataframe cut down to have only unique entires in V1. V2 should...
2023 Mar 22
1
How to test the difference between paired correlations?
.... I have seen that there is another package that does that [https://search.r-project.org/CRAN/refmans/DescTools/html/FisherZ.html]. Yet, I do not understand how to process the data. Shall I pass the raw data or the correlations directly? I have made the following working example: ``` # define data v1 <- c(62.480, 59.492, 74.060, 88.519, 91.417, 53.907, 64.202, 62.426, 54.406, 88.117) v2 <- c(56.814, 42.005, 56.074, 65.990, 81.572, 53.855, 50.335, 63.537, 41.713, 78.265) v3 <- c(54.170, 64.224, 57.569, 85.089, 104.056, 48.713, 61.239, 60.290, 67.308...
2017 Sep 15
2
IVUsers pass is fragile. Is this okay? How can it be resolved?
...t sets of IV users if either: i) The order of the PHI nodes in the %loop block are reordered; or ii) The uselistorder directive is uncommented --- target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1" target triple = "x86_64-unknown-linux-gnu" define void @test(i64 %v1, i32 %v2, i64* %addr) { entry: br label %loop loop: %iv = phi i64 [%v1, %entry], [%iv.inc, %loop] %iv2 = phi i32 [%v2, %entry], [%5, %loop] %0 = trunc i64 %iv to i32 %1 = sub i32 %iv2, %0 %2 = sitofp i32 %1 to double %3 = sub i64 0, %iv %4 = trunc i64 %3 to i32 %5 = sub i32 %1, %4 %iv.in...
2012 Sep 26
5
create new column in a DF according to values from another column
Hi everyone, I have a small problem in my R-code. Imagine this DF for example: DF <- data.frame(number=c(1,4,7,3,11,16,14,17,20,19),data=c(1:10)) I would like to add a new column "Station" in this DF. This new column must be automatically filled with: "V1" or "V2" or "V3". The choice must be done on the numbers (1st column). For example, I would like to have "V1" in the column "Station" in the rows where the numbers of the 1st column are: 1,7,11,16 ; then I would like to have "V2" in the rows w...
2017 Sep 13
2
IVUsers pass is fragile. Is this okay? How can it be resolved?
...t sets of IV users if either: i) The order of the PHI nodes in the %loop block are reordered; or ii) The uselistorder directive is uncommented --- target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1" target triple = "x86_64-unknown-linux-gnu" define void @test(i64 %v1, i32 %v2, i64* %addr) { entry: br label %loop loop: %iv = phi i64 [%v1, %entry], [%iv.inc, %loop] %iv2 = phi i32 [%v2, %entry], [%5, %loop] %0 = trunc i64 %iv to i32 %1 = sub i32 %iv2, %0 %2 = sitofp i32 %1 to double %3 = sub i64 0, %iv %4 = trunc i64 %3 to i32 %5 = sub i32 %1, %4 %iv.in...
2017 Sep 16
0
IVUsers pass is fragile. Is this okay? How can it be resolved?
...ive is uncommented >>>>> >>>>> --- >>>>> target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1" >>>>> target triple = "x86_64-unknown-linux-gnu" >>>>> >>>>> define void @test(i64 %v1, i32 %v2, i64* %addr) { >>>>> entry: >>>>> br label %loop >>>>> >>>>> loop: >>>>> %iv = phi i64 [%v1, %entry], [%iv.inc, %loop] >>>>> %iv2 = phi i32 [%v2, %entry], [%5, %loop] >>>>> %0 = tru...
2023 Aug 10
2
Expresión en un objeto
Hola a todos: Se me ha planteado un problema que no está ligado a ningún problema concreto. Es más teórico. Supongamos que tenemos tres variables: V1 <- c (47, 71, 41, 23, 83, 152, 82, 8, 160, 18) V2a <- c (NA, 36, 15, 5, 56, 18, NA, 5, NA, 5) V2b <- c (37, NA, 15, NA, NA, NA, 90, NA, 161, NA) Supongamos que tengo la expresión (que no puedo asignarlo a ninguna variable): (ifelse (is.na (V2a) & ! is.na (V2...