similar to: Matrix indexing in a loop

Displaying 20 results from an estimated 6000 matches similar to: "Matrix indexing in a loop"

2000 Mar 29
2
regularly lattice & neighbors
Dear R-users, Is there a procedure to identify neighbors in a regular lattice using either a "rook" or a "queen" criterium? To be more specific, suppose: My lattice: 1 2 3 4 5 6 7 8 9 "Rook" Neighbors 1 has neighbors 2,4 2 has neighbors 1,3,5 ... 5 has neighbors 2,4,6,8 "Queen Neighbors" 1 has neighbors 2,4,5 2 has neighbors 1,3,4,5,6 For each case,
2012 Jul 24
3
Nearest Neighbors
I was wondering if there is a way in R to find k nearest neighbors of various orders, say order 2, 3, or 4. In otherwords neighbors of neighbors of neighbors. You get the idea. I know that I can use knearneigh(matrix.data, k) but this only gives me the k nearest neighbors and not of a particular order. Thanks in advance. -- View this message in context:
2011 Oct 20
2
Aggregating data help
Hello, I have a dataset with student performance on a math test. There are multiple cases for each student (identified by id) and the concept as a variable. > rtest id test subject grade concept correct tested per_corr year 1 1 83 Mathema 8 8.2.D 1 1 100 2011 2 1 83 Mathema 8 8.3.A 1 2
2004 Feb 02
2
Nearest Neighbor Algorithm in R -- again.
Several of the methods I use for analyzing large data sets, such as WinGamma: determining the level of noise in data Relief-F: estimating the influence of variables depend on finding the k nearest neighbors of a point in a data frame or matrix efficiently. (For large data sets it is not feasible to compute the 'dist' matrix anyway.) Seeing the proposed solution to "[R] distance
2012 Oct 24
2
concurrent requests (Rook, but I think the question is more general)
This question involves Rook, but I think the answer will be general enough that it pays to post here. At any rate, I don't know enough to know whether this is a Rook only issue or a general R issue. Here's what I'd like to do (and indeed, have code that should do this): 1. Start R, Rook 2. Start an analysis via a HTTP request to Rook. This analysis uses .Call() to some compiled C
2012 Nov 01
3
Start R from bash/bat file and end in interactive mode
I have a r-script (rook.R) that starts a Rook server. To present users from having to start R and type in source("rook.R"), I want to create a bash script and bat file that starts R and sources the script. However, to keep the Rook server running R should not close after running the script and stay in interactive mode. This proves more difficult than expected. I tried various
2005 Oct 21
2
Finding the neighbors of the point
Dear all, I got point data of trees. I was wondering if anybody has experience in searching the neighbors within a specified distance efficiently. X Y Z 99 34 65 98 35 29 98 34 28 99 33 33 98 32 23 99 33 21 99 33 22 99 32 24 99 30 23 ... What I want to do is : searching for the neighbors with a distance R for each tree & the neighbor must have a bigger Z.
2006 Nov 14
2
sshd behaviour when people are trying to break in
Hi, When people try and break into my system from the internet I get lots of messages like: Nov 14 19:08:13 rook sshd[6333]: Failed password for invalid user guest from 210.83.48.238 port 40811 ssh2 Nov 14 19:08:19 rook sshd[6338]: Invalid user admin from 210.83.48.238 Nov 14 19:08:19 rook sshd[6338]: Failed password for invalid user admin from 210.83.48.238 port 40920 ssh2 Nov 14 19:08:24 rook
2012 Nov 21
1
paths and Rook problems only in OSX CRAN binary package?
Hi everyone, I'm trying to diagnose a problem in my R package, but it is a little tricky since it seems to occur only with the Mac OSX CRAN binary build. My package starts a Rook server and opens a browser. On my own system (details below), when I build the package, I have no trouble. The Rook server starts and the page loads in the browser. However, if I've installed it from CRAN, I
2012 Jan 11
1
Rook: software and specification for R web applications and servers
Dear ?useRs, Rook version 1.0-3 has been submitted to CRAN. In the mean time you can get it here: https://github.com/jeffreyhorner/rRack/blob/master/Rook_1.0-3.tar.gz The latest release contains support for deployment with rApache. Please see 3.6.5 and 3.6.6 under section 'Configuring rApache' in the manual: http://www.rapache.net/manual.html#Configuring_rapache What is Rook? A
2012 Jan 11
1
Rook: software and specification for R web applications and servers
Dear ?useRs, Rook version 1.0-3 has been submitted to CRAN. In the mean time you can get it here: https://github.com/jeffreyhorner/rRack/blob/master/Rook_1.0-3.tar.gz The latest release contains support for deployment with rApache. Please see 3.6.5 and 3.6.6 under section 'Configuring rApache' in the manual: http://www.rapache.net/manual.html#Configuring_rapache What is Rook? A
2003 Jul 30
3
nested for() loops for returning a nearest point
I'm trying to do the following: For each ordered pair of a data frame (D1) containing longitudes and latitudes and unique point IDs, calculate the distance to every point in another data frame (D2) also containing longitudes, latitudes and point IDs, and return to a new variable in D1 the point ID of the nearest element of D2. Dramatis personae (mostly self-explanatory): D1$long
2012 Sep 18
1
creating graphs using Rook
hi, I m said to display graph in browser using Rook. So i found a code i.e library(Rook) # for web functionality library(ggplot2) # for graphing library(tseries) # used to grab time series from yahoo for stock symbols library(plyr) # data tweaks PIC.DIR = paste(getwd(), 'pic', sep='/') # define the web page form newapp = function(env) { req =
2015 May 13
8
[LLVMdev] RFC: Convergent attribute
Below is a proposal for a new "convergent" intrinsic attribute and MachineInstr property, needed for correctly modeling many SPMD/SIMT programming models in LLVM. Comments and feedback welcome. —Owen In order to make LLVM more suitable for programming models variously called SPMD and SIMT, we would like to propose a new intrinsic and MachineInstr annotation called
2013 Jan 09
5
R encrypt/decrypt
Hello, I am working on a web system (php) that uses R in the backend, and we need some basic fast encryption/decryption for the underlying mysql database that can be used by both R AND php. It does not need to be top-of-the-line, but just provide some basic level of fast encryption/decryption. Any suggestions? Thank you, Ramiro [[alternative HTML version deleted]]
2013 Dec 09
5
Btrfs questions
i am looking at using btrfs for a new project and i have a few questions:     * i have heard that as it currently stands Btrfs has some issues to be used as a Lustre file system; is he aware of the issues and any plans to address these and integrate Btrfs in to Lustre     * any plans to support native clustering on Btrfs     * on ZFS the ZIL is a separate device, any plans to implement a the
2009 Oct 10
2
symbol Lookup Error
Hi, I've just installed Fedora 11 and samba (including common, client, server, config-system0samba). I am unable to start smbd with the following error. *[2009/10/09 22:16:45, 0] smbd/server.c:1065(main) smbd version 3.4.2-0.42.fc11 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 smbd: symbol lookup error: smbd: undefined symbol: _talloc_get_type_abort* What would
2004 Sep 16
1
ERROR[16384]: chan_h323.c:1987 load_module: Gatekeeper registration failed
I'm trying to configure Chan_H323 to register with GnuGK... without success... i've failed finding sample configurations. I'd greatly appreciate anyone who can provide sample config of H323.conf and gnugk.ini I am tyring to configure Asterisk as a neighbor in GnuGK. I'm always getting this error on Asterisk. ERROR[16384]: chan_h323.c:1987 load_module: Gatekeeper registration
2012 Jan 27
1
.C returned array has odd results
Hi, I'm sure this is a fairly simple problem, but I can't seem to find any specific information in the documentation as to what is going on. I am writing a simple nearest neighbor program that takes in a set of of points on a plane and returns the neighbors of those points, for a fixed number of neighbors. However, the returned integer array that is allocated in R seems to occasionally
2008 Sep 19
3
How to do knn regression?
Hello, I want to do regression or missing value imputation by knn. I searched r-help mailing list. This question was asked in 2005. ksmooth and loess were recommended. But my case is different. I have many predictors (p>20) and I really want try knn with a given k. ksmooth and loess use band width to define neighborhood size. This contrasts to knn's variable band width via fixing a