From: Bill Dunlap
Sent: Friday, January 20, 2023 5:32 AM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] function doesn't exists but still runs.
Look into R's scoping rules. E.g.,
https://bookdown.org/rdpeng/rprogdatascience/scoping-rules-of-r.html.
* When a function looks up
From: Jorgen Harmse
Sent: Friday, January 20, 2023 9:34 PM
To: r-help@r-project.org ; akshay...@hotmail.com
; williamwdun...@gmail.com
Subject: Re: function doesn't exists but still runs. (akshay kulkarni)
It may help to expand a bit on Bill Dunlap's answer. I think that library does
: Saturday, November 5, 2022 1:24 AM
To: r-help@r-project.org ; akshay kulkarni
; R help Mailing list
Subject: Re: [R] on parallel processing...
You don't specify processors. Just invoke the worker functions with the
relevant packages and they will be allocated according to how you defined the
cluster
Dear members,
I want to send the same function with different
arguments to different processors. This solution was provided in Stack Overflow
https://stackoverflow.com/questions/25045998/send-function-calls-with-different-arguments-to-different-processors-in-r-using
Dear Bert,
Amazing! Very informative...THanks a lot.
From: Bert Gunter
Sent: Tuesday, November 8, 2022 2:15 AM
To: akshay kulkarni
Cc: Rui Barradas ; R help Mailing list
Subject: Re: [R] print and lapply
" The lapply() c
Dear Tim,
I think the recent replies from you, Bert and Rui cleared
everything ...
THanks a lot..
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Ebert,Timothy Aaron
Sent: Tuesday, November 8, 2022 2:15 AM
To: akshay kulkarni ; Bert
sincerely,
AKSHAY M KULKARNI
From: Rui Barradas
Sent: Tuesday, November 8, 2022 2:20 AM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] print and lapply
�s 19:22 de 07/11/2022, akshay kulkarni escreveu:
> Dear Rui,
>
Dear Rui,
THanks a lot!
THanking you,
Yours sincerely
AKSHAY M KULKARNI
From: Rui Barradas
Sent: Tuesday, November 8, 2022 8:51 PM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] print and lapply
�s 14:47 de 08/11/2022, akshay
From: Ebert,Timothy Aaron
Sent: Monday, November 7, 2022 11:07 PM
To: Andrew Simmons ; akshay kulkarni
Cc: R help Mailing list
Subject: RE: [R] print and lapply
Another option is use paste() within print()
lapply(TP,function(x){print(paste("x= ",x, " x^2 = ", x^2))})
] 9
[[4]]
[1] 16
Here x^2 's print only after 4 is printed on the console
tHanks anyways for your reply
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Rui Barradas
Sent: Tuesday, November 8, 2022 12:24 AM
To: akshay kulkarni ; R help Mailing l
From: Bert Gunter
Sent: Monday, November 7, 2022 11:16 PM
To: Andrew Simmons
Cc: akshay kulkarni ; R help Mailing list
Subject: Re: [R] print and lapply
Well... yes, of course. But assuming the sole purpose is to print the
results and not to save them for further processing, the OP's
Dear members,
I have the following code and output:
> TP <- 1:4
> lapply(TP,function(x){print(x);x^2})
[1] 1
[1] 2
[1] 3
[1] 4
[[1]]
[1] 1
[[2]]
[1] 4
[[3]]
[1] 9
[[4]]
[1] 16
How do I make the print function output x along with x^2, i.e not at the
beginning but
Y M KULKARNI
From: Andrew Simmons
Sent: Monday, November 7, 2022 10:50 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] print and lapply
put print() around x^2
On Mon, Nov 7, 2022, 12:18 akshay kulkarni
mailto:akshay...@hotmail.com>> wr
From: Rui Barradas
Sent: Monday, November 7, 2022 11:59 PM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] print and lapply
�s 17:17 de 07/11/2022, akshay kulkarni escreveu:
> Dear members,
> I have the following code and output:
>
>
2023 12:20 AM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] lexical scoping for scripts..
On 19/03/2023 2:33 p.m., akshay kulkarni wrote:
> Dear Duncun,
> thanks for the reply
>
> So when I run a script in the system command line by R CM
dear Duncun,
got the pointthanks a lot..!
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Duncan Murdoch
Sent: Monday, March 20, 2023 1:12 AM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] lexical scoping
the script
permanently is to save them to the disk, right?
THanking you,
yours sincerely,
AKSHAY M KULKARNI
From: Duncan Murdoch
Sent: Saturday, March 18, 2023 11:49 PM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] lexical scoping for scripts..
On 18
AY M KULKARNI
From: Jeff Newmiller
Sent: Monday, March 20, 2023 1:01 AM
To: r-help@r-project.org ; akshay kulkarni
; Duncan Murdoch ; R help
Mailing list
Subject: Re: [R] lexical scoping for scripts..
What do _you_ mean when you use the term "interactive"? Because R
Dear Jeff,
Thanks a lot...
Thanking you,
Yours sincerely,
Akshay m kulkarni
From: Jeff Newmiller
Sent: Monday, March 20, 2023 1:47 AM
To: akshay kulkarni ; r-help@r-project.org
; Duncan Murdoch
Subject: Re: [R] lexical scoping for scripts..
Again
Dear members,
The documentation for source() says:
Input is read and parsed from that file until the end of the file is reached,
then the parsed expressions are evaluated sequentially in the chosen
environment.
What does this mean? I presume that any objects that
dear members,
I want to convert "12 APR 2023" into a Date object.
I tried as_Date() from lubridate, but it is not working:
> as_date("12 APR 2023")
[1] NA
Warning message:
All formats failed to parse. No formats found.
> as_date("12-APR-2023")
[1] NA
Warning message:
Dear Dirk,
Thaks a lot...
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Dirk Eddelbuettel
Sent: Wednesday, April 12, 2023 8:38 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] converting to date object
From: Duncan Murdoch
Sent: Wednesday, April 12, 2023 5:46 PM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] aborting the execution of a script...
This is what I get:
> source("~/temp/test.R", echo = TRUE)
> print(1)
[1] 1
> stop(&q
Hi Mark,
Thanks a lot...
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Marc Schwartz
Sent: Wednesday, April 12, 2023 8:33 PM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] converting to date object...
Hi,
You do not need
Hi Eric,
THanks a lot..
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Eric Berger
Sent: Wednesday, April 12, 2023 8:20 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] converting to date object...
lubridate::dmy("1
44.06"
[3,] "45.82" "47.27" "47.5" "45.63"
[4,] "45.62" "46.06" "46.16" "44.73"
[5,] "45.05" "46.28"
Dear Jeff,
Regrets for not trying that before...never knew that % was the
culprit...!
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Jeff Newmiller
Sent: Thursday, April 13, 2023 1:08 AM
To: r-help@r-project.org ; akshay kulkarni
; Rui
Dear members,
I have an xts object:
> head(INFYTX)
INFY Historical Data INFY Historical Data.1 INFY Historical Data.2
2003-04-16 "47.26" "44.28""47.56"
2003-04-17 "46.30" "44.92""46.53"
2003-04-21
Dear members,
I am using the forecast package for arfima
modelling. THe following is the code:
> arfima(ygrpch(OHLCDataEP[[1]]))
Call:
arfima(y = ygrpch(OHLCDataEP[[1]]))
*** Warning during (fdcov) fit: unable to compute correlation matrix; maybe
change 'h'
Dear members,
I am doing some modelling with caret package in R. I
do suppose that the package doesn't consider AIC and BIC for model selection,
right? They penalise the number of prameters, but I am ready to spend a little
more time and a little more money to run the
Dear Jeff,
Thanks for the rpely. I will definitely have a look at the wiki
link.
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Jeff Newmiller
Sent: Wednesday, April 19, 2023 8:10 PM
To: r-help@r-project.org ; akshay kulkarni
; R help
Dear Tim,
THanks a lot
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Ebert,Timothy Aaron
Sent: Wednesday, April 19, 2023 10:59 PM
To: Jeff Newmiller ; r-help@r-project.org
; akshay kulkarni ; R help Mailing
list
Subject: RE: [R
Dear members,
I have a function FUN1 that downloads some data from
the internet. It so happens that the function doesn't work the first time, but
on the second or third attempt it works. I want to run the function repeatedly
for four times if it throws an error:
X <-
Dear Iris,
THanks a lot...
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Iris Simmons
Sent: Wednesday, April 19, 2023 11:22 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] running a function repeatedly on error
I
parsed
as the column name. How do you make that the first row of IDT[[4]]?
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Jeff Newmiller
Sent: Monday, April 10, 2023 12:27 AM
To: akshay kulkarni ; r-help@r-project.org
Subject: Re: [R] extracting pdf table
eed to decide what to do about
>that. Choose the subset of dataframes where the column names are the same?
>Rename columns? Omit some columns? Add missing columns filled with NA?
>
>On April 9, 2023 10:22:32 AM PDT, akshay kulkarni
>wrote:
>>Dear members,
>>
Dear members,
I am extracting a pdf table by the following code:
> library(tabulizer)
> IDT <-
> extract_tables("https://www.canmoney.in/pdf/INTRADAYLEVERAGE-20220531-latest.pdf",output
> = "data.frame")
It returns 4 different data frames which I want to combine
Dear Andrew,
Thanks its working...
Thanking you,
Yours sincerely
AKSHAY M KULKARNI
From: Andrew Simmons
Sent: Monday, April 10, 2023 3:36 AM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] can't install nser...
It says
M KULKARNI
From: Jeff Newmiller
Sent: Monday, April 10, 2023 12:53 AM
To: akshay kulkarni ; r-help@r-project.org
Subject: Re: [R] extracting pdf tables...
I don't know... I have never used tabulizer (which is no longer on CRAN anyway).
In general you would provide an argument t
Dear members,
I can't install "nser" package. It is not in cran
but install_version and install_github both are not working:
> install_version("nser",version = "1.4.0")
Downloading package from url:
Dear members,
I have a script which I source it interactively. I
have the following questions:
1. If there is an error in an expression, an error message is printed, but
the execution continues till the end of the script. I am sourcing with echo. Is
there any
Dear richard,
Bulls eye! thanks for your pointed reply...!
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Richard O'Keefe
Sent: Wednesday, April 5, 2023 10:30 AM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R
dear Bert,
I could predict most of them, but,of course, you have not
wasted my time!
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Bert Gunter
Sent: Wednesday, April 5, 2023 4:36 AM
To: akshay kulkarni
Cc: R help Mailing list
Subject
Dear Members,
I have the following code typed at the console
prompt:
y <- x*10
X has not been defined and the above code throws an object not found error.
That is, the global environment does not contain x. Why doesn't it look further
in the environment stack,
to some
resources where I can find further information on lexical scoping for the code
"typed" in the console (but not in a function)?
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Duncan Murdoch
Sent: Tuesday, April 4, 2023 7:48 PM
To: akshay ku
Dear Jeff,
THanks a lot for the pithy reply...
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Jeff Newmiller
Sent: Tuesday, April 4, 2023 7:43 PM
To: r-help@r-project.org ; akshay kulkarni
; R help Mailing list
Subject: Re: [R
To: akshay kulkarni ; Deepayan Sarkar
Cc: R help Mailing list
Subject: Re: [R] on lexical scoping
You can't change the basic way R searches, but you can ask for a
different kind of search. For example, to see if "x" exists, you can use
exists("x")
and it will d
Dear Duncan,
THanks a lot..!!
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Duncan Murdoch
Sent: Tuesday, April 4, 2023 8:49 PM
To: akshay kulkarni ; Deepayan Sarkar
Cc: R help Mailing list
Subject: Re: [R] on lexical scoping
KULKARNI
From: Deepayan Sarkar
Sent: Tuesday, April 4, 2023 7:51 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] on lexical scoping
On Tue, Apr 4, 2023 at 7:26 PM akshay kulkarni
mailto:akshay...@hotmail.com>> wrote:
Dear M
Dear Bert,
THanks a lot. I will take a look at those...
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Bert Gunter
Sent: Tuesday, April 4, 2023 7:48 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] on lexical scoping
Dear Ducan,
Very informative! THanks a lot!
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Duncan Murdoch
Sent: Tuesday, April 4, 2023 8:14 PM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] on lexical scoping
Dear Duncan,
What if I use source() with echo? I am using that in
RStudio.
THanking you,
Yours sincerely
AKSHAY M KULKARNI
From: Duncan Murdoch
Sent: Wednesday, April 12, 2023 5:35 PM
To: akshay kulkarni ; R help Mailing list
Subject
"ar"
[6] "ma" "covariance.dpq" "fnormMin""sigma"
"stderror.dpq"
[11] "correlation.dpq" "h" "d.tol" "M"
"hessian.dpq&q
( not the
r-help mail)? Will it help? Can you then pinpoint the cause?
Or should I raise a bug report? If yes, how( I never raised one)?
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Martin Maechler
Sent: Monday, June 5, 2023 3:19 PM
To: akshay kulkarni
e deadlines, right?
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Ivan Krylov
Sent: Saturday, June 10, 2023 1:43 AM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] inconsistency in mclapply.
On Fri, 9 Jun 2023 18:01:44 +0000
aksh
Dear members,
I am using pbmcapply to parellise my code. But the
following code doesn't work:
> LYG <- pbmclapply(LYGH,FUN = arfima,mc.cores = 2,mc.preschedule = FALSE)
|
the hood?
THanking you,Yours sincerely,AKSHAY M KULKARNI
From: R-help on behalf of akshay kulkarni
Sent: Friday, June 9, 2023 11:31 PM
To: R help Mailing list
Subject: [R] inconsistency in mclapply.
Dear members,
I am using pbmcapply
:42 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] inconsistency in mclapply.
On Sat, 10 Jun 2023 11:49:10 +
akshay kulkarni wrote:
> (gdb) backtrace
> #0 0x7f94b6454053 in gomp_team_barrier_wait_end () from
> /lib64/libgomp.so.1
> #1 0x
Ivan Krylov
Sent: Saturday, June 10, 2023 12:54 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] inconsistency in mclapply.
On Fri, 9 Jun 2023 21:19:11 +
akshay kulkarni wrote:
> debug at #26: LYG <- mclapply(LYGH, FUN = arfima, mc.cores = 2,
> mc.preschedul
, June 10, 2023 2:46 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] inconsistency in mclapply.
On Sat, 10 Jun 2023 08:42:37 +
akshay kulkarni wrote:
> This is the output of top when I run function LOWp() with mclapply
> also in it. it hangs:
> %Cpu0 : 0.0 us
Dear Ivan,
A million thanks for your precious time
Thanking you
Yours sincerely,
AkshayMKulkarni
From: Ivan Krylov
Sent: Saturday, June 10, 2023 7:50 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] inconsistency
dear members,
I am using arfima() from forecast package to model
a time series. The following is the code:
> LYGH[[202]]
[1] 45.40 3.25 6.50 2.15
> arfima(LYGH[[202]])
Error in .fdcov(x, fdf$d, h, nar = nar, nma = nma, hess = hess, fdf.work =
fdf$w) :
NA/NaN/Inf
Dear Duncan,
THankls a lot...
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Duncan Murdoch
Sent: Saturday, June 17, 2023 11:36 PM
To: akshay kulkarni ; R help Mailing list
Subject: Re: [R] warnng to an error
On 17/06/2023 1
1.4 pkgconfig_2.0.3
From: Ivan Krylov
Sent: Saturday, June 10, 2023 7:50 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] inconsistency in mclapply.
On Sat, 10 Jun 2023 13:46:12 +0000
akshay kulkarni wrote:
>What if I
Dear Bert,
Duncan's theory is workingprobably the same as yours...
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Bert Gunter
Sent: Saturday, June 17, 2023 11:28 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] warnng
Dear members,
AN update:
I have changed the if clause to:
if(class(x)[1] == "xts") || class(x)[2] == "zoo") {code}
but am bootless.
PLease help...
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: R-help
Dear Martin,
THanks for your exhortation!
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Martin Maechler
Sent: Monday, June 19, 2023 1:15 PM
To: akshay kulkarni
Cc: Bert Gunter ; R help Mailing list
Subject: Re: [R] warnng
,is superficial.
Will reverting back to you if stuck againwith mclapply..
A million thanks again...
THanking you,
Yours sincerely,
AKSHAY M KULKKARNI
From: Ivan Krylov
Sent: Sunday, June 18, 2023 12:42 AM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R
Dear members,
I have the following code:
> FUN(OHLCDataEP[[63]])
Error in (class(x) == "xts") || (class(x) == "zoo") :
'length = 2' in coercion to 'logical(1)'
> traceback()
2: ygix(x, "c") at #9
1: FUN(OHLCDataEP[[63]])
> class(OHLCDataEP[[63]])
[1] "xts" "zoo"
The
Dear members,
I am using arfima in an mclapply construction (from
the parallel package):
Browse[2]> LYG <- mclapply(LYGH, FUN = arfima, mc.cores = detectCores())
^C
Browse[2]> LYG <- mclapply(LYGH[1:10], FUN = arfima, mc.cores = detectCores())
^C
Browse[2]> LYG <-
tion and I
hope that mclapply runs properly now( if it doesn't you are my only saviour!)
Many thanks for your geekish explanation.
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Ivan Krylov
Sent: Saturday, May 20, 2023 6:00 PM
To: akshay kulkarni
Cc
ay, May 18, 2023 1:08 PM
To: akshay kulkarni
Cc: r-help@r-project.org
Subject: Re: [R] mclapply enters into an infinite loop
On Wed, 17 May 2023 13:55:59 +0000
akshay kulkarni wrote:
> So that means mclapply should run properly, i.e output a try class
> object and exit. But it didn't. C
It does not look to me like you are providing the necessary arguments to arfima.
Try making this work with lapply first... then try mclapply.
On May 16, 2023 3:10:45 PM PDT, akshay kulkarni wrote:
>Dear members,
> I am using arfima in an mclapply construction
st(fit1))
> plot(forecast(fit2))
HTH,
Eric
p.s. RJH is the author/maintainer of the forecast package
On Sun, Aug 13, 2023 at 1:01 AM akshay kulkarni wrote:
>
> dear members,
> I have a heteroscedastic time series which I want to
> transform to make it homos
dear members,
I have a heteroscedastic time series which I want to
transform to make it homoscedastic by a box cox transformation. I am using
Otexts by RJ hyndman and George Athanopolous as my textbook. They discuss
transformation and also say the fpp3 and the fable
Dear ERic,
THanks a lot!
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
From: Eric Berger
Sent: Monday, August 14, 2023 11:04 PM
To: akshay kulkarni
Cc: R help Mailing list
Subject: Re: [R] time series transformation
Hi Akshay
dear members,
I want to mention that I am using the neural
network model in caret. I forgot to mention it in the previous mail to you
people
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
[[alternative HTML version deleted]]
Dear members,
I am using caret for modelling my data. It is a
regression problem. My question is : how to plot the final model on the actual
data points? The output of the model will be a nonlinear form of the activation
function; I want to plot it on the data
Dear members,
WHy is the following code returning NA instead of
the date?
> as.Date("2022-01-02", origin = "1900-01-01", format = "%y%d%m")
[1] NA
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
[[alternative HTML version deleted]]
dear members,
I have a data frame which contains, among others, a
date object of monthly frequency which is not regular, i.e some months are
omitted, and the main variable to be forecast, among others. Its name is
vesselB.
I did the following code:
vesselBR <-
101 - 180 of 180 matches
Mail list logo