Hi All,
I am trying to fetch data from a pdf file with the below code but getting
the error message:
Error in stri_split_regex(string, pattern, n = n, simplify = simplify, :
argument "string" is missing, with no default
library(readr)library(stringr)library(magrittr)library(dplyr)
table_data
ore calculating mean in each category.
Complete cases removes all lines with at least one NA in your data frame, which
probably results to empty data frame.
Cheers
Petr
> -Original Message-
> From: R-help On Behalf Of Shivi Bhatia
> Sent: Saturday, August 25, 2018 4:01 PM
> To: R-
Hi All- I am running a sentiment scoring model and the code is as below:
sentiments_per_Category <- aggregate(relative_sentiment_frequencies,
by = list(Category =
df$Case.Category), mean)
while i run the head command most of the values are NaN. i then used
togaware.com;, type="source").
>
> Regards, Shivi
>
>
> On Sun, Aug 12, 2018 at 7:20 PM Michael Dewey <mailto:li...@dewey.myzen.co.uk>> wrote:
>
> Dear Shivi
>
> What error message do you get when you try to install RGtk2?
>
> Micha
Michael Dewey
wrote:
> Dear Shivi
>
> What error message do you get when you try to install RGtk2?
>
> Michael
>
> On 12/08/2018 11:49, Shivi Bhatia wrote:
> > Hi Eric,
> >
> > Thank you for the reply. I am adding the session details below, hope it
> > h
Best,
> Eric
>
>
> On Sat, Aug 11, 2018 at 6:55 PM, Shivi Bhatia
> wrote:
>
>> Hi,
>>
>> Need assistance on installing Rattle.
>>
>> I have followed the instructions on https://rattle.togaware.com/
>> but still facing error installing the packag
Hi,
Need assistance on installing Rattle.
I have followed the instructions on https://rattle.togaware.com/
but still facing error installing the package.
ERROR: dependency 'RGtk2' is not available for package 'rattle'.
Have tried installing RGt2 from multiple sources and its still failing.
One
Thank you Dan, this is what i had been searching. Thanks again,
Regards, Shivi
On Sat, Jun 2, 2018 at 12:33 PM, Daniel Nordlund
wrote:
> On 6/1/2018 4:17 PM, Duncan Murdoch wrote:
>
>> On 01/06/2018 5:24 PM, Shivi Bhatia wrote:
>>
>>> Hi All,
>>>
>&g
Hi All,
I am trying to download semnet package but getting the error:
package not available for R version 3.4.4.
I tried downloading it from
install.packages('semnet',repos='http://cran.us.r-project.org')
and install.packages('semnet',repos='http://cran.revolutionanalytics.com/')
and even the
ects a correlation matrix, not your original data. You need to
> use cor() first.
>
> That's pretty clear in the documentation. See for instance the examples:
>
> data(mtcars)
> M <- cor(mtcars)
> corrplot(M)
>
> Sarah
>
> On Sat, Mar 17, 2018 at 12:00 PM Shiv
f that doesn't work, then provide a reproducible example so we can
> offer further advice.
>
> Sarah
>
> On Sat, Mar 17, 2018 at 11:08 AM, Shivi Bhatia <shivipm...@gmail.com>
> wrote:
> > Created a new data set with 3 numeric variable to find correlation
> >
> &
Created a new data set with 3 numeric variable to find correlation
CR1<- mar%>% as_data_frame%>% select(AGE, OLD_CAR_PURCHASE_YRS,
Total.Spend.With.AA)
had to convert it to a data frame, code:
as.matrix(as.data.frame(CR1))
Now i need to run a correlation plot for these 3 variables:
th=5),
> seq(3000, 3200, length=5))
>
> Bob
>
> On 20 September 2017 at 17:07, Shivi Bhatia <shivipm...@gmail.com> wrote:
> > Hi Team,
> >
> > I using the syntax as:
> >
> > data.df<- data.frame(
> > city= c(rep(c("Delhi", &qu
Hi Team,
I using the syntax as:
data.df<- data.frame(
city= c(rep(c("Delhi", "Bangalore","Chandigarh"),each=5)),
population= c(4000:6000,3500:4300,3000:3200)
)
But i am getting the error as arguments imply differing number of rows: 15,
3003.
Tried searching google but could not understand
blockquote, div.yahoo_quoted { margin-left: 0 !important; border-left:1px
#715FFA solid !important; padding-left:1ex !important; background-color:white
!important; } R and Tableau can easily get connected with their latest
versions. I have been using both for my case. 10.1 version of tableau
Hi Team,
I am creating an n-gram analysis on a text mining data however receving the
error as:-
Error in .jcall("RWekaInterfaces", "[S", "tokenize", .jcast(tokenizer, :
java.lang.NullPointerException
I have used the function:
Ngramtok= function(x)NGramTokenizer(x, Weka_control(min=1, max=5))
u have 220+ files in this directory
>
>
>
> If you move respective files into some working directory you could use let
> say
>
>
>
> docs<- Corpus(DirSource(directory = "D:/Shivi/R Project/work"))
>
>
>
> without need to use setwd.
>
>
&g
e-
> > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Shivi
> > Bhatia
> > Sent: Thursday, March 2, 2017 1:00 PM
> > To: R-help <r-help@r-project.org>
> > Subject: [R] Reading Multiple Files for Text Mining in R Using TM
> Package?
> >
>
Hi All ,
I am trying to read few csv files for some text mining assignment.
I have used this command to check the # of files in the working directory:
length(dir(path="D:/Shivi/R Project", all.files = TRUE))
This results to more than 220 approx.
I just need 3 files from these to use for the
Hi Team,
I am building a sentiment and text mining model with R and Cognitive API. I
am getting the error as mentioned in the subject:
Request body format is wrong. Make sure the json request is serialized
correctly and there are no null members. Can you please advice what is
incorrect i am
Hi All,
I am working on a twitter analysis using the TM package. Below are some
codes:
1- Here i am creating a data frame of the data collected from twitter
chennai=as.data.frame(cbind(tweet=jallitext,date=jallidate,lat=jallilat,lon=jallilon,
Hi Team,
I am successfully able to add the company logo to the R markdown file using
the code below:
```{r, fig.width=3, fig.height=15,echo=FALSE, warning=FALSE, message=FALSE}
library(png)
library(grid)
img <- readPNG("D:/Shivi/R Project/Name.png")
grid.raster(img)
```
However the image gets
(210)258-9476
> e-mail: msh...@txbiomed.org
>
>
> On Aug 31, 2016, at 5:37 AM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> >
> > These are the packages i am using:
> > library(woe) #WEIGHT OF EVIDENCE
> > library(InformationValue) #INFORMATION VALUE
>
; could be using to look at weight of evidence and information value. For
> example, there is a WOE function in the Information package and a woe
> function in the woe package.
>
> Mark
>
> On Aug 30, 2016, at 2:15 PM, Shivi Bhatia <shivipm...@gmail.com> wrote:
>
> Hi Mark,
edical Research Institute
> P.O. Box 760549
> San Antonio, TX 78245-0549
> Telephone: (210)258-9476
> e-mail: msh...@txbiomed.org
>
>
>
>
>
>
>
> > On Aug 30, 2016, at 12:32 PM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> >
> > Hi William/ Mark,
L, 10L, 9L, 10L, 10L, 10L, 10L, 5L, 9L, 10L,
8L, 10L, 10L, 10L, 10L, 10L, 10L, 1L, 9L, 8L, 10L, 10L, 10L,
10L, 9L, 10L, 10L, 10L, 9L, 10L, 8L, 8L, 10L, 9L), rep_score = c(9.5,
10, 2, 10, 10, 3.5, 7.5, 10, 10, 10, 10, 10, 10, 2, 10, 7.5,
6, 10, 9.5, 10, 9, 10, 10, 5.5, 9, 10, 8, 10, 1
.org
>
>
>
>
>
>
>
> > On Aug 30, 2016, at 11:24 AM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> >
> > I know this question has been asked zillion times but even after
> consulting
> > Stack Overflow & other forum cant figure out the reason.
I know this question has been asked zillion times but even after consulting
Stack Overflow & other forum cant figure out the reason.
I have one var in my data-set names case age. This variable is numeric as:
class(SFDC$case_age)
*numeric*
however it throws this error:
<0 rows> (or 0-length
ity.html for
> guidance on how to ask for help effectively.
>
> Best,
> Ista
>
> Please correspond with the maintainer of that package.
> > --
> > Sent from my phone. Please excuse my brevity.
> >
> > On August 17, 2016 3:23:33 AM PDT, Shivi Bhatia <shi
WOW!!!
On Wed, Aug 17, 2016 at 8:15 PM, Jeff Newmiller <jdnew...@dcn.davis.ca.us>
wrote:
> Not our problem. Please correspond with the maintainer of that package.
> --
> Sent from my phone. Please excuse my brevity.
>
> On August 17, 2016 3:23:33 AM PDT, Shivi Bhatia
gt; > On Aug 16, 2016, at 11:07 AM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> >
> > HI Team,
> >
> > I am working to reduce the # of predictor variables from the model using
> > woe and iv values. For this i am using riv package. However
HI Team,
I am working to reduce the # of predictor variables from the model using
woe and iv values. For this i am using riv package. However i am having a
hard time installing this package:
install_github("riv","tomasgreif")
install.packages("DBI",dependencies=TRUE)
The error i receive is :
>
> On 12/08/2016 17:24, Shivi Bhatia wrote:
>
>> Hi Bert,
>>
>> Does this text file help. Apologies if this does not help as i have a
>> hard time on many occasions to get a reproducible example.
>>
>> If this doesn't work a CSV with only 100kb of data
er
>
> "The trouble with having an open mind is that people keep coming along
> and sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>
>
> On Fri, Aug 12, 2016 at 7:58 AM, Shivi Bhatia <shivipm...@gmail.com>
w us the output?
>
> And please do not post in HTML as it will mangle your post into
> unreadability.
>
> On 12/08/2016 10:10, Shivi Bhatia wrote:
>
>> Hi Team,
>>
>> I am creating *my first* Logistic regression on R Studio. I am working on
>> a
>>
>>
Hi Team,
I am creating *my first* Logistic regression on R Studio. I am working on a
C-SAT data where rating (score) 0-8 is a dis-sat whereas 9-10 are SAT. As
these were in numeric form so i had as below created 2 classes:
new$survey[new$score>=0 & new$score<=8]<- 0
new$survey[new$score>=9]<- 1
e_t[d$score > 3] = "medium"
> d$score_t[d$score >7 ] = "high"
> d$score_t = factor(d$score_t, levels = c("low", "medium", "high"),
> ordered=TRUE) #set ordered = FALSE for dummy variables
> X = model.matrix(~score_t, data=d)
> X
gt; Your ifelse will never work because
> > reasons$salutation== "Mr" & reasons$salutation=="Father" is always FALSE
> > and so is reasons$salutation=="Mrs" & reasons$salutation=="Miss".
> > Try instead | (or), not & (and).
> &
Dear Team,
I need help with the below code in R:
gender_rec<- c('Dr','Father','Mr'=1, 'Miss','MS','Mrs'=2, 3)
reasons$salutation<- gender_rec[reasons$salutation].
This code gives me the correct output but it overwrites the
reason$salutation variable. I need to create a new variable gender to
Found an alternative,
error A) was because the score.sentiment was calling the stringr package so
called it at the start of the RMD file
error B) looked for other alternative as rcharts didnt worked
On Thu, Aug 4, 2016 at 6:39 PM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> Dear Team,
Dear Team,
I am in need of urgent help on RMD output in html.
A) I am working on a sentiment analysis problem and have built a sentiment
model which works perfectly on R Studio however the same on the RMD shows
all the processing steps and details.
I have used echo= FALSE but i still the see
Hi Yihui,
Seems like the issue was with the wordcloud. I used wordcloud2 and it
worked handsomely.
& thanks for suggesting wordcloud2 seems far better than wordcloud.
tc.
On Sat, Jul 30, 2016 at 12:00 AM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> Thanks for the suggestion. eve
I'm not sure which wordcloud package you were using, but this one
> is the best one I have seen: https://github.com/Lchiffon/wordcloud2
>
> Regards,
> Yihui
> --
> Yihui Xie <xieyi...@gmail.com>
> Web: http://yihui.name
>
>
> On Fri, Jul 29, 2016 at 11:53 AM, Shiv
Dear Team,
I have created a text mining solution for one of my business owners.
I am sharing with his using RMD via HTML. All is working ok however the
WordCloud does not populate any output in RMD file.
Few months back when this happened on R studio i searched and used
dev.off() to shut down
te(date, format="%m-%d-%y"))
> head(cleaned)
> #date
> #1 2016-05-30
> #2 2016-06-01
> #3 2016-06-27
> That last one looks ok, so move on to your next tranformation step.
>
>
>
>
> Bill Dunlap
> TIBCO Software
> wdu
These are some of the codes will i have
eir$date<- as.Date(eir$date, "%d-%m-%Y")
class(eir$date)
eir$week<- (eir$date)
eir$week<- weekdays(as.Date(eir$week))
eir$week<- as.factor(eir$week)
On Tue, Jul 26, 2016 at 10:24 PM, Shivi Bhatia <shivipm...@gmail.com> w
ill Dunlap
> TIBCO Software
> wdunlap tibco.com
>
> On Tue, Jul 26, 2016 at 9:33 AM, Shivi Bhatia <shivipm...@gmail.com>
> wrote:
>
>> Thanks Tom for the recommendation. This is now working.
>>
>> Apologies if this sounds like a juvenile but i am not very g
ct is now displayed in the format %Y-%m-%d by default
>
> # so no need for the mdy() or ymd() function
>
>
>
> # extract the weekdays as number
>
> weekdays <- wday(a1$date)
>
>
>
> # note can’t have spaces in variable names
>
> week_names <- wday(a1$date, la
gt; If you can send this information before doing any processing on the date
> (i.e. before the as.Date() function) we may be able to help.
>
>
>
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Shivi
> Bhatia
> Sent: July 26, 2
Hi Team,
Please read wdy as wday it was mistakenly copied.
On Tue, Jul 26, 2016 at 9:15 PM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> Hi David please see the code and some reproducible data:
> eir$date<- as.Date(eir$date,format = "%m-%d-%y") then i had used the
&g
oved which are not
relevant in this context.
On Tue, Jul 26, 2016 at 8:55 PM, David L Carlson <dcarl...@tamu.edu> wrote:
> Show us the output, don’t just tell us what you are seeing. If the dates
> are correct in the csv file, show us the structure of the data frame you
> create
bles:
> $ date: Date, format: "2016-05-30" ...
> $ days: chr "Monday" "Monday" "Monday" "Monday" ...
>
> > eir
> date days
> 1 2016-05-30 Monday
> 2 2016-05-30 Monday
> 3 2016-05-30 Monday
> 4 2016-05-
s class(eir$date) as character and hence i cannot find
weekdays from this variable.
Sorry but i still dont understand in totality how R reads dates even though
have tried enough.
Regards, Shivi
On Tue, Jul 26, 2016 at 5:12 PM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> T
Thanks Duncan for the quick response. I will check again as you suggested.
If that doesn't work i will share a reproducible example.
Thanks again
On Tue, Jul 26, 2016 at 4:43 PM, Duncan Murdoch <murdoch.dun...@gmail.com>
wrote:
> On 26/07/2016 7:05 AM, Shivi Bhatia wrote:
>
Hi Team,
This scenario may have come across a number of times however i checked
nabble & SO and couldn't find a solution hence request assistance.
I have a date variable in my data-set eir. The class of this var was
character while i had read the file in r studio. Example of date - 05-30-16
To
Hi Team,
Please suggest.
On Sun, Jul 17, 2016 at 2:55 AM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> Good Day,
>
> I am working on a text mining assignment and have built the document
> matrix using the tm package.
>
> Now I need to run findAssocs from my dtm
Good Day,
I am working on a text mining assignment and have built the document matrix
using the tm package.
Now I need to run findAssocs from my dtm with some word say 'like' with a
correlation of 0.70 but as far as i have been researching it tells it this
function is only viable when we have
On 09 Jul 2016, at 12:29 , Shivi Bhatia <shivipm...@gmail.com> wrote:
> >
> > Dear Team,
> >
> > I am running a multinomial logistic regression model for one of the
> > fictitious data before i implement the same on my real data.
> > Here i am trying to predict b
Dear Team,
I am running a multinomial logistic regression model for one of the
fictitious data before i implement the same on my real data.
Here i am trying to predict based some scores and economic group whether a
person will go for a diploma, general or honors.
The code below:
m11$prog2<-
s N/A.
On Sun, Jun 26, 2016 at 3:25 AM, David Winsemius <dwinsem...@comcast.net>
wrote:
>
> > On Jun 25, 2016, at 12:05 PM, Shivi Bhatia <shivipm...@gmail.com> wrote:
> >
> > Dear Team,
> >
> > Please see the code below:
> >
> > Age1<- cut(
Dear Team,
Please see the code below:
Age1<- cut(desc$Age, breaks = c(20,30,40,Inf),labels = c("Low","Mid","Top"))
here i am creating three categories as mentioned from the age var from desc
data set.
All the values are set correctly however the values which are below 20 are
set to NA.
Is there
Dear Team,
I have searched for this error at various forums but enable to find a
relevant solution.
When i had installed R studio the WD was saved at a particular location now
when i try to change it gives me this error:
Error in setwd() : argument "dir" is missing, with no default. I have
Dear Team,
I am working on Wordcloud package for one of my projects. While it running
fine it is not showing the top most values in the output as it should. I
have ran it earlier and it was fine but now there seems to be an issue.
The wordcloud image shows the values which are appearing
Dear Team,
Every now and then I face some weird issues with R. For instance it would
not read my csv file or any other read.table command and once I would close
the session and reopen again it works fine.
It have tried using rm(list=ls()) & gc() to free some memory and restart R
[mailto:sunnysingha.analyt...@gmail.com]
Sent: Monday, February 15, 2016 5:52 PM
To: SHIVI BHATIA <shivi.bha...@safexpress.com>
Cc: r-help@r-project.org
Subject: Re: [R] Error with Twitter Authorization for Sentiment Analysis
Shivi,
Could you also share the piece of code to have a look at ?
R
Dear Team,
Every now and then I face issues while connecting to Twitter:
Error in check_twitter_oauth() : OAuth authentication error:
This most likely means that you have incorrectly called
setup_twitter_oauth()'
I have checked multiple github suggestion and statsexchange forum & have
Dear Team,
Please suggest on the below error while I am building a WordCloud on R for
one of user twitter account:
Error in UseMethod("TermDocumentMatrix", x) :
no applicable method for 'TermDocumentMatrix' applied to an object of
class "c('double', 'numeric')"
I have tried
Dear Team,
Kindly refer to the error below while generating a Twitter Analysis for my
firm:
# Warning message:
# In doRppAPICall("search/tweets", n, params = params, retryOnRateLimit =
retryOnRateLimit, :
As I checked on forums such as StackOverflow and other r related literature
it
HI Team,
Need help with the below syntax.
merge.salaries[, name:=paste("nameFirst","nameLast")]. Here merge.salaries
is the data set I have merged.
There are 2 columns nameFirst and nameLast I need to merge these two into
one and name as name however I can getting an error:
Error
Hi Duncan,
Please find the dput from the data.
ab<-read.csv("collection_last.csv",header=TRUE)
y<-ab[1:10,]
ab<- "2,458", "2,461", "2,462", "2,463", "2,464", "2,465", "2,468",
"2,469", "2,470", "2,473", "2,474", "2,475", "2,476", "2,477",
"2,478", "2,479", "2,480", "2,483", "2,484,267",
Dear Team,
I am facing an error while performing a manipulation using a dplyr package.
In the code below, I am using mutate to build a new calculated column:
kp<-read.csv("collection_last.csv",header=TRUE)
mutate(kp,dif=DOC_AMOUNT-RECEIPT_AMT+TDS_AMT+REBATE)
However it gives an
Dear Team,
I am working on aggregate function in R & have used the below code:
aggregate(a1$Final,list(Year=a1$Year),sum)
initially a1$Final was factor hence I used a1$Final= as.numeric(a1$Final) to
convert this into numeric. After conversion it shows the output but the
summarization
This e-mail is confidential. It may also be legally privileged. If you are not
the addressee you may not copy, forward, disclose or use any part of it. If you
have received this message in error, please delete it and all copies from your
system and notify the sender immediately by return
Dear Team,
Kindly look into the same at the earliest.
Regards, Shivi
From: SHIVI BHATIA [mailto:shivi.bha...@safexpress.com]
Sent: Friday, December 25, 2015 6:10 PM
To: 'r-help@r-project.org' <r-help@r-project.org>
Subject: Subscribe to Post
Dear Team,
I have recen
74 matches
Mail list logo