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 sprintf("@sectio

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

2019-04-21 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, but

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

2019-04-21 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 @e

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 w

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 e

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 pe

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, 0.00,0.0033,0.0009,0.0025,0.0653,0.1142,0.2872,

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 materia

[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 https://stat.ethz.ch/mailman/li

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 crea

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 region

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 combinati

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) requ

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 specific example that might

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) set.s

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 please point me to an ex

[R] example of geom_contour() with function argument

2017-10-08 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 --- H

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. This is an issue that we've de

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 graphi

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 on

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 or did without code. > > B

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 rota

[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 fo

[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 and

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] http://stackoverflow.com/questions/8683046/compatibility-of-dll-a-lib-def-between-visualstu

[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 file

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

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-standa

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 Lum

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

2014-12-30 Thread Anthony Damico
amhsa.hhs.gov> 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.

[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 will be

Re: [R] R Example scripts

2014-04-23 Thread William Dunlap
riginal Message- > 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 Leyn

Re: [R] R Example scripts

2014-04-22 Thread Gene Leynes
/home/bsm-1 On Sat, Apr 19, 2014 at 6:12 AM, Duncan Murdoch 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 >> tim

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] 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 unsup

Re: [R] example

2013-04-27 Thread John Kane
nal 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

[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 di

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

2013-04-01 Thread Paul Johnson
(y ~ poly(x, 2)) > lm(y ~ poly(x, 3)) > > # however, that is not true if you don't use orthogonal polynomials. > Compare these two: > lm(y ~ poly(x, 2, raw = TRUE)) > lm(y ~ poly(x, 3, raw = TRUE)) > > Thanks, Gabor: As usual, you are very helpful. I can't thank you

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

2013-04-01 Thread William Dunlap
-2.24 95 2013-04-01 01:35:00 -4.94 1364805300 -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, Apri

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 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 formulas. > > I thi

[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 numericall

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:Basics: ##.#. ##.#. Live Go...

[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 http://www.R-project.org/posting

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' wa

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

2011-10-26 Thread Gabor Grothendieck
On Wed, Oct 26, 2011 at 12:21 AM, hchui 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", "02/27/92", "

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

2011-10-25 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> dt

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 I

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

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 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 develo

Re: [R] example package for devel newcomers

2011-07-31 Thread Joshua Wiley
On Sun, Jul 31, 2011 at 2:05 PM, Alexandre Aguiar 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, but then I also used Dr.

[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 digita

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] LC_MONETAR

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 LC_MESSA

[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 <- compare.data

[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 <- compare.data

[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 remove

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 P

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

2011-02-11 Thread John Fox
t.org > Subject: [R] R example code of Split-plot Manova > > 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

Re: [R] Example in " Applied Spatial Analysis with R" giving error

2011-01-01 Thread Ben Bolker
markdx 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") :

[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?

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

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 hel

[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] 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 thi

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 behavior

[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: > getOption("exampl

[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

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 packa

[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) small$day=facto

Re: [R] Example scripts for R Manual

2009-08-10 Thread Gene Leynes
Have you tried running the examples? Eg: example(lm) On Monday, August 10, 2009, Peng Yu 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 can make the man

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 is

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 Huang wrote: > Is i

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 : > 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

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 Yu 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 examples in an read

[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? ht

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 . xmlRoot(bri) gives us the C node. xmlSApply(node, f) is short-hand for sapply(xmlChildren(node), f) so that is where we

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 . Is there any way to also access the fields that are in the heirarchy? (ie the S, D, C, and F) I wouldn't necessarily want those repeated thousands

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 ri

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 ty

[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 (prefer

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: #ff9

[R] example of panel data in R

2009-03-09 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 e

[R] example of using loess()

2009-01-03 Thread cruz
Hi, I have read ?loess help page and did some google on loess, however there are insufficient information on weighted variance. I am wondering that if any of you know of an example or document on weighted variance using loess (), especially for the cases when more than one explanatory variable is

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 func

[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 - 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 > "2007-

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 "2007-02-0

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? 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 Duncan Temple Lang wrote: Hi Zubin. The first thing is to send us a link to the schema that the

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 a

[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 s

[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 s

[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, > > >

[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) :