Re: [R] Converting chr to num

2018-08-18 Thread GALIB KHAN
quot;%","","12.6%")) > > To the variable name say … as.numeric(gsub(pattern = "%","",df$variable)) > > > > > > *From:* GALIB KHAN > *Sent:* Saturday, August 18, 2018 4:23 PM > *To:* reichm...@sbcglobal.net > *Cc:* r-help@r-pro

Re: [R] Converting chr to num

2018-08-18 Thread GALIB KHAN
Hey there, as.numeric(gsub(pattern = "%","","12.6%")) On Sat, Aug 18, 2018 at 4:20 PM, Jeff Reichman wrote: > R-Help Forum > > > > How do I convert a chr variable that contains percentages to an integer > > > > Example 12.6% (chr) to 12.6 (int) > > > > Jeff > > > [[alternative HTML vers

Re: [R] RuGarch issue

2018-08-17 Thread GALIB KHAN
this post has been submitted to r-sig-finance Galib Khan Rutgers Business School '18 Business Analytics and Information Technology (609) 412-3654 On Fri, Aug 17, 2018 at 2:27 PM, GALIB KHAN wrote: > Sup guys, > > Got an interesting issue with the rugarch package. > > I

[R] RuGarch issue

2018-08-17 Thread GALIB KHAN
Sup guys, Got an interesting issue with the rugarch package. I noticed that when I changed the order of the external regressors, there are different values for the robust coefficient matrix. The values should be the same (according to the ordering of the variables). However, I am getting drastica