search for: shivi

Displaying 7 results from an estimated 7 matches for "shivi".

Did you mean: shiva
2017 Sep 20
4
arguments imply differing number of rows
...= 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 & find the solution. Thanks, Shivi [[alternative HTML version deleted]]
2018 Mar 17
3
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...L, 8L, 1L, 1L, 9L, 11L, 2L, 1037500L, 46747L, 346300L, 672000L, 729000L, 470800L, 423000L, 72184L, 368022L, 1037500L), .Dim = c(10L, 3L), .Dimnames = list(NULL, c("AGE", "OLD_CAR_PURCHASE_YRS", "Total.Spend.With.Maruti"))) Please advice if this would help. Thank you. Shivi On Sat, Mar 17, 2018 at 8:45 PM, Sarah Goslee <sarah.goslee at gmail.com> wrote: > I'm assuming you are using the corrplot package. > > If so, your data object does need to be a matrix, not a data frame. > Since it's already a data frame, your line of code: > > as....
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...clearly follow your description at first. corrplot expects 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 Shivi Bhatia <shivipmp82 at gmail.com> wrote: > Hi Sarah, > Thank you for your help. > > I tried using CR1<-as.matrix(CR1) but gives error Error in corrplot(CR1, > method = "circle") : The matrix is not in [-1, 1]!. I am using a corrplot > library. > > Please f...
2017 Sep 20
0
arguments imply differing number of rows
4000:6000 gives you 4000, 4001, ..., 6000. I suspect you want population= c(seq(4000, 6000, length=5), seq(3500, 4300, length=5), seq(3000, 3200, length=5)) Bob On 20 September 2017 at 17:07, Shivi Bhatia <shivipmp82 at gmail.com> wrote: > 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...
2018 Mar 17
2
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...: length of 'dimnames' [2] not equal to array extent Researched and found Correlation <https://stackoverflow.com/questions/43362420/length-of-dimnames-2-not-equal-to-array-extent-when-using-corrplot-function>that corrplot requires a matrix however the error is still the same. Regards, Shivi [[alternative HTML version deleted]]
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...s.data.frame function, but more importantly, you didn't assign the result to anything: as.matrix() does not work in place. CR1 <- as.matrix(CR1) Now try. If 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 <shivipmp82 at gmail.com> wrote: > 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...
2018 Jun 01
2
Cannot Load A Package
...ages('semnet',repos='http://cran.us.r-project.org') and install.packages('semnet',repos='http://cran.revolutionanalytics.com/') and even the https://cran.r-project.org/src/contrib/semnet.tar.gz but doesnt seem to get success. Please suggest some alternate. Regards, Shivi [[alternative HTML version deleted]]