[R] Coda: On the efficiency of unsplit() for Rolf Turner's recent post

2024-10-06 Thread Bert Gunter
data. Cheers to all, Bert [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.

Re: [R] Time series data decomposition from by minute data

2024-10-06 Thread roslinazairimah zakaria
; decompose(dt_train, type = "multiplicative", filter = NULL)Error in >> decompose(dt_train, type = "multiplicative", filter = NULL) : >> time series has no or less than 2 periods >> >> >> > stl(dt_train, s.window = "periodic")Error

Re: [R] apply

2024-10-04 Thread Richard O'Keefe
homework problem, it's so artificial.) On Sat, 5 Oct 2024 at 01:41, Ivan Krylov via R-help wrote: > > В Fri, 4 Oct 2024 20:28:01 +0800 > Steven Yen пишет: > > > Suppose I have two vectors, x and y. Is there a way > > to do the covariance matrix with “apply”. > > The

Re: [R] apply

2024-10-04 Thread Rolf Turner
On Fri, 04 Oct 2024 11:16:45 -0700 Jeff Newmiller via R-help wrote: > Even if this is not a homework question, it smells like one. If you > read the Posting Guide it warns you that homework is off-topic, so > when you impose an arbitrary constraint like "must use specific > u

Re: [R] apply

2024-10-04 Thread Jeff Newmiller via R-help
>On 10/4/2024 4:57 PM, Uwe Ligges wrote: >> Homework questions are not answered on this list. >> >> Best, >> Uwe Ligges >> >> >> >> On 04.10.2024 10:32, Steven Yen wrote: >>> The following line calculates standard deviations of a column ve

Re: [R] apply

2024-10-04 Thread Steven Yen
t;-apply(dd,1,sd) >> >> How can I calculate the covariance matrix using apply? Thanks. >> >> __ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the post

Re: [R] apply

2024-10-04 Thread Rui Barradas via R-help
Hello, You don't need apply, covariance calculations are so frequent that R or any other statistics package already has pre-programmed functions. This time with two vectors x and y. set.seed(123) n <- 3 x <- rnorm(n) y <- rnorm(n) # the two main diagonal values var(x) #> [

Re: [R] apply

2024-10-04 Thread Ebert,Timothy Aaron
Why must the answer use apply? It feels like there are elements of the problem that are not explained. -Original Message- From: R-help On Behalf Of Ben Bolker Sent: Friday, October 4, 2024 8:45 AM To: r-help@r-project.org Subject: Re: [R] apply [External Email] It's still ha

Re: [R] Time series data decomposition from by minute data

2024-10-04 Thread Petr Pikal
eriodic or has less than two > > > -- > *Roslinazairimah Zakaria* > *Tel: +609-5492370; Fax. No.+609-5492766* > > *Email: roslinazairi...@ump.edu.my ; > roslina...@gmail.com * > Faculty of Industrial Sciences & Technology > University Malaysia Pahang > Lebuhraya Tun

Re: [R] apply

2024-10-04 Thread Ben Bolker
ions of a column vector: se<-apply(dd,1,sd) How can I calculate the covariance matrix using apply? Thanks. ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.o

Re: [R] apply

2024-10-04 Thread Ivan Krylov via R-help
iance matrix for them. -- Best regards, Ivan ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] apply

2024-10-04 Thread Steven Yen
swered on this list. Best, Uwe Ligges On 04.10.2024 10:32, Steven Yen wrote: The following line calculates standard deviations of a column vector: se<-apply(dd,1,sd) How can I calculate the covariance matrix using apply? Thanks. __ R-help@r-proj

Re: [R] apply

2024-10-04 Thread Rui Barradas
st. Best, Uwe Ligges On 04.10.2024 10:32, Steven Yen wrote: The following line calculates standard deviations of a column vector: se<-apply(dd,1,sd) How can I calculate the covariance matrix using apply? Thanks. __ R-help@r-project.org mailing lis

Re: [R] apply

2024-10-04 Thread Ivan Krylov via R-help
В Fri, 4 Oct 2024 19:14:30 +0800 Steven Yen пишет: > I have a vector: > set.seed(123) > n<-3 > x<-rnorm(n); x [1] -0.56047565 -0.23017749 > 1.55870831 > var(x[1]) cov(x[1],x[2]) Are you sure you don't have a matrix? If you type var(x[1]) or cov(x[1],x[2]) into

Re: [R] apply

2024-10-04 Thread Steven Yen
601 > >>> On 10/4/2024 4:57 PM, Uwe Ligges wrote: >>>> Homework questions are not answered on this list. >>>> >>>> Best, >>>> Uwe Ligges >>>> >>>> >>>> >>>> On 04.10.2024 10:32, Steven Yen wrote: >&g

Re: [R] apply

2024-10-04 Thread Rui Barradas
On 04.10.2024 10:32, Steven Yen wrote: The following line calculates standard deviations of a column vector: se<-apply(dd,1,sd) How can I calculate the covariance matrix using apply? Thanks. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] apply

2024-10-04 Thread Uwe Ligges
,sd) How can I calculate the covariance matrix using apply? Thanks. __________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-gu

Re: [R] apply

2024-10-04 Thread Steven Yen
04.10.2024 10:32, Steven Yen wrote: >>> The following line calculates standard deviations of a column vector: >>> >>> se<-apply(dd,1,sd) >>> >>> How can I calculate the covariance matrix using apply? Thanks. >>> >>> ___

Re: [R] apply

2024-10-04 Thread Uwe Ligges
nks. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible c

[R] apply

2024-10-04 Thread Steven Yen
The following line calculates standard deviations of a column vector: se<-apply(dd,1,sd) How can I calculate the covariance matrix using apply? Thanks. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mail

Re: [R] How to install this package

2024-10-03 Thread David Winsemius via R-help
- > *Roslinazairimah Zakaria* > *Tel: +609-5492370; Fax. No.+609-5492766* > > *Email: roslinazairi...@ump.edu.my ; > roslina...@gmail.com * > Faculty of Industrial Sciences & Technology > University Malaysia Pahang > Lebuhraya Tun Razak, 26300 Gambang, Pahang, Malaysia >

Re: [R] Warning message: Removed 888 rows containing missing values or values outside the scale range (`geom_line()`)

2024-10-03 Thread Hasan Diwan
30, > 27740, 27886, 26847, 26902, 27205, 27255, 27535, 27765, 27789, > 28332, 29007, 29399, 29619, 30221, 29402, 29671, 30079, 30610, > 31379, 31999, 32545, 33014, 33417, 33457, 33367, 33552, 32660, > 32739, 33240, 33764, 34203, 34624, 35065, 35460, 35771, 35852, > 35867, 36209, 3549

[R] Warning message: Removed 888 rows containing missing values or values outside the scale range (`geom_line()`)

2024-10-03 Thread roslinazairimah zakaria
2660, 32739, 33240, 33764, 34203, 34624, 35065, 35460, 35771, 35852, 35867, 36209, 35494, 35627, 35955, 36212, 36202, 36608, 36637, 36628, 36584, 36658, 36810, 36815, 36018, 35973, 35948, 35833, 35768, 35949, 35861, 35828, 35652, 3, 35597, 35850, 35229, 35290, 35411, 35161, 35024, 35065, 34769

Re: [R] Change data frame to time series data

2024-10-02 Thread roslinazairimah zakaria
-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 > >Sent > from my mobile device > Envoye de mon portable > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRI

Re: [R] Change data frame to time series data

2024-10-02 Thread Hasan Diwan
ce, allez a *bit.ly/hd1AppointmentRequest <http://bit.ly/hd1AppointmentRequest>*. <https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1>Sent from my mobile device Envoye de mon portable [[alternative HTML version deleted]] ____

Re: [R] Change data frame to time series data

2024-10-02 Thread roslinazairimah zakaria
//bit.ly/hd1AppointmentRequest>*. > > <https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 > >Sent > from my mobile device > Envoye de mon portable > > [[alternative HTML version deleted]] > > _

Re: [R] Change data frame to time series data

2024-10-02 Thread roslinazairimah zakaria
, 1388562780, 1388562840, 1388562900, 1388562960, > > 1388563020, 1388563080, 1388563140, 1388563200, 1388563260, 1388563320, > > 1388563380, 1388563440, 1388563500, 1388563560, 1388563620, 1388563680, > > 1388563740, 1388563800, 1388563860, 1388563920, 1388563980, 1388564040

Re: [R] Change data frame to time series data

2024-10-02 Thread Rui Barradas
1BBA1 Sent from my mobile device Envoye de mon portable [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-g

Re: [R] Change data frame to time series data

2024-10-02 Thread Hasan Diwan
p?op=get&search=0xFEBAD7FFD041BBA1>Sent from my mobile device Envoye de mon portable [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo

Re: [R] Change data frame to time series data

2024-10-02 Thread roslinazairimah zakaria
t;https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 > >Sent > from my mobile device > Envoye de mon portable > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.

Re: [R] Change data frame to time series data

2024-10-02 Thread Hasan Diwan
<https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1>Sent from my mobile device Envoye de mon portable [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.c

Re: [R] Change data frame to time series data

2024-10-02 Thread roslinazairimah zakaria
g time. > > > > [[alternative HTML version deleted]] > > Please send plain-text messages to this list; otherwise, > the results become hard to read. > > -- > Enrico Schumann > Lucerne, Switzerland > https://enricoschumann.net > -- *Roslinazairimah Zakaria* *Tel:

Re: [R] How to install this package

2024-10-02 Thread roslinazairimah zakaria
/ 2014-12-31 23:59:00 containing: Data:integer [525600, 1] Index: POSIXct,POSIXt [525600] (TZ: "") plot(dt_ts) On Tue, Oct 1, 2024 at 7:30 PM Enrico Schumann wrote: > On Wed, 25 Sep 2024, Christofer Bogaso writes: > > > Hi, > > > > I would like to insta

Re: [R] Change data frame to time series data

2024-10-02 Thread Enrico Schumann
# 2014-01-01 00:02:003 But be sure to read about ?as.POSIXct; in particular, the handling of timezones/daylight-saving time. > [[alternative HTML version deleted]] Please send plain-text messages to this list; otherwise, the results become hard to read. -- Enrico Schumann Lucerne, Switzer

[R] Change data frame to time series data

2024-10-01 Thread roslinazairimah zakaria
-- *Roslinazairimah Zakaria* *Tel: +609-5492370; Fax. No.+609-5492766* *Email: roslinazairi...@ump.edu.my ; roslina...@gmail.com * Faculty of Industrial Sciences & Technology University Malaysia Pahang Lebuhraya Tun Razak, 26300 Gambang, Pahang, Malaysia [[alternative HTML versi

Re: [R] (no subject)

2024-10-01 Thread avi.e.gross
Grant, I think, Your NO SUBJECT message confused me as it seems a continuation of an earlier discussion of a new and likely irrelevant metric of the worthiness of R programs. Did you make a mistake here? I tried your code as well and the results did not look like what the OP asked for. It took

Re: [R] How to install this package

2024-10-01 Thread Enrico Schumann
On Wed, 25 Sep 2024, Christofer Bogaso writes: > Hi, > > I would like to install an R library from > https://cran.r-project.org/src/contrib/Archive/termstrc/ > > I executed below code without success. > > Any help would be appreciated. > >> install.packages(&#

[R] (no subject)

2024-10-01 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
into submission, sort of). My overlooking unsplit() is somewhat impressive in view of "svn diff -c 18591" -pd > On 27 Sep 2024, at 17:08 , Martin Maechler wrote: > >>>>>> Chris Evans via R-help >>>>>>on Fri, 27 Sep 2024 12:20:47 +0200 w

Re: [R] Problem with converting grib file to excel

2024-09-30 Thread Roy Mendelssohn - NOAA Federal via R-help
I "cat" a bunch of GRIB files, I still have a valid GRIB file. So a given GRIB file often contains multiple parameters, and each of those through time. To translate into terms used by R spatial packages, each variable grid, at each time period will be seen as a "band&quo

Re: [R] Is there a sexy way ...?

2024-09-30 Thread peter dalgaard
Yes, unsplit() it is. I was messing around with ave() (which can be hammered into submission, sort of). My overlooking unsplit() is somewhat impressive in view of "svn diff -c 18591" -pd > On 27 Sep 2024, at 17:08 , Martin Maechler wrote: > >>>>>> Ch

Re: [R] when installing packages for R on Linux, is it better to use my distro's package manager, or install.packages()?

2024-09-29 Thread Ivan Krylov via R-help
В Sat, 28 Sep 2024 18:05:08 -0400 "Christopher W. Ryan" пишет: > To install a new R package, is it better to use Linux Mint's pacakge > manager (e.g. synaptic, apt-get, or similar), or to install it within > R with install.packages("some_new_package")? Since

Re: [R] Is there a sexy way ...?

2024-09-28 Thread Richard O'Keefe
I for one am grateful to have been reminded of the existence of split and especially unsplit. On Sun, 29 Sept 2024 at 15:48, wrote: > > Admit it, Rolf. Haven't you wondered if S, in a more private way, is sexier > than R? > > OK, kidding aside, we have talked this to deat

Re: [R] Is there a sexy way ...?

2024-09-28 Thread avi.e.gross
Admit it, Rolf. Haven't you wondered if S, in a more private way, is sexier than R? OK, kidding aside, we have talked this to death. Just FYI, the conversation was stimulating for some of us and I have continued on my own and located functions I see as useful in the stringi and st

Re: [R] Is there a sexy way ...?

2024-09-28 Thread Rolf Turner
622 Home phone: +64-9-480-4619 ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] when installing packages for R on Linux, is it better to use my distro's package manager, or install.packages()?

2024-09-28 Thread Jeff Newmiller via R-help
I always use a user library on all platforms. The renv package takes this to the next level and lets you setup per-project libraries. To be reproducible a data analysis needs to use the same user packages, and even different versions of R can give different results. It should be up to the

Re: [R] when installing packages for R on Linux, is it better to use my distro's package manager, or install.packages()?

2024-09-28 Thread Ben Bolker
Use Dirk Eddelbuettel's r2u repo with bspm package On Sat, Sep 28, 2024, 6:15 PM Stephen H. Dawson, DSL via R-help < r-help@r-project.org> wrote: > Distribution package manger, always. > > *Stephen Dawson, DSL* > /Executive Strategy Consultant/ > Business & Technol

Re: [R] when installing packages for R on Linux, is it better to use my distro's package manager, or install.packages()?

2024-09-28 Thread Stephen H. Dawson, DSL via R-help
Distribution package manger, always. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 9/28/24 18:05, Christopher W. Ryan wrote: I'm running R (currently 4.4.1) on Linux Mint sessionInfo() R version 4.4.1 (2

[R] when installing packages for R on Linux, is it better to use my distro's package manager, or install.packages()?

2024-09-28 Thread Christopher W. Ryan
I'm running R (currently 4.4.1) on Linux Mint > sessionInfo() R version 4.4.1 (2024-06-14) Platform: x86_64-pc-linux-gnu Running under: Linux Mint 20.3 ...truncated... To install a new R package, is it better to use Linux Mint's pacakge manager (e.g. synaptic, apt-get, or similar),

Re: [R] Is there a sexy way ...?

2024-09-28 Thread avi.e.gross
ith lots of commas and resurrecting it: do.call(paste, c(x, sep=",", collapse=",")) |> strsplit(",") |> unlist() |> as.integer() Or without the new R pipe: as.integer(unlist(strsplit(do.call(paste, c(x,

Re: [R] Is there a sexy way ...? Fortune nomination

2024-09-28 Thread Achim Zeileis via R-help
On Sat, 28 Sep 2024, J C Nash wrote: On 2024-09-28 13:57, avi.e.gr...@gmail.com wrote: Python users often ask if a solution is “pythonic”. But I am not aware of R users having any special name like “R-thritic” and that may be a good thing. Nice, added on R-Forge :-) Achim

Re: [R] Is there a sexy way ...? Fortune nomination

2024-09-28 Thread J C Nash
On 2024-09-28 13:57, avi.e.gr...@gmail.com wrote: Python users often ask if a solution is “pythonic”. But I am not aware of R users having any special name like “R-thritic” and that may be a good thing. __ R-help@r-project.org mailing list -- To

Re: [R] Is there a sexy way ...?

2024-09-28 Thread avi.e.gross
of R users having any special name like “R-thritic” and that may be a good thing. From: CALUM POLWART Sent: Saturday, September 28, 2024 5:27 AM To: avi.e.gr...@gmail.com Cc: Lennart Kasserra ; Rolf Turner ; r-help@r-project.org Subject: Re: [R] Is there a sexy way ...? Avi I fear

[R] lattice xyplot with cumsum() function inside

2024-09-28 Thread Naresh Gurbuxani
ydt[, xyplot(xcumsum ~ date, groups = xgroup, type = c("l", "g"), auto.key = list(columns = 2, space = "bottom"))] Is this a bug or incorrect use of function? Thanks, Naresh __ R-help@r-project.org mailing list -- To UNSUBS

Re: [R] Is there a sexy way ...?

2024-09-28 Thread CALUM POLWART
Avi I fear this was all a huge social experiment. Testing if a post titled "sexy way" would increase engagement... On Sat, 28 Sep 2024, 07:21 , wrote: > I see a book coming: > "666 ways to do the same thing in R ranked by sexiness." > > Kidding aside,

Re: [R] Is there a sexy way ...?

2024-09-27 Thread avi.e.gross
I see a book coming: "666 ways to do the same thing in R ranked by sexiness." Kidding aside, if you look under the covers of some of the functions we are using, we may find we are taking steps back as some of them use others and perhaps more functionality than we need. But

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Lennart Kasserra
icit & readable, but given base R can do this very concisely one might argue that it is superfluous to bring in an extra library for this. I think Bert's solution ( `c(do.call(rbind, x))`) is great if `f` has no substantive meaning, and Deepayan's solution (`unsplit(x, f)`) is perfect i

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Lennart Kasserra
he tidyverse-esque code to be very explicit & readable, but given base R can do this very concisely one might argue that it is superfluous to bring in an extra library for this. I think Bert's solution ( `c(do.call(rbind, x))`) is great if `f` has no substantive meaning, and Deepayan'

Re: [R] Is there a sexy way ...?

2024-09-27 Thread avi.e.gross
You are, of course, correct, John. But in a strange way, many people end up finding their wife or husband not so sexy after many years and find others now seem to be. R is not about sex and it was not the ideal choice of words. I think what was wanted was something brief rather than taking many

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Sorkin, John
ter for Vascular Research; Division of Gerontology and Paliative Care, 10 North Greene Street GRECC (BT/18/GR) Baltimore, MD 21201-1524 Cell phone 443-418-5382 ____ From: R-help on behalf of avi.e.gr...@gmail.com Sent: Friday, September 27, 2024 10:48 PM To

Re: [R] Is there a sexy way ...?

2024-09-27 Thread avi.e.gross
l is this can be extended like so: x <- list(`1` = c(7, 13, 1, 4, 10), `2` = c(2, 5, 14, 8, 11), `3` = c(6, 9, 15, 12, 3), `4` = c( 101, 102, 103, 104, 105), `5` = c(-105, -104, -103, -102, -101)) Works fine and does this for the now five columns: [1]

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Bert Gunter
might be considered elementary "common" knowledge, I note that it is not documented in ?matrix , although it is in ?array ("The values in data are taken to be those in the array with the leftmost subscript moving fastest.") . So imo maybe not obvious to a "casual" us

Re: [R] Is there a sexy way ...?

2024-09-27 Thread avi.e.gross
and having it weaved together. An enumerate version just adds a column of sequence numbers. Your example might look like this IN PYTHON: This is not meant for anything but illustration as something somebody probably has already done in R if you can find some package that supports this, but not

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Martin Maechler
>>>>> Chris Evans via R-help >>>>> on Fri, 27 Sep 2024 12:20:47 +0200 writes: > Oh glorious!  Thanks Duncan. > Fortune cookie nomination! I don't disagree with the nomination -- thank you, Duncan! However, please note that I'm sure Rol

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Chris Evans via R-help
uador & Honorary Professor, University of Roehampton, London, UK. CORE site: http://www.coresystemtrust.org.uk Other work web site: https://www.psyctc.org/psyctc/ Personal site: https://www.psyctc.org/pelerinage2016/ ______ R-help@r-project.org mailing list -

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Duncan Murdoch
sult. However I cannot devise one. Don't you find a for loop's naked display of intention to be sexy? Duncan Murdoch ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Mark Leeds
Rolf can tell us for sure but I thought the goal was to use v ? Maybe not ? Either way, I think Bert wins for shortest and Kimmo wins for longest. IMHO, elegance is in the eye of the beholder. On Fri, Sep 27, 2024 at 4:35 AM Stephen Berman via R-help < r-help@r-project.org> wrote:

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Stephen Berman via R-help
of v, >> > >>> corresponding to level l of f are the entries of x[[l]]. I.e. I want >> > >>> v to equal >> > >>> >> > >>> c(7, 2, 6, 13, 5, 9, 1, 14, 15, 4, 8, 12, 10, 11, 3) >> > >>> >> > >>> I can create v

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Kimmo Elo
orical Studies P.O. Box 111 FIN-80101 Joensuu Finland E-mail: kimmo@uef.fi ResearchGate: www.researchgate.net/profile/Kimmo_Elo LAWPOL Consortium (PI): https://lawpol.fi/en ______ R-help@r-project.org mai

Re: [R] Is there a sexy way ...?

2024-09-27 Thread Eric Berger
t;>> > > >>> c(7, 2, 6, 13, 5, 9, 1, 14, 15, 4, 8, 12, 10, 11, 3) > > >>> > > >>> I can create v "easily enough", using say, a for-loop. It seems to me, > > >>> though, that there should be sexier (single command)

Re: [R] Is there a sexy way ...?

2024-09-26 Thread Deepayan Sarkar
It seems to me, > >>> though, that there should be sexier (single command) way of achieving > >>> the desired result. However I cannot devise one. > >>> > >>> Can anyone point me in the right direction? Thanks. > >>> > >>>

Re: [R] Is there a sexy way ...?

2024-09-26 Thread Bert Gunter
devise one. >>> >>> Can anyone point me in the right direction? Thanks. >>> >>> cheers, >>> >>> Rolf Turner >>> >>> -- >>> Honorary Research Fellow >>> Department of Statistics >>> University of Auckland >>> Stats. Dep&#x

Re: [R] Is there a sexy way ...?

2024-09-26 Thread Bert Gunter
> >> cheers, >> >> Rolf Turner >> >> -- >> Honorary Research Fellow >> Department of Statistics >> University of Auckland >> Stats. Dep't. (secretaries) phone: >> +64-9-373-7599 ext. 89622 >> Home phone: +64-9-480-4

Re: [R] Is there a sexy way ...?

2024-09-26 Thread Bert Gunter
cheers, > > Rolf Turner > > -- > Honorary Research Fellow > Department of Statistics > University of Auckland > Stats. Dep't. (secretaries) phone: > +64-9-373-7599 ext. 89622 > Home phone: +64-9-480-4619 > > ____

Re: [R] Is there a sexy way ...?

2024-09-26 Thread avi.e.gross
4 8 12 10 11 3 -Original Message- From: R-help On Behalf Of Rolf Turner Sent: Thursday, September 26, 2024 11:56 PM To: r-help@r-project.org Subject: [R] Is there a sexy way ...? I have (toy example): x <- list(`1` = c(7, 13, 1, 4, 10), `2` = c(2, 5, 14, 8, 11),

[R] Is there a sexy way ...?

2024-09-26 Thread Rolf Turner
point me in the right direction? Thanks. cheers, Rolf Turner -- Honorary Research Fellow Department of Statistics University of Auckland Stats. Dep't. (secretaries) phone: +64-9-373-7599 ext. 89622 Home phone: +64-9-480-4619 ______ R-help@r-pro

Re: [R] Problem with converting grib file to excel

2024-09-26 Thread Roy Mendelssohn - NOAA Federal via R-help
25, 2024, at 9:41 PM, javad bayat wrote: > > > > Dear all; > > Many thanks for your responses. Actually it is not completely a GIS file, > > it is a data file which stores meteorological data of a specific region. > > But the site allows downloading with grib format and as I

Re: [R] Problem with converting grib file to excel

2024-09-26 Thread CALUM POLWART
ores meteorological data of a specific region. > > But the site allows downloading with grib format and as I searched to > read > > this type of file in R, I found the Raster Package. > > In python it is possible to do this using cdsapi and xarray library, but > I > > am

Re: [R] Problem with converting grib file to excel

2024-09-26 Thread javad bayat
ny thanks for your responses. Actually it is not completely a GIS file, > it is a data file which stores meteorological data of a specific region. > But the site allows downloading with grib format and as I searched to read > this type of file in R, I found the Raster Package. > In python it

Re: [R] Problem with converting grib file to excel

2024-09-26 Thread Roy Mendelssohn - NOAA Federal via R-help
y thanks for your responses. Actually it is not completely a GIS file, it > is a data file which stores meteorological data of a specific region. But the > site allows downloading with grib format and as I searched to read this type > of file in R, I found the Raster Package. > In pyt

Re: [R] [Tagged] Re: Question about Date Object and time zones

2024-09-25 Thread Jeff Newmiller via R-help
... or a timezone string. ... or do what I usually do and use POSIXct for dates as well as times, self-managing use of midnight local time for "dates". On September 25, 2024 5:40:37 AM EDT, Ivan Krylov via R-help wrote: >24 сентября 2024 г. 17:10:13 GMT+03:00, Luca Brinkma

Re: [R] Problem with converting grib file to excel

2024-09-25 Thread javad bayat
Dear all; Many thanks for your responses. Actually it is not completely a GIS file, it is a data file which stores meteorological data of a specific region. But the site allows downloading with grib format and as I searched to read this type of file in R, I found the Raster Package. In python it

[R] plotting sf with lattice

2024-09-25 Thread Waichler, Scott R via R-help
on deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Problem with converting grib file to excel

2024-09-25 Thread Roy Mendelssohn - NOAA Federal via R-help
e, 24 Sep 2024, 21:26 Bert Gunter, wrote: > >> You might try posting on r-sig-geo if you don't get a satisfactory >> response here. I assume there's a lot of expertise there on handling >> raster-type data. >> >> Cheers, >> Bert >> >> On

Re: [R] Problem with converting grib file to excel

2024-09-25 Thread CALUM POLWART
ng up the region. So 200 pieces of data. All held as a list or something similar in a single "cell" as excel would refer to it. My gut feeling is that's likely to make export to excel difficult without data carpentry first? On Tue, 24 Sep 2024, 21:26 Bert Gunter, wrote: > You

[R] OFF TOPIC: "Scientific rigor proponents retract paper on benefits of scientific rigor"

2024-09-25 Thread Bert Gunter
This is off topic and only tangentially related to statistics or R (through "HARK"ing -- Hypothesizing After Results are Known). But given the research interests of many on this list, I thought others would enjoy it. My apologies if I have overstepped (please let me know if so). Also, PL

[R] [R-pkgs] GmooG, ChessGmooG, FilmsGmooG, ComradesM

2024-09-25 Thread Antony Unwin
Dear all, GmooG, ChessGmooG, FilmsGmooG, ComradesM are dataset packages accompanying my book “Getting (more out of) Graphics” (CRC Press 2024). They are now available on CRAN. R code producing the graphics in the book will be put online in a few weeks. Regards Antony Professor Antony

Re: [R] Question about Date Object and time zones

2024-09-25 Thread Kimmo Elo
Hi, I might have misunderstood your point, but why should a Date object store a timezone, since timezone is an attribute of time, not date? Your tz-examples force R to present a timezone, resulting - this is my assumption - to default (=UTC) as there is no other information available. Best

Re: [R] How to install this package

2024-09-25 Thread Ivan Krylov via R-help
t work because 'termstrc' requires 'rgl' to load and your 'rgl' installation doesn't work. Try following the instructions in the README of the 'rgl' package regarding the OpenGL support. Perhaps it needs to be reinstalled after some updates you

[R] How to install this package

2024-09-25 Thread Christofer Bogaso
Hi, I would like to install an R library from https://cran.r-project.org/src/contrib/Archive/termstrc/ I executed below code without success. Any help would be appreciated. > install.packages('/Users/termstrc_1.3.tar.gz', repos = NULL, type="source") * installing *so

Re: [R] Question about Date Object and time zones

2024-09-25 Thread Ivan Krylov via R-help
24 сентября 2024 г. 17:10:13 GMT+03:00, Luca Brinkmann via R-help пишет: > My current > understanding is, that a Date object does only save the days from the > origin and no more information about timezones or other information > (please correct me if I am wrong). You are correct.

Re: [R] Help needed! Pre-processing the dataset before splitting - model building - model tuning - performance evaluation

2024-09-25 Thread Rui Barradas
in Python, Minitab, and R. Explaining it in all softwares are appraciated if possible. ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.o

[R] Question about Date Object and time zones

2024-09-24 Thread Luca Brinkmann via R-help
on present when using base::format or in the display in the RStudio environment? Is there any way to add timezone information to an Date object (other than UTC) and keeping it a Date object? And if not how is the Date object internally structured, so that it will return "UTC" when using bas

[R] Help needed! Pre-processing the dataset before splitting - model building - model tuning - performance evaluation

2024-09-24 Thread Bekzod Akhmuratov
model with Minitab, I get attached result for residuals. It doesn't look normal. Does it mean there is high correlation or the dataset in have nonlinear response and predictors? How should I approach this? What would be my strategy if I use in Python, Minitab, and R. Explaining it in all sof

Re: [R] Problem with converting grib file to excel

2024-09-24 Thread Bert Gunter
You might try posting on r-sig-geo if you don't get a satisfactory response here. I assume there's a lot of expertise there on handling raster-type data. Cheers, Bert On Mon, Sep 23, 2024 at 11:31 PM javad bayat wrote: > > Dear R users; > I have downloaded a grib file form

[R] [R-pkgs] bit, bit64, ff and greeNsort

2024-09-24 Thread Jens Oehlschlägel
Dear package maintainers, Dear users of packages `bit`, `bit64`, `ff`, Everyone interested in sustainable sorting algorithms, I submitted updated versions for the upcoming R 4.5.0. The are only minor changes (see the NEWS files) but there is one important change in bit64:     o setting

[R] Problem with converting grib file to excel

2024-09-23 Thread javad bayat
Dear R users; I have downloaded a grib file format (Met.grib) and I want to export its data to excel file. Also I want to do some mathematic on some columns. But I got error. I would be more than happy if anyone can help me to do this. I have provided the codes and the Met.grib file in this email

Re: [R] Loading multiple packages with install.packages()...

2024-09-23 Thread Ben Bolker
quot;sandwich", "multcompView", "ggplot2", "stringr", "dplyr", "openxlsx", "tidyr") # Check and install each package lapply(packages, install_if_missing) Regards, Tim -Original Message- From: R-help On Behalf Of Brian Lunergan Se

Re: [R] Loading multiple packages with install.packages()...

2024-09-23 Thread Bert Gunter
"multcomp", "sandwich", "multcompView", "ggplot2", > "stringr", "dplyr", "openxlsx", "tidyr") > # Check and install each package > lapply(packages, install_if_missing) > > > Regards, > Tim > -Or

Re: [R] Loading multiple packages with install.packages()...

2024-09-23 Thread Ebert,Timothy Aaron
Check and install each package lapply(packages, install_if_missing) Regards, Tim -Original Message- From: R-help On Behalf Of Brian Lunergan Sent: Monday, September 23, 2024 12:35 PM To: r-help@r-project.org Subject: [R] Loading multiple packages with install.packages()... [External Email] -

[R] Loading multiple packages with install.packages()...

2024-09-23 Thread Brian Lunergan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi folks: Curious question. I've added Rcmdr to my setup (R 4.4.1). I would like to add all of the plugins. Is there a way to get install.packages() to gather up everything starting 'rcmdrplugin', or do I have to list each packa

  1   2   3   4   5   6   7   8   9   10   >