Displaying 20 results from an estimated 1855 matches for "closest".
Did you mean:
closes
2009 Mar 22
4
Selecting closest values
Hi
I have a table with ID (1 to 183) and Location (144 to -22).
My problem is that I want to select the 10 ID's that are closest in Location
to ID 1, ID 2 and so on.
Also, some ID have the same Location. Say, if 11 ID's are closest to ID 100
I want to randomly choose one of the ID's to select 10 ID's total.
Thank you
--
View this message in context: http://www.nabble.com/Selecting-closest-values-tp22647126p...
2008 Jul 09
4
Find the closest value in a list or matrix
I have a long list of numbers [3.4,5.4,3.67,....], and I basically want to
find the index of the number closest to this number that I have, let's say
5.43. How would I do this without writing a for loop (I have to do this many
times for several lists)? Is there a "lookup" function in R?
Thanks!
--
View this message in context: http://www.nabble.com/Find-the-closest-value-in-a-list-or-matrix-...
2013 Jun 18
2
find closest value in a vector based on another vector values
Dear All,
would you please provide your thoughts on the following:
let us say I have:
a <-c(1,5,8,15,32,69)
b <-c(8.5,33)
and I would like to extract from "a" the two values that are closest to the values in "b", where the length of this vectors may change but b will allways be shorter than "a". So at the end based on this example I should have the result "f" as
f <-c(8,32)
appreciate the help,
Andras
2013 Apr 11
2
Encircle the closest points
...L, 1761L, 1872L, 174L, 2040L, 552L, 1403L, 6381L, 1649L, 4136L, 4415L, 10650L, 12111L, 4397L, 9593L, 7040L, 3888L, 8340L, 11475L, 11413L, 3985L, 1077L, 7723L, 1392L, 4099L, 4386L, 4737L, 1731L, 9246L, 7729L, 4264L, 6880L), .Dim = c(25L, 2L))
How can i encircle (locate), on the plotting window, the closest 3 point around any selected point. More precisely, for x=2372 and y=6381, which are the 3 closest points?
Thanks in advance..
Elisa
[[alternative HTML version deleted]]
2012 Mar 01
5
select rows by criteria
...k the
problem is rather how to select them
then how to implement the R code.
Consider the following data frame:
df <- data.frame(ID = c(1,2,3,4,5,6,7,8,9,10), value =
c(34,12,23,25,34,42,48,29,30,27))
What I want to achieve is to select 7 rows (values) so that the mean value
of those rows are closest
to the value of 35 and the remaining 3 rows (values) are closest to 45.
However, each value is only
allowed to be sampled once!
Any ideas, how to achieve that?
Cheers
--
View this message in context: http://r.789695.n4.nabble.com/select-rows-by-criteria-tp4434812p4434812.html
Sent from the...
2004 Feb 13
3
Re: Re: Find Closest 5 Cases?
...r cases and then take an average of those to infill.
I realize there are many methods for imputing data. I'm not well versed on any in particular (expect regression and cluster analysis). That said, given that I have an extensive data set already with most variables populated, I can find the closest observations in N-dimentional space and impute the value that way - by focusing on the best matches.
If there are any other thoughts on how to do this (relatively easily), I'm open to suggestions and being educated.
Thanks,
Danny
> From: Art Kendall <Art at DrKendall.org>
> Date...
2010 Oct 20
1
rounding up (always)
Hello!
I am trying to round the number always up - i.e., whatever the
positive number is, I would like it to round it to the closest 10 that
is higher than this number, the closest 100 that is higher than this
number, etc.
For example:
x<-3241.388
signif(x,1) rounds to the closest thousand, i.e., to 3,000, but I'd
like to get 4,000 instead.
signif(x,2) rounds to the closest hundred, i.e., to 3,200, but I'd
like to g...
2009 Dec 02
4
Finding cases in one subset that are closet to another subset
Good afternoon
Running R2.10.0 on Windows
I have a data frame that includes (among much else) a factor (In_2006) and a continuous variable (math_3_4). I would like to find the 2 cases for In_2006 = 0 that are closest to each case where In_2006 = 1.
My data looks like
In_2006 math_3_4
0 55.1
1 51.6
1 18.1
1 26.6
1 14.1
1 9.6
1 48.9
1 12.9
0 63.0
0 51.8
etc. for several hundre...
2002 Mar 28
3
Vectorizing closest match
...ppreciate some help. I want to avoid outer() to limit memory problems for very large n.
Let
x = real vector of length n
y = real vector of length n
w = real vector of length m, m typically less than n/2 but can be > n
z = real vector of length m
For w[i], i=1,,,m, find the value of x that is closest to w[i]. In the case of ties, select one (optimally at random or just take the first match). Let z[i] = value of y corresponding to the closest x.
If there is a Fortran or C function (builtin or otherwise) that does much of the work, all the better.
Thanks,
Frank
--
Frank E Harrell Jr...
2002 Mar 28
0
Summary: Vectorizing closest match
The original problem I posed was
Let
x = real vector of length n
y = real vector of length n
w = real vector of length m, m typically less than n/2 but can be > n
z = real vector of length m
For w[i], i=1,,,m, find the value of x that is closest to w[i]. In the
case of ties, select one (optimally at random or just take the first
match). Let z[i] = value of y corresponding to the closest x.
I received several helpful replies. Peter Dalgaard suggested the use of approx. approx always amazes me. To return the index of the closest matc...
2017 Jun 04
3
CentOS 7 install: closest mirror not supported?
Hi,
Do CentOS 7 installs not automatically use a closest mirror for
installing like Fedora does, or is that due to the way I'm starting
the install (virt-install)?
Background:
I'm trying to find the best way to do installs using basic local media
(network install, but *without* the need to download the squashfs.img
for every install) but withou...
2010 Jan 17
3
enty-wise closest element
Dear R-users,
i have a simple problem maybe, but i don't see the solution. i want to
find the entry-wise closest element of an vector compared with another.
ind1<-c(1,4,10)
ind2<-c(3,5,11)
for (i in length(ind2):1)
{
print(which.min(abs(ind1-ind2[i])))
}
for ind2[3] it should be ind1[3] 10, for ind2[2] it should be ind1[2] 4
and for ind2[1] it should be ind1[1] 1. but with the for-loop above i
ge...
2008 Aug 26
2
String search: Return "closest" match
Hi,
I have to match names where names can be recorded with errors or additions.
Now I am searching for a string search function which returns always the "closest" match. E.g. searching for "Washington" it should return only Washington but not Washington, D.C. But it also could be that the list contains only "Hamburg" but the record I am searching for is "Hamburg OTM" and then we still want to find "Hamburg". Or...
2008 Aug 27
3
Closest value
Hello,
I have this command:
x.axis <- seq(from=0.5, to=4.5, length.out=13112)
How can I which of the x.axis components is the closest to a given
value, for example 3.2?
Best,
Dani
--
Daniel Valverde Saub?
Grup de Biologia Molecular de Llevats
Facultat de Veterin?ria de la Universitat Aut?noma de Barcelona
Edifici V, Campus UAB
08193 Cerdanyola del Vall?s- SPAIN
Centro de Investigaci?n Biom?dica en Red
en Bioingenier?a, Biom...
2006 Aug 12
9
Finding the closest match?
I am trying to do a search for a crazy problem. Anyways, the search can
only contain one word and the database it''s searching contains one word
per row. Basically if someone tries to search for a word I want to find
the closest match.
Ex:
If someone types "cat" and "cat" is not in my database, but "bat" is,
how could I select bat?
Also, if someone types "cat" and I dont have anything remotely close to
that then I want to return nothing.
Lastly, these are not all english words...
2010 May 01
2
closest match in R to c-like struct?
Hello,
What would be in R the closest match to a c-struct? e.g. data.frame requires all elements to be of the same length ... or is there a way to circumvent this?
TIA,
Best regards,
Giovanni
2008 Apr 18
3
Closest Fedora to CentOS 4?
Hi, I want to take a SRPM that is available for various versions of Fedora
and rebuild it on a CentOS 4 system.
Which release of Fedora is the closest to CentOS 4? In other words, which
would be the best FC to take the SRPM for?
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
2007 Jan 06
2
can samba figure out the "closest" domain controller in ADS mode?
...s I want
Samba to be more fault tolerant than pointing it at one DC - when there
are many to choose from. It looks like Samba is just doing a DNS lookup
on the realm name and binding to the top DC in the list?
Active Directory does allow you to define sites and Windows boxes figure
out where their closest DC is from that information - but it looks like
Samba can not? Is that correct, or is there something else I can do?
Resolving usernames/groups is pretty dire due to this - a Samba server
in Sweden is currently using a DC in Beijing for example.
This is Samba-3.0.23d under CentOS4.4
--
Cheers...
2017 Jun 05
0
CentOS 7 install: closest mirror not supported?
On 06/04/2017 10:29 AM, Jos Vos wrote:
> Hi,
>
> Do CentOS 7 installs not automatically use a closest mirror for
> installing like Fedora does, or is that due to the way I'm starting
> the install (virt-install)?
>
> Background:
>
> I'm trying to find the best way to do installs using basic local media
> (network install, but *without* the need to download the squashf...
2004 Feb 13
3
Calculate Closest 5 Cases?
I've only begun investigating R as a substitute for SPSS.
I have a need to identify for each CASE the closest (or most similar) 5
other CASES (not including itself as it is automatically the closest). I
have a fairly large matrix (50000 cases by 50 vars). In SPSS, I can use Correlate > Distances to generate a matrix of similarity, but only on a small sample. The entire matrix can not be processed a...