search for: point2

Displaying 8 results from an estimated 8 matches for "point2".

Did you mean: point
2012 Oct 04
1
Ops.factor(point1, point2) : - not meaningful for factors
...) 5 5 (10, 17) 6 6 (35, 20) 7 7 (38, 10) > str (DSi) 'data.frame': 7 obs. of 2 variables: $ i : int 1 2 3 4 5 6 7 $ Si: Factor w/ 7 levels "(10, 17)","(20, 2)",..: 6 2 3 7 1 4 5 > > x <- c(15, 45) > y <- DSi [,2] > dist <- function (point1, point2) + { + diff <- point1-point2 + distance <- sqrt(sum(diff^2)) + distance + } > dist (x, y) [1] NA Warning message: In Ops.factor(point1, point2) : - not meaningful for factors > Regards, Nadiah -- View this message in context: http://r.789695.n4.nabble.com/Ops-factor-point1-point2-n...
2008 Nov 10
2
how to convert indvidual pairwise distances to matrix
Hello, I am trying to convert list of pairwise distances to a distance matrix for spatial analysis (kriging). For instance, I have something like this for each pair pf points, and I want to convert it to a matrix: point1 point2 distance 1 1 0 1 2 4 2 2 0 2 1 4 Please let me know if there is a function or method that can do this. Thanks, Christy [[alternative HTML version deleted]]
2008 Jun 09
1
Plot Coloured Triangle
Hi there, I'd like to plot a triangle with each point having a certain color defined and fill it with the interpolated values. The following code shall represent somehow, three points with x,y, and the "amount" of red for example... point1 <- c(1.1, 1.7, 255) point2 <- c(2.2, 1.5, 180) point3 <- c(1.8, 2.2, 60) can anybody give me a hint which methods to use to realize it? Antje
2011 Apr 11
3
Geographic distance between lat-long points in R?
Dear R, I have a bunch of geographic locations specified by lat-long coordinates. What's an easy way to calculate geographic distance between any two points? OR, perhaps there is a function for calculating a distance matrix for K sites? Sincerely, Scott Chamberlain [[alternative HTML version deleted]]
2005 Jul 01
5
Generating correlated data from uniform distribution
Dear R users, I want to generate two random variables (X1, X2) from uniform distribution (-0.5, 0.5) with a specified correlation coefficient r. Does anyone know how to do it in R? Many thanks! Menghui
2000 Jun 15
0
__MSBROWSE__ inconsistency
...but thought it was not the master browser. Details: 1) samba started and became master browser (6/13/2000 0.00) 2) then there was a problem on the network (I played with ipchains...) 3) samba received an announce from a win9x pc claiming it was MB (6/13/2000 circa 8.00AM) Due to the problems of point2, the election that samba usually wins (because it's configured to do so) was "corrupted" Samba thought it lost, but failed to release __MSBROWSE__ [2000/06/13 08:13:38, 0] nmbd/nmbd_namerelease.c:release_name(231) release_name: Failed to send packet trying to release name WORKGRO...
2001 Aug 08
1
Strategy for creating a palette...?
Dear all, I'm generally not a big fan of GUIs, but I have just discovered one thing where a GUI would be a nice thing: creating color palettes. I'm creating an "image", for transparencies for a lecture I'm giving, so this is going to look great... :-) What I'm out for, is to make green tones and red tones, and a relatively sharp break between them. This break will
2006 Jan 09
2
catch id from form and copy between objects
Hi all, Not completely sure what I''m doing, but I need to get data from another table based on and id. Below is some breakpointer output: irb> @params => {"project"=>{"project_description"=>"point2", "project_name"=>"break2"}, "action"=>"create_project", "id"=>{"collect"=>"6"}, "controller"=>"adm/project"} The one I want is the ''6'' in "id"=>{"col...