Displaying 3 results from an estimated 3 matches for "spartina".
Did you mean:
spartica
2011 Sep 25
4
Trouble creating and adjacency matrix
Hello all,
I'm having trouble creating an adjacency matrix.
Basically, I need to turn the following distance matrix into an adjacency
matrix based on whether values are >1.5 or not. If they are >1.5, then the
returned value should be 0. If they are =<1.5, then the returned value
should be 1.
DistanceMatrix:
A B C D E
[1,]
2011 Sep 26
3
Nearest neighbour in a matrix
Hello all,
I am brand new to R and doing an exercise for a class. I need to find the
nearest neighbour for points in the following matrix:
> DistanceMatrix
x1 x2 x3 x4 x5
[1,] 0.000000 2.828427 1.581139 2.236068 2.000000
[2,] 2.828427 0.000000 1.581139 4.123106 2.000000
[3,] 1.581139 1.581139 0.000000 2.549510 2.121320
[4,] 2.236068 4.123106 2.549510
2011 Oct 10
1
Importing from Fortan
Hello all,
how do I import a Fortran file (f3.1) into one column in R? I've tried this
(I'm a total beginner as you can see):
> FortranData<-read.fwf("C:\\Users\\format3_1.txt",rep(3,20))
Warning message:
In readLines(file, n = thisblock) :
incomplete final line found on 'C:\Users\format3_1.txt'
> FortranData
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12