[R] Limit of matrix + naming

2006-02-21 Thread Chia, Yen Lin
Hi all, I have read a data matrix of 304 x 404 using read.table. When I am trying to name the colnames, with first try colnames(L5)-list(2:305), I keep getting error message such as Error in colnames-(`*tmp*`, value = list(c(2, 3, 4, 5, 6, 7, 8, 9, : length of 'dimnames' [2]

[R] Loop through factors without changing to numerics

2006-01-19 Thread Chia, Yen Lin
Hi all, If I want to write a for loop to loop through a set of factors, which are not coded in 1,2,3, for e.g in character, possible to write the for loop without changing it to categorical variables? I saw the manual mentions for loop will take a list, but I'm not sure how to create a list

[R] Influence measure + lme ?

2006-01-18 Thread Chia, Yen Lin
Hi all, Does lme has function to compute the cook's distance or influence measure like lm? I can't find them. Thanks. Yen Lin [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

[R] singular convergence(7)?

2006-01-16 Thread Chia, Yen Lin
Hi all, I just wonder what singular convergence means. Thanks. Yen Lin Error in lme.formula(Data ~ 1, random = ~1 | Wafer/fie/loc, subset = Wafer == : singular convergence (7) [[alternative HTML version deleted]] __

[R] Convert matrix to data.frame

2006-01-12 Thread Chia, Yen Lin
Hi all, I wonder how could I convert a matrix A to a dataframe such that whenever I'm running a linear model such lme, I can use A$x1? I tried data.frame(A), it didn't work. Should I initialize A not as a matrix? Thanks. Yen Lin [[alternative HTML version deleted]]

[R] warning message from nlme

2006-01-09 Thread Chia, Yen Lin
Hi all, I tried to do a variance components using nlme, but I got the following warning mesage # not meaningful for factors in: Ops.factor(y[revOrder], Fitted) ## Can someone point

Re: [R] warning message from nlme

2006-01-09 Thread Chia, Yen Lin
this warning message mean? If the factors are not meaningful, how can I find out which factors the warning message is referring to? Thanks. Yen Lin -Original Message- From: Berton Gunter [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 9:34 AM To: Chia, Yen Lin Subject: RE: [R

[R] convert matrix to data frame

2006-01-05 Thread Chia, Yen Lin
Hi all, Suppose I have a 4 x 2 matrix A and I want to select the values in second column such that the value in first column equals to k. I gave the colnames as alpha beta, so I was trying to access the info using A$beta[A[,1]==k], however, I was told it's not a data frame, I can get