search for: shivipmp82

Displaying 6 results from an estimated 6 matches for "shivipmp82".

2018 Mar 17
3
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...esult 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: > &...
2017 Sep 20
4
arguments imply differing number of rows
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 & find the solution. Thanks, Shivi [[alternative HTML version
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...ur 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 find the reproducible e...
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 am getting the error a...
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...tion, 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(as.data.frame(CR1)) &...
2018 Mar 17
2
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
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: corrplot(CR1, method = "circle") But i am getting this error: Error in