search for: ffenics2002

Displaying 7 results from an estimated 7 matches for "ffenics2002".

2006 Aug 05
1
formating for dist function
Hi there I have a list that looks like this object1 object1 78 object1 object2 45 object1 object3 34 object1 object4 45 object2 object2 89 object2 object3 32 object2 object4 13 but i want to create a matrix like this in order to use the dist function of R object1 object2 object3 object4 object1 78 45 34 45 object2 45
2006 Sep 08
1
Connecting to R using Perl?
Hi there Can anyone tell me please if I can access R though a perl script? And whether there are some internet resources/books I can use to help me? Thanks [[alternative HTML version deleted]]
2006 Sep 01
2
repeating the same procedure with a number of files within a directory
Hi there I am very new to R so dont know much about the programming side of thing yet. I've worked out how to input a data matrix, create distance matrices and print them to an external file but only for one data matrix at a time. I actually have a batch of data matrices for which I want to create distance matrices for each in turn and then print these distance matrices to their respective
2006 Aug 07
5
kmeans and incom,plete distance matrix concern
Hi there I have been using R to perform kmeans on a dataset. The data is fed in using read.table and then a matrix (x) is created i.e: [ mat <- matrix(0, nlevels(DF$V1), nlevels(DF$V2), dimnames = list(levels(DF$V1), levels(DF$V2))) mat[cbind(DF$V1, DF$V2)] <- DF$V3 This matrix is then taken and a distance matrix (y) created using dist() before performing the kmeans clustering. My query
2006 Sep 04
3
opening files in directory
Hi there I want to be able to take all the files in a given directory, read them in one at a time, calculate a distance matrix for them (the files are data matrices) and then print them out to separate files. This is the code I thought I would be able to use (all files are in directory data_files) for(i in 1:length(files)) + { + x<-read.table("data_files/files[[i]]") +
2006 Aug 05
2
Kmeans - how to display results
Hi there I'm very new as regards to R. I have managed to work out how to use dist and kmeans but am now wondering how best to display the results from kmeans in a graphical form. If anyone has any general advice/tips, I would be most grateful. Thanks [[alternative HTML version deleted]]
2006 Aug 16
1
advice on exporting a distance matrix in the correct format needed please
Hi there Could anyone please tell me how to export a distance matrix to a .csv file please? when I tried write(matrix) I got the values but not in the format of a distance matrix - just a list of numbers in 4 columns - and when I try write.table(matrix, file="distance.csv") I get the following Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class