[R] Printing 'k' levels of factors 'n' times each, but 'n' is unequal for all levels ?

2009-12-08 Thread A Singh
2 times 0.1428, and so on. Is there a way of specifying that a list needs to be populated with replicates of groupmeans based on values got from newtemp[,2]? I just can't seem to figure this out by myself. Many thanks for your help. Aditi -- A Singh aditi.si...@bristo

[R] Splitting massive output into multiple text files

2009-11-19 Thread A Singh
shared.com/file/131980362/460bdafe/Testvcomp10.ht ml> (excel) http://www.4shared.com/file/131980512/dc7308b/Testvcomp10.html (txt) ------ -- A Singh aditi.si...@bristol.ac.uk School of Biological Sciences University of B

[R] Printing labeled summary to text file ?

2009-11-19 Thread A Singh
(peg.no)) try(fit5<-lmer(data=modeldf, peg.no.prm~1 + (1|family/f))) print(summary(fit5)) capture.output(fit5, file="testperm5.txt", append=T) }}} } The data files are at: <http://www.4shared.com/file/131980362/460bdafe/Testvcomp10.ht ml> (excel) http://www.4shared.

Re: [R] lapply() not converting columns to factors (no error message)

2009-11-16 Thread A Singh
o in your check step. -- DW On Nov 16, 2009, at 8:07 AM, A Singh wrote: Oh, strange! I thought it might be a problem with the 'base' package installation, because the same thing's worked for me too before but won't do now. I tried to reinstall it (base), but R says its there alre

Re: [R] lapply() not converting columns to factors (no error message)

2009-11-16 Thread A Singh
e other attached packages: [1] lattice_0.17-26 loaded via a namespace (and not attached): [1] grid_2.10.0 tools_2.10.0 On Mon, Nov 16, 2009 at 4:50 AM, A Singh wrote: Sorry, my file is at: http://www.4shared.com/file/153147281/a5c78386/Testvcomp10.html -- A Singh aditi

Re: [R] lapply() not converting columns to factors (no error message)

2009-11-16 Thread A Singh
Sorry, my file is at: http://www.4shared.com/file/153147281/a5c78386/Testvcomp10.html -- A Singh aditi.si...@bristol.ac.uk School of Biological Sciences University of Bristol __ R-help@r-project.org mailing list https

[R] lapply() not converting columns to factors (no error message)

2009-11-16 Thread A Singh
erformed, no error message ##I tried to pick random columns and check levels(P1L55) NULL is.factor(P1L96) FALSE -- A Singh aditi.si...@bristol.ac.uk School of Biological Sciences University of Bristol __ R-help@r-project.o

Re: [R] Printing column names before each block of output (fwd)

2009-09-22 Thread A Singh
by REML - - - Number of obs: 390, groups: f:family, 82; family, 57 Fixed effects: Estimate Std. Error t value (Intercept) 96.577 1.37670.2 [1] "Marker" Linear mixed model fit by REML - - . . . Am I doing this correctly? I've tried variations and it all behave

Re: [R] Working around 256 byte variable names? + trouble opening large file

2009-09-21 Thread A Singh
=",".. ) also worked, and I just finished running a loop over 430 columns for an hierarchical model. W... I would like to find out why attach() is advised against, and thanks again for a list of useful commands that I can explore in the futur

Re: [R] Working around 256 byte variable names? + trouble opening large file

2009-09-21 Thread A Singh
, 2009, at 4:04 PM, A Singh wrote: Dear R users, I am trying to read in a file with 105 columns, and when trying to attach it, get an error as follows: vc1<-read.table("P:\\R\\Everything-I.txt", header=T, sep=" ", dec=".", na.strings=NA, strip.white=T) attach(vc1)

Re: [R] Working around 256 byte variable names? + trouble opening large file

2009-09-21 Thread A Singh
re header line as one variable. Why not try exporting the Exce file as a csv file and loading that? --- On Mon, 9/21/09, A Singh wrote: From: A Singh Subject: [R] Working around 256 byte variable names? + trouble opening large file To: r-help@r-project.org Received: Monday, September 21,

[R] Working around 256 byte variable names? + trouble opening large file

2009-09-21 Thread A Singh
es, na.strings, : line 397 did not have 431 elements Is it that R isn't dealing too well with Excel-converted-to-text files? Is it a function of file size? I have double-checked the 430 column file and all data seems to be in place. Thanks for your help! Aditi --

[R] Printing column names before each block of output (fwd)

2009-09-21 Thread A Singh
s on how to print either column names, or a sequence of numbers? Thanks a lot for your help, Aditi -- A Singh aditi.si...@bristol.ac.uk School of Biological Sciences University of Bristol __ R-help@r-project.org mailing list

[R] Printing column names before each block of output

2009-09-21 Thread A Singh
nters on how to print either column names, or a sequence of numbers? Thanks a lot for your help, Aditi -- A Singh aditi.si...@bristol.ac.uk School of Biological Sciences University of Bristol __ R-help@r-project.org mailing list

Re: [R] Error: length(f1) == length(f2) is not TRUE

2009-09-18 Thread A Singh
a huge bunch, and cheers! Aditi --On 18 September 2009 11:40 -0700 William Dunlap wrote: From: A Singh [mailto:aditi.si...@bristol.ac.uk] Sent: Friday, September 18, 2009 11:24 AM To: William Dunlap Subject: RE: [R] Error: length(f1) == length(f2) is not TRUE Yup, they are all factors- and

Re: [R] Error: length(f1) == length(f2) is not TRUE (fwd)

2009-09-18 Thread A Singh
-- Forwarded Message -- Date: 18 September 2009 19:24 +0100 From: A Singh To: William Dunlap Subject: RE: [R] Error: length(f1) == length(f2) is not TRUE Yup, they are all factors- and its still doesn't work. Getting to the stage where I can use 'summary()'

Re: [R] Error: length(f1) == length(f2) is not TRUE

2009-09-18 Thread A Singh
t.org [mailto:r-help-boun...@r-project.org] On Behalf Of A Singh Sent: Friday, September 18, 2009 4:42 AM To: r-help@r-project.org Subject: [R] Error: length(f1) == length(f2) is not TRUE Dear R users, I am trying to fit an lmer model with only random effects which is giving me the followin

Re: [R] Error: length(f1) == length(f2) is not TRUE

2009-09-18 Thread A Singh
I just wanted to know whether the chances of getting help with this would be greater if I posted this on the mixed models list, even though I would be cross-posting.. ? --On 18 September 2009 12:41 +0100 A Singh wrote: Dear R users, I am trying to fit an lmer model with only random

[R] Error: length(f1) == length(f2) is not TRUE

2009-09-18 Thread A Singh
131980362/460bdafe/Testvcomp10.html> (excel) http://www.4shared.com/file/131980512/dc7308b/Testvcomp10.html (txt) Cheers, Aditi -- A Singh aditi.si...@bristol.ac.uk School of Biological Sciences University of Bristol __ R-he

[R] How to block data across multiple columns?

2009-09-11 Thread A Singh
r, but not more in the same run. Any suggestions please? Thanks a lot, Aditi Data files at: <http://www.4shared.com/file/131980362/460bdafe/Testvcomp10.html> (excel) http://www.4shared.com/file/131980512/dc7308b/Testvcomp10.html (txt) - A Singh aditi.si...@bristol.ac.uk

[R] Multiple lmer runs using 2 'for' loops

2009-07-28 Thread A Singh
icance of variance explained by each marker- which is why am trying to print 'anova' results for each run of the lmer. Files: <http://www.filesanywhere.com/fs/v.aspx?v=896d6b88616173be71ab> (excel- .xlsx) <http://www.filesanywhere.com/fs/v.aspx?v=896d6b88616174a76e9e> (.txt file)

[R] Differing Variable Length Inconsistencies in Random Effects/Regression Models

2009-07-15 Thread A Singh
t know it- but I don't know R that well at all. My data files can be downloaded at the following location: <http://www.filesanywhere.com/fs/v.aspx?v=896d6b88616173be71ab> (excel- .xlsx) <http://www.filesanywhere.com/fs/v.aspx?v=896d6b88616174a76e9e> (.txt file) Any pointers wou