Re: [R] Example for Roxygen @eval tag?

2019-04-22 Thread Duncan Murdoch
On 22/04/2019 2:40 a.m., Boris Steipe wrote: I see .. you mean code that extends Roxygen. I was thinking something simple like an .Rmd chunk. But just creating an existing tag doesn't do much either: #' @eval sprintf("@section Time: %s", Sys.time() ) Renders as... @eval

Re: [R] Example for Roxygen @eval tag?

2019-04-22 Thread Boris Steipe
I see .. you mean code that extends Roxygen. I was thinking something simple like an .Rmd chunk. But just creating an existing tag doesn't do much either: #' @eval sprintf("@section Time: %s", Sys.time() ) Renders as... @eval sprintf("@section Time: ... in the .Rd - more than before,

Re: [R] Example for Roxygen @eval tag?

2019-04-22 Thread Jeff Newmiller
What tag are you creating with the eval? Your example wouldn't create valid roxygen code... as I said, it looks rather meta On April 21, 2019 10:40:27 PM PDT, Boris Steipe wrote: >Yes, that's where I started - the vignette says: > >... Run arbtirary R code with @eval. > >... the

Re: [R] Example for Roxygen @eval tag?

2019-04-21 Thread Boris Steipe
Yes, that's where I started - the vignette says: ... Run arbtirary R code with @eval. ... the @eval tag. It evaluates code and treats the result as if it was a literal roxygen tags. This makes it possible to eliminate duplication by writing functions. The first thing I noticed

Re: [R] Example for Roxygen @eval tag?

2019-04-21 Thread Jeff Newmiller
I have not used it... but did you read the vignette [1]? It sounds like it is a bit more meta than you think it is... [1] https://cran.r-project.org/web/packages/roxygen2/vignettes/rd.html On April 21, 2019 7:44:17 PM PDT, Boris Steipe wrote: >Playing with Roxygen features, but can't get @eval

[R] Example for Roxygen @eval tag?

2019-04-21 Thread Boris Steipe
Playing with Roxygen features, but can't get @eval to work. E.g. ... #' @eval sprintf("%s", Sys.time()) ... does not do what I thought it would (i.e. substitute the tag and the expression with the string). Instead I see nothing in the .RD file. Any working examples out there? Thanks! Boris

Re: [R] EXAMPLE OF HOW TO USE R FOR EXPONENTIAL DISTRIBUTION & EXPONENTIAL REGRESSION

2018-11-27 Thread Tolulope Adeagbo
Thank you for the clarification. I'll share a function I got tomorrow morning. Regards On Tue, 27 Nov 2018, 18:38 Bert Gunter, wrote: > ... but do note that a nonlinear fit to the raw data will give a(somewhat) > different result than a linear fit to the transformed data. In the former, > the

Re: [R] EXAMPLE OF HOW TO USE R FOR EXPONENTIAL DISTRIBUTION & EXPONENTIAL REGRESSION

2018-11-27 Thread Bert Gunter
... but do note that a nonlinear fit to the raw data will give a(somewhat) different result than a linear fit to the transformed data. In the former, the errors are additive and in the latter they are multiplicative. Etc. Cheers, Bert Bert Gunter "The trouble with having an open mind is that

Re: [R] EXAMPLE OF HOW TO USE R FOR EXPONENTIAL DISTRIBUTION & EXPONENTIAL REGRESSION

2018-11-27 Thread Sarah Goslee
Hi, Please also include R-help in your replies - I can't provide one-on-one tutorials. Without knowing where you got your sample code, it's hard to help. But what are you trying to do? It doesn't have to be that complicated: x <- 1:10 y <- c(0.00,

Re: [R] EXAMPLE OF HOW TO USE R FOR EXPONENTIAL DISTRIBUTION & EXPONENTIAL REGRESSION

2018-11-27 Thread Sarah Goslee
Hi, Using rseek.org to search for exponential regression turns up lots of information, as does using Google. Which tutorials have you worked thru already, and what else are you looking for? Sarah On Tue, Nov 27, 2018 at 5:44 AM Tolulope Adeagbo wrote: > Good day, > Please i nee useful

[R] EXAMPLE OF HOW TO USE R FOR EXPONENTIAL DISTRIBUTION & EXPONENTIAL REGRESSION

2018-11-27 Thread Tolulope Adeagbo
Good day, Please i nee useful materials to understand how to use R for exponential regression. Many thanks. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] example of geom_contour() with function argument

2017-10-10 Thread Ranjan Maitra
Here is an alternative using geom_polygon which captures the "spirit" of the fatter tails of the multivariate t (in my opinion, because the display is quantile-based). Note that I have modified the OP's question somewhat to use non-identity matrices. I do came up with a few questions while

Re: [R] example of geom_contour() with function argument

2017-10-09 Thread Big Floppy Dog
Thank you very much! So, it appears that a grid has to be created for the function to be used in stat_contour(). Thanks again for this example! It is very helpful (and could be a worthwhile addition to geom_contour's help example). Btw, I was also trying to make the contour plot have shaded

Re: [R] example of geom_contour() with function argument

2017-10-09 Thread jdnewmil
library(mvtnorm) # you were misusing "require"... only use require if you plan to library(ggplot2) # test the return value and fail gracefully when the package is missing set.seed( 1234 ) xx <- data.frame( rmvt( 100, df = c( 13, 13 ) ) ) xx2 <- expand.grid( X1 = seq( -5, 5, 0.1 ) # all

Re: [R] example of geom_contour() with function argument

2017-10-09 Thread Big Floppy Dog
Hi, This is not a HW problem, sadly: I was last in a classroom 30 years ago, and can no longer run off to the instructor :-( I apologize but I cut and paste the wrong snippet earlier and made a typo in doing so, but the result is the same with the more appropriate snippet. require(mvtnorm)

Re: [R] example of geom_contour() with function argument

2017-10-09 Thread David Winsemius
> On Oct 9, 2017, at 6:03 AM, Big Floppy Dog wrote: > > Hello Ulrik, > > I apologize, but I can not see how to provide a pdf in place of the density > function which calculates a KDE (that is, something from the dataset in the > example). Can you please point to the

Re: [R] example of geom_contour() with function argument

2017-10-09 Thread Big Floppy Dog
Hello Ulrik, I apologize, but I can not see how to provide a pdf in place of the density function which calculates a KDE (that is, something from the dataset in the example). Can you please point to the specific example that might help? Here is what I get: require(mvtnorm) require(ggplot2)

Re: [R] example of geom_contour() with function argument

2017-10-09 Thread Ulrik Stervbo
Hi BFD, ?geom_contour() *does* have helpful examples. Your Google-foo is weak: Searching for geom_contour brought me: http://ggplot2.tidyverse.org/reference/geom_contour.html as the first result. HTH Ulrik On Mon, 9 Oct 2017 at 08:04 Big Floppy Dog wrote: > Can someone

[R] example of geom_contour() with function argument

2017-10-09 Thread Big Floppy Dog
Can someone please point me to an example with geom_contour() that uses a function? The help does not have an example of a function, and also I did not find anything from online searches. TIA, BFD ---

Re: [R] Example of the use of the "crt" graphical parameter?

2017-05-01 Thread Michael Hannon
Bendy like spaghetti :-) Thanks, Jim. I wasn't aware of plotrix, and it does seem to be a cornucopia of useful, graphical stuff. In this case, my quest for rotating characters stemmed from what you might call a PHB request that I was eventually able to work around. I posed my original question

Re: [R] Example of the use of the "crt" graphical parameter?

2017-05-01 Thread Jim Lemon
Hi Michael, The arctext function (plotrix) does something similar, and the code could be modified to do what you request. If you do want a working function, it wouldn't be too hard to program. Jim On Tue, May 2, 2017 at 6:57 AM, Michael Hannon wrote: > Hi, folks.

Re: [R] Example of the use of the "crt" graphical parameter?

2017-05-01 Thread William Dunlap via R-help
Perhaps R does what S+ does with par("crt"). S+'s help(par) says: crt=x character rotation in degrees measured counterclockwise from horizontal. When srt is set, crt is automatically set to the same value, unless crt appears later in the command than srt. Many

Re: [R] Example of the use of the "crt" graphical parameter?

2017-05-01 Thread Bert Gunter
FWIW: "srt = 90" should rotate the whole string "aa" 90 degrees in a call to text(), and it does. I interpret "crt =90" to rotate the individual letters of "aa" 90 degrees, but it does not on my graphic device, RStudioGD. It probably works on some other devices, but I don't know which

Re: [R] Example of the use of the "crt" graphical parameter?

2017-05-01 Thread Michael Hannon
Thanks, Bert. I *did* mean crt, and I did read (and re-read) the man page. What I'm lacking, and the only thing I'm asking for, is a working example of the use of that parameter. -- Mike On Mon, May 1, 2017 at 2:08 PM, Bert Gunter wrote: > Hard to know what you want

Re: [R] Example of the use of the "crt" graphical parameter?

2017-05-01 Thread Bert Gunter
Hard to know what you want or did without code. But, a guess: did you want the "srt" parameter and not "crt"? Of course, it's always useful to read the man page, in this case for ?par, where it says: (for crt): "A numerical value specifying (in degrees) how **single characters** should be

[R] Example of the use of the "crt" graphical parameter?

2017-05-01 Thread Michael Hannon
Hi, folks. This is an issue that we've defined away, but I recently thought it would be useful to rotate characters in some marginal text in a base-R plot. I made a few stabs on using the "crt" parameter but was unsuccessful. I'm deliberately omitting details of my attempts, as I want just to

[R] Example for multivariate hawkes distribution

2016-07-28 Thread Ramkishore Swaminathan
Hi, I have a list of N categories that a user can click on. Lets say there are K such users totally. I have the past 3 months data which tells which user has clicked on which category on which date for how many times. For ex - {20th June 2016 : [10,15,12,15]} this dict is for a particular user

[R] Example of Calling a DLL

2015-02-20 Thread Alex Restrepo
All, I'm a newbie to R and am interested in seeing a simple example of calling a 3rd party Visual Studio generated DLL from RStudio. Does anyone have a simple example which also walks through the preliminary steps of setting up the INCLUDE path and the library path to either a DLL or LIB

Re: [R] Example of Calling a DLL

2015-02-20 Thread Jeff Newmiller
This is off-topic here (read the posting guide). You would probably proceed most effectively by studying how GCC interacts with VS object code, e.g. [1], and studying the Writing R Extensions manual. [1]

Re: [R] R example codes for direct standardization of rates

2015-01-07 Thread Therneau, Terry M., Ph.D.
/technical-reports http://www.mayo.edu/research/departments-divisions/department-health-sciences-research/division-biomedical-statistics-informatics/technical-reports Terry Therneau -- begin included message --- I am looking for R example codes to compute age-standardized death

Re: [R] R example codes for direct standardization of rates

2015-01-07 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
PM To: Muhuri, Pradip (SAMHSA/CBHSQ); r-help@R-project.org Subject: Re: R example codes for direct standardization of rates The pyears() and survexp() routines in the survival package are designed for these calculations. See the technical report #63 of the Mayo Biostat group for examples http

[R] R example codes for direct standardization of rates (Reference: Thoma's Lumley's survey package)

2014-12-30 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hello, I am looking for R example codes to compute age-standardized death rates by smoking and psychological distress status using person-years of observation created from the National Health Interview Survey Linked Mortality Files. Any help with the example codes or references

Re: [R] R example codes for direct standardization of rates (Reference: Thoma's Lumley's survey package)

2014-12-30 Thread Anthony Damico
wrote: Hello, I am looking for R example codes to compute age-standardized death rates by smoking and psychological distress status using person-years of observation created from the National Health Interview Survey Linked Mortality Files. Any help with the example codes or references

Re: [R] R example codes for direct standardization of rates (Reference: Thoma's Lumley's survey package)

2014-12-30 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Rockville, MD 20857 Tel: 240-276-1070 Fax: 240-276-1260 From: Anthony Damico [mailto:ajdam...@gmail.com] Sent: Tuesday, December 30, 2014 3:01 PM To: Muhuri, Pradip (SAMHSA/CBHSQ) Cc: r-help@r-project.org Subject: Re: [R] R example codes for direct standardization of rates (Reference: Thoma's Lumley's

Re: [R] R Example scripts

2014-04-23 Thread William Dunlap
- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Saturday, April 19, 2014 4:12 AM To: gleyne...@gmail.com; r-help Subject: Re: [R] R Example scripts On 18/04/2014, 6:07 PM, Gene Leynes wrote: A few years ago R changed the way help

Re: [R] R Example scripts

2014-04-22 Thread Gene Leynes
, 2014 at 6:12 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 18/04/2014, 6:07 PM, Gene Leynes wrote: A few years ago R changed the way help was handled so that the HTML files are no longer available in the library directory. Around that time the R example files that used to be in some

Re: [R] R Example scripts

2014-04-19 Thread Duncan Murdoch
On 18/04/2014, 6:07 PM, Gene Leynes wrote: A few years ago R changed the way help was handled so that the HTML files are no longer available in the library directory. Around that time the R example files that used to be in some of the libraries also vanished. I'm wondering where the r-ex

[R] R Example scripts

2014-04-18 Thread Gene Leynes
A few years ago R changed the way help was handled so that the HTML files are no longer available in the library directory. Around that time the R example files that used to be in some of the libraries also vanished. I'm wondering where the r-ex folder went. Is it totally unsupported and gone

Re: [R] example

2013-04-27 Thread John Kane
Message- From: triutami@gmail.com Sent: Sat, 27 Apr 2013 01:38:23 +0700 To: r-help@r-project.org Subject: [R] example Dear Sir, My name is Iut Tri Utami. i am beginning user. I have a problem about generate data in R. It consists of one disk generated by a Gaussian N(0, 0.167) and one

[R] example

2013-04-26 Thread Iut Tri Utami
Dear Sir, My name is Iut Tri Utami. i am beginning user. I have a problem about generate data in R. It consists of one disk generated by a Gaussian N(0, 0.167) and one ring generated by a Gaussian N(R, 0.1). The mean R was generated from its polar coordinates. The angle was drawn from a uniform

[R] example to demonstrate benefits of poly in regression?

2013-04-01 Thread Paul Johnson
Here's my little discussion example for a quadratic regression: http://pj.freefaculty.org/R/WorkingExamples/regression-quadratic-1.R Students press me to know the benefits of poly() over the more obvious regression formulas. I think I understand the theory on why poly() should be more

Re: [R] example to demonstrate benefits of poly in regression?

2013-04-01 Thread Gabor Grothendieck
On Mon, Apr 1, 2013 at 1:20 PM, Paul Johnson pauljoh...@gmail.com wrote: Here's my little discussion example for a quadratic regression: http://pj.freefaculty.org/R/WorkingExamples/regression-quadratic-1.R Students press me to know the benefits of poly() over the more obvious regression

Re: [R] example to demonstrate benefits of poly in regression?

2013-04-01 Thread William Dunlap
-4.94 Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Paul Johnson Sent: Monday, April 01, 2013 10:21 AM To: R-help Subject: [R] example to demonstrate benefits

Re: [R] example to demonstrate benefits of poly in regression?

2013-04-01 Thread Paul Johnson
helpful. I can't thank you enough. I'm pasting your comments to the end of that R example file I mentioned before, changing the examples to fit with the variable names I use there. I think your reason #2 is the prize winner, I can't see anything wrong with that one. Reason #1 is not quite

[R] Example metropolis hasting

2012-11-29 Thread Tania
Hello all, could you tell where is an example of metropolis hasting? Thank you! Tania Sent from my iPod __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Example metropolis hasting

2012-11-29 Thread Jeff Newmiller
At the R prompt, type RSiteSearch(metropolis Hastings) and catch your own fish. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#.

Re: [R] Example(chron) doesn't work

2011-10-26 Thread hchui
Hi, there, I have a similar problem. The chron example gives NA. dates doesn't work but times does. I would appreciate it if there's a fix for it. Thanks, Helena example(chron) chron dts - dates(c(02/27/92, 02/27/92, 01/14/92, chron+02/28/92, 02/01/92)) chron dts [1] NA NA

Re: [R] Example(chron) doesn't work

2011-10-26 Thread Gabor Grothendieck
On Wed, Oct 26, 2011 at 12:21 AM, hchui helena.c...@flinders.edu.au wrote: Hi, there, I have a similar problem. The chron example gives NA. dates doesn't work but times does. I would appreciate it if there's a fix for it. Thanks, Helena example(chron) chron dts - dates(c(02/27/92,

Re: [R] Example(chron) doesn't work

2011-10-26 Thread hchui
It works with Rgui vanilla, R version 2.13.1. I'll check it again when I install R version 2.13.2. Many thanks! C:\\Program Files\\R\\R-2.13.1\\bin\\x64\\Rgui.exe --vanilla [1] C:\\Program Files\\R\\R-2.13.1\\bin\\x64\\Rgui.exe --vanilla library(chron) Warning message: package 'chron' was

Re: [R] example package for devel newcomers

2011-08-01 Thread Brian Diggs
On 7/31/2011 6:24 PM, Alexandre Aguiar wrote: Em Domingo 31 Julho 2011, você escreveu: My memory is that this question gets asked every few months and one of the stock answers is to use the function 'package.skeleton' in the utils package as a starting point. Got that from docs. And actually

[R] example package for devel newcomers

2011-07-31 Thread Alexandre Aguiar
Hi, I'd like to know whether there is a package (or more, of course) regarded as a good example that could be used also as an instructional tool for newcomers to R extensions development. Thanks. -- Alexandre -- Alexandre Santos Aguiar, MD, SCT signature.asc Description: This is a

Re: [R] example package for devel newcomers

2011-07-31 Thread Joshua Wiley
On Sun, Jul 31, 2011 at 2:05 PM, Alexandre Aguiar asagu...@spsconsultoria.com wrote: Hi, I'd like to know whether there is a package (or more, of course) regarded as a good example that could be used also as an instructional tool for newcomers to R extensions development. I used/use SoDA,

Re: [R] example package for devel newcomers

2011-07-31 Thread David Winsemius
On Jul 31, 2011, at 5:11 PM, Joshua Wiley wrote: On Sun, Jul 31, 2011 at 2:05 PM, Alexandre Aguiar asagu...@spsconsultoria.com wrote: Hi, I'd like to know whether there is a package (or more, of course) regarded as a good example that could be used also as an instructional tool for

Re: [R] example package for devel newcomers

2011-07-31 Thread Alexandre Aguiar
Em Domingo 31 Julho 2011, você escreveu: My memory is that this question gets asked every few months and one of the stock answers is to use the function 'package.skeleton' in the utils package as a starting point. Got that from docs. And actually I already have most of the code written. My

[R] example for plot.compare.datasets() in package rioja fails

2011-07-29 Thread Jason Paul Joines
I'm using rioja 0.5-6 with R 2.12.1 / x86_64-pc-linux-gnu on Kubuntu 11.04. When I run this example from the rioja reference manual: library(rioja) # compare diatom data from core from Round Loch of Glenhead # with SWAP surface sample dataset data(RLGH) data(SWAP) result -

[R] example for plot.compare.datasets() in package rioja fails

2011-07-29 Thread Jason Paul Joines
I'm using rioja 0.5-6 with R 2.12.1 / x86_64-pc-linux-gnu on Kubuntu 11.04. When I run this example from the rioja reference manual: library(rioja) # compare diatom data from core from Round Loch of Glenhead # with SWAP surface sample dataset data(RLGH) data(SWAP) result -

Re: [R] example for plot.compare.datasets() in package rioja fails

2011-07-29 Thread Sarah Goslee
I get the same error on a clean R session with rioja 0.5-6. sessionInfo() R version 2.13.1 (2011-07-08) Platform: x86_64-redhat-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=C

Re: [R] example for plot.compare.datasets() in package rioja fails

2011-07-29 Thread Jason Paul Joines
Sarah Goslee wrote: I get the same error on a clean R session with rioja 0.5-6. sessionInfo() R version 2.13.1 (2011-07-08) Platform: x86_64-redhat-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 [5]

[R] [example code] RE: AIC() vs. mle.aic() vs. step()?

2011-06-23 Thread Alexandra Thorn
Ok, here's some example code showing how I get different output for AIC vs. mle.aic(). Now that I've taken another look at the independent variables, I'm wondering whether missing values in one of the variables might be what is messing me up. I'm going to see if the behavior changes when I

Re: [R] R example code of Split-plot Manova

2011-05-18 Thread riccardo
this message in context: http://r.789695.n4.nabble.com/R-example-code-of-Split-plot-Manova-tp1593985p3532630.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] R example code of Split-plot Manova

2011-02-11 Thread John Fox
Dear Xiang Gao, See the OBrienKaiser example in ?Anova in the car package. I hope this helps, John -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Xiang Gao Sent: March-15-10 4:35 PM To: r-help@r-project.org Subject: [R] R

[R] Example in Applied Spatial Analysis with R giving error

2011-01-01 Thread markdx
Example from page 29, Chapter 2.3 from Applied Spatial Analysis with R I am new to R...just trying to replicate the example from the book. m - matrix(c(0,0,1,1), ncol = 2, dimnames = list(NULL, + c (min, max))) Error in +c(min, max) : invalid argument to unary operator Thoughts? -- View

Re: [R] Example in quot; Applied Spatial Analysis with Rquot; giving error

2011-01-01 Thread Ben Bolker
markdx mrkdennehy at gmail.com writes: Example from page 29, Chapter 2.3 from Applied Spatial Analysis with R I am new to R...just trying to replicate the example from the book. m - matrix(c(0,0,1,1), ncol = 2, dimnames = list(NULL, + c (min, max))) Error in +c(min, max) : invalid

Re: [R] Example function for bigglm (biglm) data input from file

2010-05-25 Thread stephenb
Richard, do you have an example for an ODBC connection? Thank you Stephen -- View this message in context: http://r.789695.n4.nabble.com/R-Example-function-for-bigglm-biglm-data-input-from-file-tp816496p2230710.html Sent from the R help mailing list archive at Nabble.com

[R] R example code of Split-plot Manova

2010-03-15 Thread Xiang Gao
Hi, Urgent help- I have not been using R and statistics in my research for a long time, but still remember some concept. I would like to have a sample code for Manova analysis of Split-plot experiment. Could someone please post a sample code and a short input sample as well? Thank you so much!

Re: [R] R example code of Split-plot Manova

2010-03-15 Thread John Fox
/jfox -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Xiang Gao Sent: March-15-10 4:35 PM To: r-help@r-project.org Subject: [R] R example code of Split-plot Manova Hi, Urgent help- I have not been using R and statistics

[R] example() leaves console prompting to press Enter for new graphs

2010-01-11 Thread Michael Friendly
Env: Win XP, R 2.9.2] It's a minor annoyance, but I find that after I run example(), the console state of prompting to press Enter for each new graph remains as it is under example. It's more annoying that it seems difficult to turn this behavior off! In a fresh session:

Re: [R] example() leaves console prompting to press Enter for new graphs

2010-01-11 Thread Duncan Murdoch
On 11/01/2010 9:28 AM, Michael Friendly wrote: Env: Win XP, R 2.9.2] It's a minor annoyance, but I find that after I run example(), the console state of prompting to press Enter for each new graph remains as it is under example. It's more annoying that it seems difficult to turn this

Re: [R] example() leaves console prompting to press Enter for new graphs

2010-01-11 Thread David Winsemius
On Jan 11, 2010, at 9:28 AM, Michael Friendly wrote: Env: Win XP, R 2.9.2] It's a minor annoyance, but I find that after I run example(), the console state of prompting to press Enter for each new graph remains as it is under example. It's more annoying that it seems difficult to turn

[R] R example for ancova

2009-12-05 Thread syrvn
Hi list, does anybody know a easy to understand example in R which shows how to perfom an ANCOVA? I already tried to understand the example which you get when you type ?aov, but I did not really understand the output. Best, syrvn -- View this message in context: http://n4.nabble.com/R

[R] Example data for analysis of a highly pseudoreplicate mixed-effects experiment

2009-09-16 Thread Matthias Gralle
Hello everybody, it may be better to have sample data. I have provided data with less levels of gene and day and only ca. 400 data points per condition. Sample code: small=as.data.frame(read.csv(small.csv)) small$species=factor(small$species) small$gene=factor(small$gene)

Re: [R] Example data for analysis of a highly pseudoreplicate mixed-effects experiment

2009-09-16 Thread Matthias Gralle
There were some wrong NA values in the provided data set, this is now corrected. The data can be read in as small=read.csv(small.csv,colClasses=c(character,rep(integer,2),rep(factor,5))) The high number of residual df can be seen using the nlme package (can it be seen in the lme4 package, too

Re: [R] Example scripts for R Manual

2009-08-11 Thread Gene Leynes
Have you tried running the examples? Eg: example(lm) On Monday, August 10, 2009, Peng Yu pengyu...@gmail.com wrote: Some examples in the manual are not in the context. In order to use such examples, the users have to set up the variables in the examples. Adding accompany scripts to the manuals

[R] Example scripts for R Manual

2009-08-10 Thread Peng Yu
Hi, I am wondering if some experienced users would help put the ready-to-run code of the examples in the manuals. It would help new users learn R faster by putting all the examples in an ready-to-run R script file. Can somebody help do so sometime and post the code along with the pdf manuals?

Re: [R] Example scripts for R Manual

2009-08-10 Thread stephen sefick
Why not you? Are the examples not in the text? On Mon, Aug 10, 2009 at 4:57 PM, Peng Yupengyu...@gmail.com wrote: Hi, I am wondering if some experienced users would help put the ready-to-run code of the examples in the manuals. It would help new users  learn R faster by putting all the

Re: [R] Example scripts for R Manual

2009-08-10 Thread Ronggui Huang
Is it really necessary? You can just copy the commands in the manual and paste them to R. Ronggui 2009/8/11 Peng Yu pengyu...@gmail.com: Hi, I am wondering if some experienced users would help put the ready-to-run code of the examples in the manuals. It would help new users  learn R faster

Re: [R] Example scripts for R Manual

2009-08-10 Thread Peng Yu
Some examples in the manual are not in the context. In order to use such examples, the users have to set up the variables in the examples. Adding accompany scripts to the manuals can make the manuals more reader friendly. Regards, Peng On Mon, Aug 10, 2009 at 10:20 PM, Ronggui

Re: [R] Example scripts for R Manual

2009-08-10 Thread Prof Brian Ripley
Which manuals exactly? Runnable scripts for R-intro and R-exts are in the doc/manuals directory of the R sources, alongside those manuals. If you got a binary version of R, see https://svn.r-project.org/R/trunk/doc/manual/ They are part of the test suite: no one else has suggested that it

Re: [R] Example for parsing XML file?

2009-05-21 Thread Brigid Mooney
Thanks! That helps a lot! A quick follow-up question - I can't really tell what part of the commands tell it to only look at the child nodes of C. Is there any way to also access the fields that are in the C heirarchy? (ie the S, D, C, and F) I wouldn't necessarily want those repeated

Re: [R] Example for parsing XML file?

2009-05-21 Thread Duncan Temple Lang
Brigid Mooney wrote: Thanks! That helps a lot! A quick follow-up question - I can't really tell what part of the commands tell it to only look at the child nodes of C. xmlRoot(bri) gives us the C node. xmlSApply(node, f) is short-hand for sapply(xmlChildren(node), f) so that is where

[R] Example for parsing XML file?

2009-05-20 Thread Brigid Mooney
Hi, I am trying to parse XML files and read them into R as a data frame, but have been unable to find examples which I could apply successfully. I'm afraid I don't know much about XML, which makes this all the more difficult. If someone could point me in the right direction to a resource

Re: [R] Example for parsing XML file?

2009-05-20 Thread Duncan Temple Lang
Hi Brigid. Here are a few commands that should do what you want: bri = xmlParse(myDataFile.xml) tmp = t(xmlSApply(xmlRoot(bri), xmlAttrs))[, -1] dd = as.data.frame(tmp, stringsAsFactors = FALSE, row.names = 1:nrow(tmp)) And then you can convert the columns to whatever

Re: [R] Example for parsing XML file?

2009-05-20 Thread Wacek Kusnierczyk
Brigid Mooney wrote: Hi, I am trying to parse XML files and read them into R as a data frame, but have been unable to find examples which I could apply successfully. I'm afraid I don't know much about XML, which makes this all the more difficult. If someone could point me in the right

[R] example of panel data in R

2009-03-10 Thread 정승환
.Bold { font-weight: bold; } .Title { font-weight: bold; font-size: 18px; color: #cc3300; } .Code { border: #8b4513 1px solid; padding-right: 5px; padding-left: 5px;color: #66; font-family: 'Courier New' , Monospace;background-color: #ff9933; } I'm studing about the panel data. Can i find a

Re: [R] example of panel data in R

2009-03-10 Thread Daniel Malter
-project.org Betreff: [R] example of panel data in R .Bold { font-weight: bold; } .Title { font-weight: bold; font-size: 18px; color: #cc3300; } .Code { border: #8b4513 1px solid; padding-right: 5px; padding-left: 5px;color: #66; font-family: 'Courier New' , Monospace;background-color: #ff9933; } I'm

[R] example of gladeXML - RGtk2

2008-12-08 Thread Cleber Nogueira Borges
hello all, where I find a example or tutorial of RGtk2 package? I would like to know about the gladeXML functions in R. thanks in advance Cleber Borges __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] example of gladeXML - RGtk2

2008-12-08 Thread Michael Lawrence
A good example of using glade with RGtk2 is the rattle package. See: http://rattle.togaware.com/ On Mon, Dec 8, 2008 at 8:15 AM, Cleber Nogueira Borges [EMAIL PROTECTED]wrote: hello all, where I find a example or tutorial of RGtk2 package? I would like to know about the gladeXML functions

Re: [R] example - export a data frame to an XML file

2008-09-30 Thread zubin
Yes! This is perfect, Paul - thank you very much. -zubin Paul Murrell wrote: Hi Is this what you are after ... ? data - read.csv(textConnection('date,UYG.Open,UYG.High,UYG.Low,UYG.Close,UYG.Volume,UYG.Adjusted 2007-02-01,71.32,71.34,71.32,71.34,200,69.23

Re: [R] example - export a data frame to an XML file

2008-09-29 Thread zubin
Duncan, thanks for the note - the schema looks like this - is this what your asking for? document row date2007-02-01/date UYG_Open71.32/UYG_Open UYG_High71.34/UYG_High UYG_Low71.32/UYG_Low UYG_Close71.34/UYG_Close UYG_Volume200/UYG_Volume UYG_Adjusted69.23/UYG_Adjusted /row row

Re: [R] example - export a data frame to an XML file

2008-09-29 Thread Paul Murrell
Hi Is this what you are after ... ? data - read.csv(textConnection('date,UYG.Open,UYG.High,UYG.Low,UYG.Close,UYG.Volume,UYG.Adjusted 2007-02-01,71.32,71.34,71.32,71.34,200,69.23 2007-02-02,72.2,72.2,72.2,72.2,200,70.06 2007-02-05,71.76,71.76,71.76,71.76,5100,69.63

[R] example - export a data.frame to an XML file

2008-09-28 Thread zubin
In need of exporting an XML file from R, I scrub some data in R and push the data into another application requiring XML. The data set is a very straightforward data frame of stock prices- see below. I know the package XML is the one to use, but need an example or some direction on where to

[R] example - export a data frame to an XML file

2008-09-28 Thread zubin
In need of exporting an XML file from R, I scrub some data in R and push the data into another application requiring XML. The data set is a very straightforward data frame of stock prices- see below. I know the package XML is the one to use, but need an example or some direction on where to

Re: [R] example - export a data frame to an XML file

2008-09-28 Thread Duncan Temple Lang
Hi Zubin. The first thing is to send us a link to the schema that the other application expects. That would give us a one-to-one mapping; otherwise, data.frame to arbitrary XML is to vague. Currently, there is nothing in the XML package that would be able to take an XML schema and write an

[R] Example on Maximum likelihood estimation using R

2008-09-05 Thread VincentLee
Hi all, I am very new to R too, but I read that R is powerful. May I know given a set of data, are there any simple examples on using mle() to estimate parameters of a lognormal and weibull distribution ? Hope to hear from you soon. Thank you Vincent Ravi Varadhan wrote: Hi, You

[R] example from arfimaOxFit

2008-06-18 Thread Chang, Li-Wei
Hi, I got some problem running the example of arfimaOxFit. The first three line of the examples I run are: library(Rmetrics) x = armaSim(model = list(ar = c(0.5, - 0.5), d = 0.3, ma = 0.1), n = 500) fit = arfimaOxFit(formula = x ~ arfima(2,1)) The error msg is: Error in eval(expr, envir, enclos)