[R] Rearrange Data Frame

2015-07-29 Thread Stella Xu
My question is about how to select and rearrange the data to a new data frame Here is an example: Samples counts time A 10 3 A 12 4 A 11 3 B 12 4 B 10 5 C

[R] Structural equation models (SEM) for count data / poisson distribution

2013-08-06 Thread Stella Copeland
data with SEM in R, in either lavaan or sem? Thanks in advance for comments and suggestions, Stella -- Stella Copeland PhD Candidate Environmental Science & Policy UC Davis __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

[R] Problem with segmented function

2012-08-05 Thread stella
lm(y~x,data_test) seg_test<-segmented(lr_test,seg.Z~x,psi=1) /error in segmented.lm(lr_test, seg.Z ~ x, psi = 1) : A wrong number of terms in `seg.Z' or `psi'/ Thank you very much, Stella -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-segmented-function

[R] How can a function in R handle different types of input?

2012-05-02 Thread stella
x27; for all four rows of x without using a for-loop. If I use 'mapply', I get outputs to very entry of x (12 outputs) instead of four. Thank you very much in advance! Yor help is really appreciated! Stella -- View this message in context: http://r.789695.n4.nabble.com/How-can-a-

[R] Get part of a GO term

2012-04-10 Thread stella
Hi, Sorry, I am bad with regular expression and a beginner with R. How do I get only the numbers 0009987 from the following entry? GO:0009987~cellular process Thanks a lot, Stella -- View this message in context: http://r.789695.n4.nabble.com/Get-part-of-a-GO-term-tp4546125p4546125.html Sent

[R] How to get the input of a function right?

2012-03-22 Thread stella
his, I get 'NA' in return. If I give the function a vector e.g c(1,2,3) instead of 'x' the function works just fine. Does anyone has an idea why the function would not except 'x' as an input? Thank you very much! Stella -- View this message in context: http://

[R] Get a subset

2012-03-12 Thread stella
ve an idea how to solve this in R? Thank you! Stella -- View this message in context: http://r.789695.n4.nabble.com/Get-a-subset-tp4466541p4466541.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]] __

[R] Help with plotting kohonen maps

2010-11-22 Thread Stella Pachidi
=colnames(self_Organising_Map$codes)) but it had the same result. If you could please help with what argument I should use to show the color labels in the codes plot of the kohonen map, please drop a line! Kind regards, Stella -- Stella Pachidi Master in Business Informatics student Utrecht Uni

Re: [R] Help on aggregate method

2010-06-01 Thread Stella Pachidi
Dear Erik, Thank you very much. Indeed ave did the same job amazingly fast! I did not know the function before. Many thanks to all R experts who answer to this mailing list, it's amazing how much help you offer to the newbies :) Kind regards, Stella On Tue, Jun 1, 2010 at 6:11 PM, Erik Iv

Re: [R] Help on aggregate method

2010-06-01 Thread Stella Pachidi
ataTable[["Chick"]][ind])) as.numeric(aggrTable[index,3]) } avgW <- aggregate(ap.dat[["weight"]], by = list(ap.dat[["Diet"]], ap.dat[["Chick"]]), FUN="mean") meanW <- sapply((1:length(ap.dat[,1])), FUN=matchMeanEx, ap.dat, avgW) ap.dat <- c

[R] Help on aggregate method

2010-06-01 Thread Stella Pachidi
to run my matching function, so if you had an idea on how to automate more this matching process I would be really grateful. Thank you very much in advance! Kind regards, Stella -- Stella Pachidi Master in Business Informatics student Utrecht University ___

[R] Question about difftime()

2010-05-20 Thread Stella Pachidi
has 28 days (or 29). Could you please help? Thank you very much in advance. Kind regards, Stella -- Stella Pachidi Master in Business Informatics student Utrecht University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-

Re: [R] Huge data sets and RAM problems

2010-04-22 Thread Stella Pachidi
Dear all, Thank you very much for your replies and help. I will try to work with your suggestions and come back to you if I need something more. Kind regards, Stella Pachidi On Thu, Apr 22, 2010 at 5:30 AM, kMan wrote: > You set records to NULL perhaps (delete, shift up). Perhaps your sys

[R] Huge data sets and RAM problems

2010-04-19 Thread Stella Pachidi
RAM? Or, do you think there is a way to process the data by loading them into a document instead of loading all into RAM? Do you know how I could manage to read all my data set? I would really appreciate your help. Kind regards, Stella Pachidi PS: Do you know any text editor that

[R] Questions regarding sem using hetcor() function from polycor and diagrams

2010-01-03 Thread Stella Copeland
s much appreciated. Thank you, Stella -- Stella Copeland PhD Student Graduate Group in Ecology University of California, Davis __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:/

[R] Re : Wavelet Kernel

2009-07-29 Thread Stella Sim
Dear list, I would like to fit a wavelet SVM model. Where can I find a wavelet kernel function? Thanks in advance. Stella Sim DISCLAIMER:\ This email contains confidential informatio...{{dropped:11}} __ R-help@r-project.org mailing list https

[R] Re : Mixture Regression Lasso

2009-01-13 Thread Stella Sim
Dear list, I would like to run Lasso (least absolute shrinkage and selection operator) on a bimodal dataset. Can I do that using packages like lasso or lars ? Thanks in advance. Stella Sim DISCLAIMER:\ This email contains confidential informatio...{{dropped:11

Re: [R] Calculate SPE in PLS package

2008-10-19 Thread Stella Sim
) SPE.x<-rowSums((actual-pred)^2) Am I missing something here? Thanks in advance. Stella Sim DISCLAIMER:\ This email contains confidential informatio...{{dropped:11}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r