[R] elegant way to check if 2 values are in 3 columns?

2011-08-26 Thread Joanne Demmler
recode treat(0=1) if ((`x'==56.36 | `x'==59.81) & yearsep<1988) | ((`x'>=63.70 &`x'<=63.79) & yearsep>=1988) } tab treat -- Joanne Demmler Ph.D. Research Assistant College of Medicine Swansea University Singleton Park Swansea SA2 8PP UK tel:+4

[R] setting up a R working group

2011-03-17 Thread Joanne Demmler
with what to present or teach (did you organise your own training programme or did you get someone from outside?) - are there people out there who would like to present their work to us? Any help will be highly appreciated! Thanks Joanne -- Joanne Demmler Ph.D. Research Assistant College of

[R] random sampling or random replacement

2009-06-25 Thread Joanne Demmler
sample(1:2, 100) #without replacement Now I want x to contain to 20% missing data (NA). Could anyone help me how to do this? Thanks Joanne -- ==== Joanne Demmler Ph.D. Research Assistant School of Medicine Swansea University Singleton Park Swans

Re: [R] several postscript problems

2008-10-03 Thread Joanne Demmler
Thanks, I upgraded to R 2.7.2 and installed Acrobat Reader. Once Acrobat reader is set as default application for pdf it will automatically also be used under Lyx. This solved most problems, but all error bars at pch=1 dots still look like a little mouse nibbled on them. Perhaps I'll just ha

[R] several postscript problems

2008-10-03 Thread Joanne Demmler
Hello everyone, I'm currently trying to export a couple of graphs to pdf . Postscript would be fine too, but I'm using odd page dimensions, which seem to be overwritten when using the "ps2pdf" command. I'm using the pdfpages package in LaTeX to put 6 graphs onto one page (this is why it ought

Re: [R] R rpm for Mandriva 2008.1 ?

2008-09-13 Thread Joanne Demmler
Found it, but there seems to be a dependency clash. Over the command line I get an error mentioning, that some packages are older than the ones installed and over the manager I simply get a message "can't install package". Joanne __ R-help@r-project

[R] R rpm for Mandriva 2008.1 ?

2008-09-13 Thread Joanne Demmler
Are there any R rpm's for Mandriva 2008.1? I found a couple of dodgy ones that wouldn't install so far (rpmfind.net). (Sorry that seems so far the only Linux distribution that recognizes my hardware on my new laptop correctly. I'm more familiar to Fedora and Suse so perhaps I'm just doing some

Re: [R] sink file type and Latex (Lyx)

2008-09-12 Thread Joanne Demmler
Thanks very much! options(useFancyQuotes=FALSE) did the trick! Joanne P.S.: For reference I'm running R on Linux Fedora 8: > Sys.getlocale() [1] "LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC

[R] sink file type and Latex (Lyx)

2008-09-12 Thread Joanne Demmler
Does anyone know what file type sink is outputting to? I've been reverting output from R using sink and wanted to add it to my Appendix in LaTex (Lyx) using "Verbatiminput". However, I get an error message as LaTex is expecting an ASCII file. Can I set sink somehow to ASCII or is there another