[R] simple example for linear mixed effects model

2009-03-28 Thread Edna Bell
Dear R Gurus: Could someone point me to a small example of a linear mixed effects model, please? Ideally, this example would only have a few data points so I could calculate by hand to compare results to R results, please. Thanks so much! Sincerely, Edna Bell

[R] function question

2009-03-19 Thread Edna Bell
Dear R Gurus: I read somewhere that functions are considered vectors. Is this true, please? thanks Edna Bell __ 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

[R] classes and methods

2009-03-19 Thread Edna Bell
sets the class to foo, please? or a sort of Validity checker, please? Thanks, Edna Bell __ 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

[R] several package building questions

2009-03-18 Thread Edna Bell
to be used with R, and eventually be used in a package, please? It used to be something like g77 -O2 -c test.f? Thanks for any help. Sincerely, Edna Bell . __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] several package building questions: found answer to the manuals

2009-03-18 Thread Edna Bell
Hi again. I found out how to download the manuals from the website. Sorry __ 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

[R] yet another package building question please

2009-03-18 Thread Edna Bell
Hello again. I'm trying to use package.skeleton to build my package. However, my package will contain a Fortran subroutine. Can you use package.skeleton with that subroutine, please or do you need to add it manually? Thanks again, Sincerely, Edna Bell

[R] primitives again

2009-03-14 Thread Edna Bell
Dear R Gurus: How do I find the functions which are primitives, please? Thanks, Edna Bell __ 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

[R] builtin vs. closure

2009-03-14 Thread Edna Bell
Dear R Gurus: I'm working slowly through R Programming for Bioinformatics, which is really interesting! Anyway, my question now is: what determines if a function is a builtin vs. a closure, please? For instance: typeof(sqrt) [1] builtin typeof(mean) [1] closure Thanks, Edna Bell

[R] difference between Primitive and Generic

2009-03-08 Thread Edna Bell
Dear R Gurus: What is the difference between a Primitive and a Generic, please? Thanks, Edna Bell __ 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

[R] density estimate

2009-02-20 Thread Edna Bell
version from his page 15 Equation 2.2a, please? Thanks, Edna Bell __ 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

[R] adding S3 vs. S4 to a new package

2009-02-12 Thread Edna Bell
Dear R Gurus: I'm building a package and am wondering whether to use S3 or S4 methods. Any advice, please? Thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] grep question

2009-01-20 Thread Edna Bell
In grep, you can use the options n and o to get the line number and only the matching text. Is there a way to just get the line number, please? Thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] 2^2 problem revisited

2008-11-13 Thread Edna Bell
--- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 When you test on interaction, you reject (of course). Now, I thought that you could not test on the main effects, A and B. Is that true, please? Thanks, Edna Bell __ R-help@r-project.org

[R] 2^2 factorial design question

2008-11-06 Thread Edna Bell
Dear R Gurus: How do you put together a 2^2 (or even 2^k) factorial problem, please? Since you have 2 levels for A and B, do you put in A+ and A- as factors, please? Thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] [OT] factorial design

2008-11-03 Thread Edna Bell
Dear R Gurus: I vaguely remember reading that if interaction was present in a factorial design, then the main effect results were suspect. However, I was reading a text which now uses the tests for main effects even if interaction is present. Which is correct, please? Thanks, Edna Bell

[R] goodness of fit test

2008-09-30 Thread Edna Bell
Dear R Gurus; Is there an automated process for goodness of fit tests, please? I know there is prop.test for one at a time, but I was wondering about this, please. Thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] setting history file

2008-09-10 Thread Edna Bell
Dear R Gurus: I would like to set the number of commands in the history file as 50 rather than 25. I would do this in the .First function. How do I set this, please? I tried history(max=50) and it prints what it has. I just want to set the size in .First. Thanks in advance, Sincerely, Edna

Re: [R] setting history file

2008-09-10 Thread Edna Bell
I am using R-2.7.2 on Windows XP. Sorry for the problems. Sincerely, Edna On Wed, Sep 10, 2008 at 11:54 AM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Wed, 10 Sep 2008, Edna Bell wrote: Dear R Gurus: I would like to set the number of commands in the history file as 50 rather than 25

[R] test for a single variance

2008-09-09 Thread Edna Bell
Dear R Gurus: Is there a test for a single variance available in R, please? Thanks, Edna Bell __ 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

[R] probably easy methods question

2008-09-09 Thread Edna Bell
method for t from namespace stats namespace:stats with value function (x, ...) UseMethod(t.test) environment: namespace:stats methods(t.test) [1] t.test.default* t.test.formula* Non-visible functions are asterisked Ok. Now what, please? I'm sure it's really simple. Thanks, Edna Bell

[R] creating a vignette

2008-09-07 Thread Edna Bell
Dear R Gurus: How would I create a vignette, please? Why would a vignette be better than examples, please? Thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] Latin squares in R

2008-08-26 Thread Edna Bell
Dear R Gurus: What would be the best way to evaluate a Latin square problem, please? Does it work in Rcmdr, please? thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] keywords

2008-07-29 Thread Edna Bell
Hi R Gurus! When you build a package, you need to put in keywords in the Rd files. Where would you find the list of keywords, please? TIA, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] more environment questions

2008-07-29 Thread Edna Bell
to e1, please? Thanks, Edna Bell __ 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.

[R] table questions

2008-07-29 Thread Edna Bell
things up to have 0 - 0.4 0.5 - 0.9 etc. please? I know there is the cut functions, but breaks are required. If you don't have breaks, what should you do, please? Would using the breaks from the hist function work appropriately, please? thanks Edna Bell

Re: [R] more environment questions

2008-07-29 Thread Edna Bell
a lot of manipulations of environments you might want to look at the proto package which reframes the whole thing in terms of object oriented programming. On Tue, Jul 29, 2008 at 12:12 PM, Edna Bell [EMAIL PROTECTED] wrote: Hi R Gurus: Here is some code that I was experimenting with, please

[R] try question

2008-07-29 Thread Edna Bell
NaN 0.30283262 NaN [21] -0.11696872 -3.84122332 NaN NaN -0.12808690 Warning message: In log(rnorm(25)) : NaNs produced I thought that putting the silent = TRUE would suppress the warnings, please. What should I do instead, please? Thanks, Edna Bell

[R] environment question

2008-07-28 Thread Edna Bell
(a, envir=e2, inherits = FALSE) exists(+, envir=e2) # this succeeds by inheritance My question is: how can a exist in e2 when the ls(e2) gives character(0), please? Thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] read.table question

2008-07-27 Thread Edna Bell
Dear R list: I have a data set that I would like to bring it. The fourth column shows as numeric, but I want it to be a factor. Is there a way to do this from the read.table statement, or should I just wait and use the factor function please? thanks, Edna Bell

[R] ggplot2 help

2008-07-24 Thread Edna Bell
Hi yet again! Thank you for being patient with me. Is there a how to for ggplot2, please? I would like to look at it, but have no idea where to start, please. Thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Cairo graphics

2008-07-24 Thread Edna Bell
Hi again. Sorry to be a pest. What are Cairo graphics and how to find out about them, please? Thanks yet again, Edna __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] still more dumb questions

2008-07-24 Thread Edna Bell
Hello. When I type in median, I get the following: median function (x, na.rm = FALSE) UseMethod(median) environment: namespace:stats How do I look at the code, please? Thanks again, Edna __ R-help@r-project.org mailing list

[R] printing in binary

2008-06-17 Thread Edna Bell
Hi r Gurus: Is there a way to print numbers in binary format, please? I know that you can use sprintf for hex, but I'm not sure how to get binary. Thanks Edna __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] fortran question

2008-05-30 Thread Edna Bell
Hi R Gurus: I have used the following in the past: g77 -O2 -c test.f g77 -shared -o test.dll test.f with success. Now I'm getting ld: dllcrt2.o no such file I have the latest version of Rtools28.exe Any suggestions would be much appreciated. Sincerely, Edna Bell

[R] [OT] Linux/UNIX question

2008-02-20 Thread Edna Bell
Dear R Gurus: I'm trying to find R on another Linux system. I'm using the find command, (surprise), but I only want to see the output where it exists, not all of the other stuff. Is there an option that I could select, please? Right now I have find / -name R TIA, Sincerely, Edna

[R] finding source for a function

2008-02-14 Thread Edna Bell
Dear R Gurus: How do you get source for functions which say UseMethod when you type in their names, please? I've tried getAnywhere and getMethods...I thought that might produce them. Thanks in advance. Sincerely, Edna __ R-help@r-project.org mailing

[R] gcc and R CMD SHLIB question

2008-01-15 Thread Edna Bell
Dear R Gurus: Is there an option for gcc and R CMD SHLIB such that it neither compiles nor links but shows you which libraries etc would be used, please? I saw something like it but forgot to write it down. Thanks in advance! Sincerely, Edna Bell

[R] R extensions

2008-01-12 Thread Edna Bell
Dear R Gurus: I'm reading through the Writing R Extensions manual. I am seeing references to load hooks and SEXPR but have no ideas what these are. Could someone give me some direction as to finding out about these, please? Thanks, Edna Bell __ R

[R] USA map with all states

2008-01-01 Thread Edna Bell
Hi R Gurus! There was a function in S called usa() which would plot the US. I found map('usa') in R for the lower 48 states. Is there a way to include Alaska and Hawaii as well, please? Thanks, Edna Bell __ R-help@r-project.org mailing list https

[R] [OT] putting URLs in Latex

2007-11-27 Thread Edna Bell
Hi R Gurus! This is definitely off topic, but I thought I'd try: what is the way to put in url's into a Latex file, please? I know that you start with a \newcommand statement, with some kind of argument that will change, but I'm not sure how to set it up, please. thanks, Edna Bell

[R] generating .Rd files

2007-11-26 Thread Edna Bell
Hi R Gurus! I have a package that I am putting together. I waited until the end to do the documentation and would like to generate a set of empty .Rd files. Is there a quick way to do this, please? Thanks, Edna Bell PS I can't seem to access the Writing R Extensions manual from 2.6.1

[R] Please ignore previous .Rd question

2007-11-26 Thread Edna Bell
If the function is f, you can use prompt(f) Sorry thanks, Edna __ 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] generating .Rd files

2007-11-26 Thread Edna Bell
Thanks to all. I did not install. (no wonder I couldn't find them...) On 11/26/07, Duncan Murdoch [EMAIL PROTECTED] wrote: On 26/11/2007 6:59 PM, Edna Bell wrote: Hi R Gurus! I have a package that I am putting together. I waited until the end to do the documentation and would like

[R] structure vs. matrix

2007-11-03 Thread Edna Bell
Hi R Gurus! When creating a matrix, is it better to use the structure function or the matrix function, please? Thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] [OT] vista question

2007-11-02 Thread Edna Bell
This is way off topic, but I'll try: On a windows vista machine, how can you run commands from the command prompt as administrator, please? tia __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] strsplit

2007-10-21 Thread Edna Bell
Hello R Gurus: I would like to take a character string and split at the $ sign. I thought that strsplit would do it, but here are the results: vv [1] whine$ts1 vv [1] whine$ts1 strsplit(vv,$) [[1]] [1] whine$ts1 Does anyone have any suggestions, please? Thanks, Edna Bell

[R] building packages on Windows

2007-10-01 Thread Edna Bell
Hi again. I'm sure that this is really simple. I'm trying to build a package on a Windows Vista machine. I use Rcmd build --binary test but I get the Please set TMPDIR to a valid temporary directory I tried TMPDIR=c:\temp but to no avail. Please help. thanks

[R] fuzzy logic

2007-09-24 Thread Edna Bell
Hi R Gurus! Is there a fuzzy logic package please? Thanks, Edna Bell __ 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

[R] Converting zoo dates to ts dates

2007-09-17 Thread Edna Bell
Hi R Gurus I'm using get.hist.quote to obtain monthly historical data. This results in a zoo series. I would like to convert the zoo series to a time series within a function. How do I get the starting date for the ts from the zoo series, please? Thanks, Edna Bell