Re: [R] Replacing values in dataframes

2009-09-21 Thread Monna Nygård
showed us the > first three rows of NAD and first three columns > of Prot.amount in order to keep the email simple. > > One final note ... if Prot.amount is an object > within R, it is *not* a file. You may have read > it in from a file, of course, but it isn't a fi

[R] Replacing values in dataframes

2009-09-19 Thread Monna Nygård
Hi, This is a question of a newbie getting into the exciting world of R. I have several dataframes in the same format as NAD: > NAD[1:3,1:3] Sample.Id Main.abs..1 Main.abs..2 148 10a 0.04836 0.04994 167 11a_1109 0.32245 0.36541 173 11b_1109 0.29293

[R] colouring a tree

2008-08-08 Thread Monna Nygård
Hi all.I would be very pleased if someone could help me,as I do not seem to get the different branches of my tree painted in different colours. The closest I get is colouring the names of my samples(=names of the branches). Here is the code.data <- read.table(file = "S://SEDIM//TRFLP//B12.5_

[R] colouring a tree

2008-08-07 Thread Monna Nygård
Hi all. I would be very pleased if someone could help me, as I do not seem to get the different branches of my tree painted in different colours. The closest I get is colouring the names of my samples(=names of the branches). Here is the code. data <- read.table(file = "S://SEDIM//TRFLP//

[R] PCA analysis

2008-06-17 Thread Monna Nygård
Hi, I have a problem with making PCA plots that are readable. I would like to set different sympols instead of the numbers of my samples or their names, that I get plotted (xlabs). How is this possible? With points, i don´t seem to get the right data plotted onto the PCA plot, as I do not qu

[R] i-best, grep function

2008-05-07 Thread Monna Nygård
Hi, I'm trying to use the i-best software. Does anyone have experience from this, I can't get it to work with my data. Here is the code: T1 <- read.delim(file="S://SEDIM//Yvonne//2_5//T1.txt",col.names= c("Dye/Sample_Peak", "Sample_File_Name", "Size", "Height", "Area_in_Point", "Area_in_BP"

[R] removing rows from matrix

2008-05-02 Thread Monna Nygård
Hi, I have a problem regarding matrix handeling. I am working with a serie of matrixes containing several columns. Now I would like to delete those rows of the matrixes,that in one of the columns contain values less than 50 or greater than 1000. How would this be possible, I have tried to crea

[R] missing values in document

2008-04-30 Thread Monna Nygård
, > "Width_in_Point", "Width_in_BP", "1" ), header=F , dec = ",", )Error in > scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line > 1743 did not have 14 elements I believe the error occurs