Re: [R] How to save R file into specific type

2010-10-25 Thread Sarah Goslee
between .R and .RData? By the way, after I save my work as .RData, I cannot reopen it. when I open it, only one message comes out as following: ARGUMENT_ignored_. -- -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org

Re: [R] avoid a loop

2010-11-04 Thread Sarah Goslee
description here.  The way I have solved it is to do a double loop, looping over every member of the id column and comparing it to every other member of id to see how many elements of b they share.  This takes forever. Thanks cn -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] tukey.1

2010-11-09 Thread Sarah Goslee
89 15     5         C 80 16     1         D 94 17     2         D 79 18     3         D 85 19     4         D 84 20     5         D 88 -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Fuzzy merge using timestamps

2010-11-10 Thread Sarah Goslee
be really useful. Without knowing what you're doing, I can't offer suggestions. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Fuzzy merge using timestamps

2010-11-10 Thread Sarah Goslee
PM, Sarah Goslee sarah.gos...@gmail.com wrote: On Wed, Nov 10, 2010 at 12:57 PM, Ian Craig ian.jh...@gmail.com wrote: Greetings Supreme Council of R Masters, Nice. :) I have two sets of data, each with a set of timestamps.  I would like to somehow merge the datasets based

Re: [R] how to store a vector of vectors

2010-11-13 Thread Sarah Goslee
deleted]] -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] how to store a vector of vectors

2010-11-13 Thread Sarah Goslee
( c(1,1,2,1,2,2), nrow=2, byrow=TRUE ) x - c(1,1,2) norm(x,y) [1] 0 1 Sarah On Sat, Nov 13, 2010 at 9:17 AM, Alexx Hardt mikrowelle1...@gmx.de wrote: Am 13.11.2010 14:39, schrieb Sarah Goslee: I at least would need to see an actual example of your code to be able to answer your question

Re: [R] why help ignores some values

2010-11-18 Thread Sarah Goslee
]] I only get 36 out of 37 results (seems that in that case ignores the last values, 37th) . [35,]  2.7245297165175781 [36,]  2.7245297165175781 Why this might be happening? Regards Alex -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] 3d data plot

2010-07-29 Thread Sarah Goslee
. So this would be an x-y-z plot, where z is the measurement at (x,y) conditions. Just a simple plot, nothing special. Dots, surface columns - doesn't matter to me. I just can't figure it out somehow. Szilvia -- -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] hi!! please help me!

2010-08-06 Thread Sarah Goslee
AM, leepama butch...@hanmail.net wrote: I made some anonymous function which performs some process in matlab code.. But I want to perform it in R program... Is there any method??? -- -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r

Re: [R] extracting p-values from Anova objects (from the car library)

2010-08-23 Thread Sarah Goslee
str() than you obtained from the lm help page -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] Merging two data set in R,

2010-08-25 Thread Sarah Goslee
Regards Peter -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] multi day R run crashed - is there a log

2010-08-25 Thread Sarah Goslee
no control over. After a multi-day run I found that it was terminated/crashed. Is there any log kept by R where I could see whether something/what happened? The same process has been run beofre on a smaller dataset (also at least a day of computing) without problems. Thanks Martin -- Sarah

Re: [R] (no subject)

2010-08-25 Thread Sarah Goslee
it. I would also appreciate if anyone more proficient in R could help me how to run this. best wishes M.A-Vakili -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Merging two data set in R,

2010-08-25 Thread Sarah Goslee
help. -Original Message- From: Sarah Goslee [mailto:sarah.gos...@gmail.com] Sent: 25 August 2010 01:52 PM To: Mangalani Peter Makananisa Cc: r-help@r-project.org Subject: Re: [R] Merging two data set in R, First you need to clarify what you'd like to happen when the ID in B

Re: [R] using an objects contents in a text string

2010-08-25 Thread Sarah Goslee
, file = cat(input.variable.name  , file = , sep = _data.txt, ), ...) but this does not seem to work and I'm sure it is not the correct use of cat() Thanks. -- -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list

Re: [R] multi day R run crashed - is there a log

2010-08-25 Thread Sarah Goslee
over from the beginning. Not R, but I just finished a 5-week batch job. You can bet that I put a lot of thought into incremental save points and how to resume after an unexpected halt! Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help

Re: [R] Merging two data set in R,

2010-08-25 Thread Sarah Goslee
= Merge(A,B) Common ID  X    Y 1   a    x 2   b    y 2  N/A   z If it is possible, -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Looking for an image (R 64-bit on Linux 64-bit) on Amazon EC2

2010-08-26 Thread Sarah Goslee
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Sarah Goslee http

Re: [R] Quick GREP challenge

2010-08-26 Thread Sarah Goslee
you. -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal

Re: [R] mailing list

2010-08-26 Thread Sarah Goslee
if I could be taken off the list to get emails? Thanks Sonia -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] lower triangle of the correlation matrix with xtable

2010-09-02 Thread Sarah Goslee
allow to convert this table with xtable. print(xtable(cor(mydata),digits=3)) Any ideas? Cheers, Olga -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] function to compare numbers

2010-09-03 Thread Sarah Goslee
is there a built-in function to compare two numbers? something like following function cmp - function(x, y){    value - 0    if (x y){        value - 1    }else if (x == y){        value - 0    }else {        value - -1    }    return(value) } Thanks in advance, Hyunchul -- Sarah Goslee

Re: [R] path analysis

2010-09-06 Thread Sarah Goslee
, 2010 at 10:37 AM, Guy rotem rottem...@gmail.com wrote: Hi. which package i need to install to be able to run Path analysis using r? many thanks, Guy -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https

Re: [R] Help with decimal points

2010-09-07 Thread Sarah Goslee
ClusteredData[k,Value] - MatchedValues[Value2,Value] ClusteredData[k,Value] [1] 4420 3) So what am I not doing. How can I keep that same value of 481844.03 I have tried as.double(MatchedValues[Value2,Value]) [1] 4420 as.numeric(MatchedValues[Value2,Value]) [1] 4420 -- Sarah Goslee

Re: [R] Local Variable

2010-09-16 Thread Sarah Goslee
-- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

Re: [R] convert to csv file

2010-09-17 Thread Sarah Goslee
, ifelse(toappend, a, w)) Sarah On Fri, Sep 17, 2010 at 12:02 PM, lord12 gaut...@yahoo.com wrote: I get an error message: Error in file(file, ifelse(append, a, w)) : invalid 'open' argument How do I resolve this? -- -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Calculating the average after adding 3 matrices

2009-10-03 Thread Sarah Goslee
,j]= (A[i,j]+B[i,j]+C[i,j])/3. Being a newbie this is proving to be a challenge. Any ideas on how best to accomplish this? Thanks! Anjan -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Plot

2009-10-06 Thread Sarah Goslee
, Tuesday, Wed, Thu, Fri, Sat, Sun),7,1) Hum -matrix(c(56,57,60,75,62,67,70), Temp-matrix(c(76,77,81,95,82,77,83), Using the above information I want plot humidity and temperature on Y-axis and days on X-axis Any help is appreciated! -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] plot an arrow / add arrow to a line

2009-10-06 Thread Sarah Goslee
How about arrows() ? On Tue, Oct 6, 2009 at 4:25 PM, Martin Batholdy batho...@googlemail.com wrote: hi, is it possible to end a line plotted with lines() with an arrow? Or are there any other functions to add an arrow to plot? thanks! -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] graphics

2009-10-07 Thread Sarah Goslee
appreciated. Like this: plot(1:10, 1:10) par(xpd=NA) legend(locator(), nothing, pch=1) Or instead of locator(), a function that lets you use a mouse click to select a point, you can use par(usr) to learn the current coordinate system, and select a value outside of that range. Sarah -- Sarah Goslee

Re: [R] plot the same types of graphics on the same R graphic device

2009-10-09 Thread Sarah Goslee
against x (using plot for instance). How is it possible to plot y against x for different values of these two vectors on the same device so that the plots could be compared? Cheers, Carol -- Sarah Goslee http://www.functionaldiversity.org __ R

Re: [R] add=TRUE function not working

2009-10-11 Thread Sarah Goslee
resolve this problem? thanks! -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] replacing period with a space

2009-10-13 Thread Sarah Goslee
for such a simple question - but how can I replace all periods in x$x with spaces? sub('.', ' ', x$x) - removes all letters to the left of each period... Thanks a lot for your advice! -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org

Re: [R] Cannot calculate mean() for double vector

2009-10-16 Thread Sarah Goslee
(x_ema, which(is.na(x_ema)), 0) which (is.na(x_ema)) integer(0) The mean() call works now and I can get on with my work. I'll have to remember to condition the data like this in the future. Thanks for the help! Reuben Bellika -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Singular Gradient Test

2009-10-19 Thread Sarah Goslee
fit.nls (or the data) prior to see if this error occurs. 2) Would this test be set up as an if statement? if (fit is good) {proceed model coefficients} else {use default coefficients}? Thanks for all your help, Doug -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] squared euclidean distance

2009-10-21 Thread Sarah Goslee
) that it is neccesary to use the squared euclidean distance with the ward-method. Unfortunatelly I cannot find this term in r as a method for measuring the distance. Does anybody have an idea? Thanks in advance, Carolin -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Why 'return' is needed in R?

2009-10-27 Thread Sarah Goslee
understand why 'return' is a keyword in R. Is there a case in which I have to use 'return'? f-function(x) { +   x + } g-function(x) { +   return(x) + } print(f(2)) [1] 2 print(g(2)) [1] 2 -- Sarah Goslee http://www.functionaldiversity.org __ R

Re: [R] strange read.table results

2009-11-17 Thread Sarah Goslee
tried dos2unix to make sure the files are ok, added colClasses=character, sep= etc but with no success. I'm just about at the end of my tether right now so any help will be gratefully received! Dan -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Error: could not find function tsts tradesys package

2010-04-14 Thread Sarah Goslee
. _ -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] merge

2010-04-19 Thread Sarah Goslee
but I have a lot of colums which have the same names in the two dataframe so I think its not the right way to solve it. Anyone knows how to avoid duplication?? -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list

Re: [R] assign value between different type: Double vs Integer

2010-04-24 Thread Sarah Goslee
description or your check. I don't think it has anything to do with storage mode. Sarah then i checked the type: gdata[1,4] is integer, while gdata34[1,4] is double. Can any one give me some help on it Many thanks in advance. Best regards, Dong -- Sarah Goslee http

Re: [R] assign value between different type: Double vs Integer

2010-04-24 Thread Sarah Goslee
as.numeric (ggg), and I got the 883 coming out, which basically is the point here. somehow in the process, it transformed the 10354 to 883 as a different a type from Double to Numeric... Dont know how this can happen.. -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Cluster analysis: dissimilar results between R and SPSS

2010-04-26 Thread Sarah Goslee
! Jeffrey -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] Sweave

2010-04-26 Thread Sarah Goslee
wrote: Hi everybody, I wanted to use Sweave but I do not have the Latex package: LaTeX Error: File  'Sweave.sty' not found. I cannot find it with MiKTeX :-( Can somebody help me ? Thanks a lot, Jimmy -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] help with code

2010-04-26 Thread Sarah Goslee
right away. Most of us are busy and will answer as soon as we can. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] numerical or not?

2010-04-26 Thread Sarah Goslee
? And how can I do it better? This time I attached the temporary_output.txt: -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] getting random integers

2010-04-29 Thread Sarah Goslee
integers. Each integer, x, can be in the range 1 = x = 10. Does the following code give 1 and 10 the same chances to be selected as 2:8? round(runif(100, min = 1, max = 10)) -- Hans Ekbrand -- Sarah Goslee http://www.functionaldiversity.org __ R

Re: [R] function

2010-05-12 Thread Sarah Goslee
a handle on it, you don't. Sarah -- Sarah Goslee http://www.stringpage.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] Help with Loops

2010-05-13 Thread Sarah Goslee
keep looping until a match is found. I dont understand how repeat loops work in R. for (i in 1:length(FULLSAMP[,1])) { if (FULLSAMP[i,1] != TESTSAMP[i,1]) { FULLSAMP - FULLSAMP[-i,] } Thanks in advance -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] IF-ELSE question

2010-05-21 Thread Sarah Goslee
} this work, so i tried to had the second condition with and or or even as writen in operators r-help but none of my trials works, it retrun unexpected symbol { ... any tip ? with regards -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] R eat my data

2010-05-25 Thread Sarah Goslee
-- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

Re: [R] Method

2009-11-24 Thread Sarah Goslee
like to ask you another question. Is exist anymethod to vectors that tells me the last element?That is to say,I have a vector, I want to return the position of last element. I hope having explained. A greeting, Ignacio. -- -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Tests in Anova

2009-11-24 Thread Sarah Goslee
www.rseek.org is great for finding functions/packages that perform specific tests. Sarah On Tue, Nov 24, 2009 at 1:09 PM, Silvano silv...@uel.br wrote: Hi, how can I make tests like Dunnett and Duncan using R? Thanks, -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Method

2009-11-24 Thread Sarah Goslee
for example exp(x.reconstruida[length(myVector)+1:length(myVector)+9]), I need that function returns the number of last element,would then: if the last position of my vector is 1440 exp(x.reconstruida[1440+1:1440+9] This is what I need, I hope having explained, A gretting, Ignacio. -- Sarah

Re: [R] Random data

2009-11-25 Thread Sarah Goslee
random data which lies around a straight line with angle 45 degree. Similar to this image: http://zoonek2.free.fr/UNIX/48_R/g134.png Cheers -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Graphic Device - View/get all graphics

2009-11-27 Thread Sarah Goslee
save an object that is a graphic... Listers, I just want some advices in order to make a research about what functions of R I could save the graphics in my function... Thanks again, Marcio -- Sarah Goslee http://www.functionaldiversity.org __ R-help

Re: [R] mantel test and NAs

2009-12-18 Thread Sarah Goslee
help! Marcia Rocha -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] capturing stdout

2009-12-30 Thread Sarah Goslee
. ncftpget /: remote host closed control connection. I'd like to get the stdout from the system call into some memory location where I can play with it... Is there a simple way to do this? -- Sarah Goslee http://www.functionaldiversity.org __ R

Re: [R] Plot graph

2010-01-04 Thread Sarah Goslee
(EntreesMoyennesMensuelles2007, type=l,main=2007,col=orange) plot(EntreesMoyennesMensuelles2008, type=l,main=2008,col=purple) plot(EntreesMoyennesMensuelles2009, type=l,main=2009,col=green) I get this graph: http://n4.nabble.com/file/n998283/plot1.gif How can I fix that? Thanks -- -- Sarah

Re: [R] problem with odfWeave

2010-01-06 Thread Sarah Goslee
supposed to do exactly ? What I'm trying to do is writing values I have computed earlier in the cells of a table in an ODT file. I'm very grateful in advance for any help... -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org

Re: [R] strange behavior of R

2010-01-08 Thread Sarah Goslee
I think, when there is single row, R is considering it as an array and not as matrix. But why it is so?/ -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] problem with a function

2010-05-28 Thread Sarah Goslee
0.0 3.72678 0.0 $est.3 [1] 0.00 0.00 0.00 0.00 2.78 0.00 $est.4 [1]  0.0  0.0  0.0  0.0 13.9  0.0 $est.5 [1]  0.0  0.0  0.0  0.0 13.9  0.0 -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] problem with a function

2010-05-28 Thread Sarah Goslee
is a bit long. I attached it. rho.f () is in second text document. It uses rada1.mnorm() function which is contained in the first document. Thank you very very much!!! -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing

Re: [R] problem with a function

2010-05-28 Thread Sarah Goslee
) ## Look: 0.2 can be represented exactly. set.seed(103) mvrnorm(n, mean1, varf1) set.seed(103) mvrnorm(n, mean1, varf2) -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Issue with assigning text to matrix

2010-06-01 Thread Sarah Goslee
information about how to fix it. Can anyone help? Many thanks. -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] save image to folder

2010-06-01 Thread Sarah Goslee
the resulting image as png or jpg into a certain folder (working directory). -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] strsplit

2010-06-01 Thread Sarah Goslee
GenusB_SpeciesA_Shrub ... I tried with strsplit and and substring but I don't get any solution. I know I can do this in Excel, but in R would be much nicer! -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https

Re: [R] problem with intToChar

2010-06-01 Thread Sarah Goslee
-- -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] Problem using apply

2010-06-01 Thread Sarah Goslee
print(ByRow) apply( m, 1, divideByMean) print(ByCol) apply( m, 2, divideByMean) -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] import text file into R

2010-06-03 Thread Sarah Goslee
is a large file, about 800MB in size. Thanks in advance. I tried using the following data-read.table(file,header=T,sep=\t) -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] (no subject)

2010-06-03 Thread Sarah Goslee
(7.57,7.35) plot - barplot(y, beside=TRUE, col=0, ylim=c(0,47), axis.lty=1, main=far-red, xlab=latitude, names.arg=c(56N, 68N)) superpose.eb(plot, y, se, col=orange, lwd=2) Then I get an error saying that it cannot find the superpose.eb function. Why? Isn´t under gplots? -- Sarah Goslee http

Re: [R] Scope and sapply

2010-06-12 Thread Sarah Goslee
didn't assign the results of sapply to anything, and you didn't assign anything new to vec. What did you expect to happen? -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Boxplot intervals combining names

2010-06-13 Thread Sarah Goslee
commented, minimal, self-contained, reproducible code. -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] remove last char of a text string

2010-06-14 Thread Sarah Goslee
? substr() function use as parameter start end only... but my strings are of different length... 01asap05a - 01asap05 02ee04b - 02ee04 Thank you all, Gianandrea -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list

Re: [R] Fastest way to merge matrix columns into a comma delimited string?

2010-06-15 Thread Sarah Goslee
character vector where each line is row's values delimited by commas, e.g.: 1,2,3 2,3,1 3,1,2 ... 1,2,3 -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Matrix to Vector

2010-06-15 Thread Sarah Goslee
long vector vs a matrix) then reassign the date to the left of each time (right now date is only shown once by row and will be in columns when transposed).  Any thoughts? -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing

Re: [R] data frame

2010-06-17 Thread Sarah Goslee
applied the following formula which gives me a partial good result but not at all: series=ddply(x,.(variable,CLUSTER),transform,series=rev(c(R_pivot,rev(R_pivot-cumsum(rev(Delta[-1])) Thanks for your attention!!! -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Plotting different symbols in R for different values in a vector

2010-06-17 Thread Sarah Goslee
or colour depending on whether this other vector takes the value 1 or 0. Is there anyway to do this? Thanks -- -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Displaying Iteration Count

2010-06-22 Thread Sarah Goslee
, Mitch Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] how to process this in R

2010-07-07 Thread Sarah Goslee
looking forward to any helps from you. -- -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Boxplots from data.frame

2010-07-07 Thread Sarah Goslee
in total (for this case).  When I try something like: p - ggplot(meltl, aes(L1, value)) p + geom_boxplot() I get one giant boxplot, which tells me nothing much. Can anyone give me a helping hand? -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Error in which()

2010-07-08 Thread Sarah Goslee
[a] f1 x1[a])] } -- -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] strange floor rounding

2010-07-09 Thread Sarah Goslee
where is the trick here? And how can I end up with the right answer? Thanks a lot everybody for your help. Trafim -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] hide scatter points

2010-07-09 Thread Sarah Goslee
points to be transparent or hidden. x2 - seq(1,200,.5) y2 - seq(5,204,.5) plot(x2, y2, pch=16, col=green) model-lm(y2~x2) abline(model, lty=3, lwd=4, col=black) Thanks ahead of time, keith -- -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Data transformation

2010-01-25 Thread Sarah Goslee
    0     1     0     1      0      0    0     0     0      0     1     0     0     0      0      1 Can anybody please help how to get this done? Your help would be greatly appreciated. Lisa -- Sarah Goslee http://www.functionaldiversity.org __ R

Re: [R] problem with odfWeave

2010-01-27 Thread Sarah Goslee
.odt) (I run a loop with the same report generated for different datasets). I hope this is what you are looking for ? Joel -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Merge: sort=F not preserving order?

2010-01-27 Thread Sarah Goslee
on here? __ -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] Questions on Mahalanobis Distance

2010-01-30 Thread Sarah Goslee
-contained, reproducible code. -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Reading these datasets

2010-02-03 Thread Sarah Goslee
there actually are). Sarah 2010/2/3 Amy Hessen amy_4_5...@hotmail.com: Hi, I receive too many warnings when I try to read the attached datasets. Could you please tell me where the problem in them? Cheers, Amy -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Legend symbol?

2010-02-04 Thread Sarah Goslee
,Exponential (used))       } else {       leg.txt - c(Data, Statistical Outlier, Spatial Outlier, High Z Outlier, Default (used),Exponential) } legend(topleft, legend=leg.txt, col=c(black,yellow,red,orange,blue,black), pch = c(16,16,16,16,1,1), cex=0.85 ) Thanks, Doug -- Sarah Goslee http

Re: [R] remove a row from a dataframe, row names disappear

2010-02-05 Thread Sarah Goslee
values are removed! What's going on, and why does this same thing not happen in more complex datasets with more than one column of values? Many thanks - Euan. -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list

Re: [R] Problems installing stats (prcomp) package

2010-02-09 Thread Sarah Goslee
/) which includes 2 files: stats.rdb and stats.rdx. I downloaded both files and tried to install them via the R installer choosing local packets (binary and source) but both variants failed. Can anyone help? best mentor -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] performing the same commands on two different data sets

2010-02-09 Thread Sarah Goslee
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Sarah Goslee http://www.stringpage.com http

Re: [R] how to do calculations in data matrices?

2010-02-13 Thread Sarah Goslee
/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Sarah Goslee http://www.stringpage.com http://www.astronomicum.com http://www.functionaldiversity.org

Re: [R] R project

2010-02-14 Thread Sarah Goslee
in R-project? How could I construct a table for 5 or 10 records of data set? How could I construct a bar chart for categorical variable with overlay? How could I construct a histogram for a categorical variable? pls inform me. Thanks in advanced. Navid -- Sarah Goslee http

Re: [R] Non-metric multi-dimensional scaling with NAs / 0s

2010-02-15 Thread Sarah Goslee
with NA but to no avail. I am struggling to find a function which will allow me to carry out MDS without taking into account NAs or 0s, essentially carry out MDS with missing values.  If anyone could advise me on my problem it would be much appreciated.  Thank you, -- Sarah Goslee http

Re: [R] how to execute R script piece by piece on SSH terminal

2010-02-18 Thread Sarah Goslee
and will work. Sarah On Thu, Feb 18, 2010 at 3:36 PM, xin...@stat.psu.edu wrote: hi, I am new to Linux and R environment. I have a existing R script. I wonder how to open my R script on Linux platform and execute selected written R command? thanks Xin -- Sarah Goslee http

Re: [R] Accessing values of a matrix

2010-02-19 Thread Sarah Goslee
to work) Surely I could do a loop but I want to learn how to do things without time consuming loops. Thanks Colin -- -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] legend question

2010-02-19 Thread Sarah Goslee
),paste(Median =,median(CDR3))), lty=c(1, 1, NA, NA), pch=c(NA, NA, 19, 19), col=c(red,blue,red,black), bty=n) -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

  1   2   3   4   5   6   7   8   9   10   >