search for: top_fiv

Displaying 2 results from an estimated 2 matches for "top_fiv".

Did you mean: top_five
2006 Nov 30
3
newbie: new_data_frame <- selected set of rows
...essary R package distances <- order(distancevector(scaled_DB, scaled_DB['query',], d="euclid")) #calculates distances and orders the results from lowest for(i in distances[1:5]) print( dbfile[i,]) #prints top five hits just for debugging What I want to do: 1) create a small top_five frame sadly this does not work: for(i in distances[1:5]) top_five[i,] <- my_dataframe[i,] 2) after I got top_five I woul like to get the index of my query entry, something along Pythons top_five.index('query_string') 3) possibly combine values in distances with row names from my_data...
2006 Nov 30
0
new_data_frame <- selected set of rows
...essary R package distances <- order(distancevector(scaled_DB, scaled_DB['query',], d="euclid")) #calculates distances and orders the results from lowest for(i in distances[1:5]) print( dbfile[i,]) #prints top five hits just for debugging What I want to do: 1) create a small top_five frame sadly this does not work: for(i in distances[1:5]) top_five[i,] <- my_dataframe[i,] 2) after I got top_five I woul like to get the index of my query entry, something along Pythons top_five.index('query_string') 3) possibly combine values in distances with row names from my_data...