similar to: Unique Pairs based on a Minimum Value

Displaying 20 results from an estimated 20000 matches similar to: "Unique Pairs based on a Minimum Value"

2013 Jan 03
2
Sas by function in R
Hello, It's an alternative to use SAS by function in R? I want to plot d histograms by plot.from example bellow: Thank you! plot d 1 1 16.3 2 1 25.0 3 1 57.8 4 1 17.0 5 2 10.8 13 2 96.4 17 3 76.0 18 3 32.0 19 3 11.0 20 3 11.0 24 3 106.0 25 3 12.5 21 4 19.3 22 4 12.0 26 4 15.0 27 5 99.3 32 7 11.0 36
2013 Nov 26
7
[PATCH RESEND 0/1] libxl: introduce an option for disabling the non-O_DIRECT
I think I posted this patch before, but it looks like it was in December 2012 (!). 1/1 libxl: introduce an option for disabling the non-O_DIRECT workaround Ideally it would go into 4.4, at least. Provided the corresponding qemu part has gone into qemu-xen, which I think it has. Can anyone confirm ?
2009 Apr 14
4
cbind
I have a list of numbers with NAs as below: > A[,1] [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [19] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [37] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [55] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [73] NA NA NA 62 78 98
2004 May 12
4
non-interactive call to R (running an R package as a stand-alone application)
Is there a way I can have R automatically execute the commands in a source file without ever having to use R interactively? If so, what arguments should I pass to the UNIX call to R? I need to do this to run several R jobs in parallel. An alternative may be to have R and an R package behave as a stand-alone application that can be called from the UNIX command line. Is there any documentation on
2011 Mar 05
2
Repeating the same calculation across multiple pairs of variables
Hi all, I frequently encounter datasets that require me to repeat the same calculation across many variables. For example, given a dataset with total employment variables and manufacturing employment variables for the years 1990-2010, I might have to calculate manufacturing's share of total employment in each year. I find it cumbersome to have to manually define a share for each year and
2012 Oct 18
2
How to import data from text file using scan() Function?
Hi.... I have one text file which containing 4 variables with 10 observations. I would like to import with scan() function. Please give some suggestion............ Thanks... Mydata set is. id name sex age 111 HELEN f 22 112 DONNA f 22 113 ERIC m 21 114 LINDA f 23 115 AXEL m 27 116 Madhuri f 32 117 Tarun m 39 118 Aashirya f 23 119 Nachik m 24 120 Leena f 32 -- View this message in context:
2012 Nov 30
2
missed values
Hello I have dataframe 101 2008-07 0.2898966 102 2008-08 0.3101667 103 2008-09 0.3730476 104 2008-10 0.2717037 105 2008-11 0.1344286 106 2008-12 0.1375000 107 2009-01 0.1781000 108 2009-02 0.2146667 109 2009-03 0.2808235 110 2009-04 0.4326250 111 2009-05 0.3420741 112 2009-06 0.2675238 113 2009-07 0.2478667 114 2009-08 0.3147000 115 2009-09 0.3437826 116 2009-10 0.2057391 117 2009-11 0.1824737 118
2012 Jun 30
3
How to adjust the start of a series to zero? (i.e. subtract the first value from the sequence)
Hello, I'd have a time series, where I am plotting the means and sd of a distance for a variety of positions along a bird's bill. I'd like to set each line (represented by "point") to start at zero, so that I can look at the absolute change along the series. At the moment I only know how to do that in Excel, by subtracting the value of time 1, point 1 from all other times
2010 Aug 17
2
Matrix
How do I completely remove the first column? (x <- matrix(c(1, 44, 124, 80, 254, 70, 190, 0, 2, 35, 110, 70, 240, 73, 216, 0, 3, 41, 114, 80, 279, 68, 178, 0, 4, 31, 100, 80, 284, 68, 149, 0, 5, 61, 190, 110, 315, 68, 182, 1, 6, 61, 130, 88, 250, 70, 185, 0, 7, 44, 130, 94, 298, 68, 161, 0, 8, 58, 110, 74, 384, 67, 175, 0, 9, 52, 120, 80, 310, 66, 144, 0, 10, 52, 120, 80, 337, 67, 130, 0, 11,
2009 Oct 20
2
descriptive statistics qn
This is day one on R for me, I am trying to figure out how to do simple computations. For example I have a data set with 200 observations. I am trying to compute the mean and variance in r for 1:25 (first 25 observations); 1:50 (first 50 obs) ; 1:100th observation etc. Here is the dataset: Id value 1 2.2338 2 3.13597 3 1.98685 4 4.35593 5 2.43963 6 4.20262 7 3.12131 8 4.79583 9 3.13937 10
2004 Apr 14
2
Weird Error
R-Users, I hope this is not a uniformed question, but I am a little lost. I ran into a problem this morning and I was wondering if anyone had seen it before. I was trying to summarize each column of a data set (150,000 rows, ~50mb, so it was a relatively big file) imported from a text file using the below code; data.summary <- read.csv("c:/summary.txt", sep="")
2017 Mar 23
2
ayuda
Etimados Necesito llevar estos valores a un csv, pero exclyendo los numeros de orden que aparecen (como ejemplo 1 2 3 4 5 6 7... 146 147 148 149 ) ?cual es el procedimiento en R? saludos José adjunto el archivo 1 2 3 4 5 6 7 8 9 10 398.25016 314.53157
2006 Mar 08
2
Survival Plots by Strata
All, I am struggling to create a survival plot using LTRC data for each year of a 10 year period. I have a set of individuals (birds) where 'entry' is the day of the year (1-365) they are released (let out of pens) into the wild (2 year data snip below). 'Entry' (e.g., day of year the first bird is released for each year) is highly variable, ranging from 48 to >250. When I
2009 Jan 24
1
Environment change?
So i have a simple question that doesnt require sample code, not sure if that violates posting rules or not. Is this: [1] "111" "112" "113" "114" "115" "116" "118" "119" "120" "123" "125" "126" [13] "127" "128" "132" "137"
2013 Feb 27
2
matrix multiplication
Hi, Try this: #mat1 is the data res<-do.call(cbind,lapply(seq_len(nrow(mat1)),function(i) {new1<-do.call(rbind,lapply(seq_len(nrow(mat1[-i,])),function(j) {x1<-rbind(mat1[i,],mat1[j,]); x2<-(abs(x1[1,1]-x1[2,1])*abs(x1[1,5]-x1[2,5]))+(abs(x1[1,2]-x1[2,2])*abs(x1[1,6]-x1[2,6]))+(abs(x1[1,3]-x1[2,3])*abs(x1[1,7]-x1[2,7]))+(abs(x1[1,4]-x1[2,4])*abs(x1[1,8]-x1[2,8]))}));new1}))
2007 Mar 28
5
Large matrix into a vector
Hi, I have a matrix HR(9x27). I would like to make a single vector with elements: t(HR[,1]) followed by t(HR[,2]) and then t(HR[,3] ... etc. Is there any neat way of converting this matrix into a vector rather doing something like c(t(HR[,1]), t(HR[,2]), t(HR[,3]) ..)? Thanks in Advance. Kind regards, Ezhil ____________________________________________________________________________________
2012 Mar 26
4
reading header in txt file and making histogram
Dear all I am a BEGINNER and have R on my Mac. I saved my excel file as .txt file, I have just one column with first row as the column name. My file when read by R looks like this. After reading the table I try to make a histogram by hist(dbh), it says object dbh not found. What am I doing wrong? thanks dbh 1 11.53 2 16.05 3 7.36 4 16.05 5 8.66 6 12.74 7 22.93 8 7.55 9
2008 Mar 03
1
Tapply for Group Specific Means and Proportions
UseRs, I am working on a dataset (see small example below) where individuals were followed on a specific date-time combo and multiple repeated measurements were taken (e.g., height in meters, behavior class in 2 letter code). Observation numbers varied between individual (ranging from 1 observation for each date-time combo to >50) I am trying to summarize the data into 1 row per
2010 Jul 29
1
R Equivalent of SAS Datastep Line-Hold (@@) Specifier?
Hello Everyone,   Below is some SAS code that uses a "line hold specifier" to read multiple observations from each of several input lines of data. There are 3 patients per line in the in-stream data.   Is there a way in R to read this kind of data? I've looked in my books and online but haven't found anything   Thanks,   Paul     DATA EXAMP.TRIAL; INPUT TRT $ CENTER PAT SEX $ AGE
2009 Dec 26
2
input a list into a function
  I want to input a list into a function. But i get the error "Error in +{ : invalid argument to unary operator". How do I avoid this error?   Here is an example of this problem:   > g = c(2, 4, 8, 16, 32, 64, 128, 122, 110, 86, 38, 76, 18, 36, 72, 10, 20, 40, 80, 26) > for (i in 1:20)  + {for (x in 0:20)  + print(g[i]+x)} [1] 2 [1] 3 [1] 4 [1] 5 [1] 6 [1] 7 [1] 8 [1] 9 [1] 10