Displaying 20 results from an estimated 800 matches similar to: "arguments imply differing number of rows"
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",
2018 Mar 17
3
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
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 example:
dput(head(CR1,10))
structure(c(26L, 46L, 39L, 38L, 47L, 59L, 56L, 61L, 43L, 60L,
78L, 63L, 2L, 58L, 8L, 1L, 1L, 9L, 11L, 2L, 1037500L, 46747L,
346300L,
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
That does clarify for me that you're missing a step: I didn't 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
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
2017 Jun 29
3
Help : glm p-values for a factor predictor
Hello,
i am a newby on R and i am trying to make a backward selection on a
binomial-logit glm on a large dataset (69000 lines for 145 predictors).
After 3 days working, the stepAIC function did not terminate. I do not
know if that is normal but i would like to try computing a "homemade"
backward with a repeated glm ; at each step, the predictor with the max
pvalue would be
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
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.matrix(as.data.frame(CR1))
doesn't need the as.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
2018 Apr 24
0
How to visualise what code is processed within a for loop
The loop never assigns anything to d0, only t. The first line makes t
a character string "d0$V1" (or "d0$V2" etc.). The second line assigns
either 0 or 1 to t.
Looking at this, I don't think you've got into the R psychology (bad
news if you want to use R, good news in many other ways). I assume d0
is a list, so could you put the V's into a vector, and then just use
2017 Jun 29
0
Help : glm p-values for a factor predictor
It might help if you provided the code you used. It's possible that
you didn't use direction="backward" in stepAIC(). Or if you did, it
was still running, so whatever else you try will still be slow. The
statement "R provides only the pvalues for each level" is wrong: look
at the anova() function.
Bob
On 29 June 2017 at 11:13, Beno?t PELE <benoit.pele at
2018 Apr 24
4
How to visualise what code is processed within a for loop
Hi,
I am trying to debug the following code:
for (i in 1:10){
t <- paste("d0$V",i,sep="")
t <- ifelse(regexpr(d1[i,1],d0$X0)>0,1,0)
}
and I would like to see what code is actually processing R, how can I do
that?
More to the point, I am trying to update my variables d0$V1 to d0$V10
according to the presence or absence of some text (contained in the file
d1)
2018 Jun 01
2
Cannot Load A Package
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 https://cran.r-project.org/src/contrib/semnet.tar.gz but
doesnt seem to
2006 Jan 12
4
has_one relationship problem
I was wondering if anyone could see the error in this littte application
I have two models, User and Selection
Selection is an extension of the User model
so in the User model I have a has_one :selection
and in Selection I have a belongs_to :user
in my views, i cannot get @user.selection to work but @user works fine.
http://www.rafb.net/paste/results/GSBt1e61.html
Thanks,
r.b
2006 Sep 15
1
Xen Installation problems
Hello Xen Users,
I am facing a problem getting my installation of XEN boot up on a Red
Hat Linux Guest OS. What''s happening is that the grub loader tries to
install Xen but after a while it crashes and starts rebooting
recursively. I have tried both the entries listed below. I am using the
following entries in the grub.conf file:
title Xen-bhatia 3.0 / XenLinux-bhatia 2.6.16
2008 Sep 08
3
Support for different Architectures
Dear All,
I am new to FLAC. I have to port FLAC on sh4 architecture. Can somebody
please let me know which architectures FLAC supports today? Also if
somebody has an idea about the functionality of the code written in
assembly, it would be of great help.
Thanks and Regards
Divyahaas Bhatia
Senior Technical Leader
Pace Micro Technology (India) Private Limited
Bringing Technology
2008 Jul 25
2
problem in choosing cran mirror !
Dear Sir/Madam
?
?
why during choosing the cran mirror of India on my?Vista PC?gives an error of like this
?
> chooseCRANmirror()
Warning message:
?In open.connection(con, "r") : unable to resolve 'cran.r-project.org'
?
?
?
?
pls help me
?
?
?
?
?
?
Thanks
From Chandigarh to Chennai - find friends all over India. Go to http://in.promos.yahoo.com/groups/citygroups/
2016 Mar 08
2
GSOC inquiry.
Hi, I am Om Shivom pursuing CSE from PEC University of Technology,
Chandigarh and I have previously worked on C++ and Python. I am interested
in contributing to llvm through GSOC 2016. I need a little guidance on how
to get started here.
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Feb 28
1
FASTTRAP_SUNWDTRACE_SIZE
Hi,
What is the value of FASTTRAP_SUNWDTRACE_SIZE for PowerPC ?
This macro is in file fasttrap_isa.h
For Intel : /usr/src/uts/intel/sys
#define FASTTRAP_SUNWDTRACE_SIZE 64
and for Sparc : /usr/src/uts/sparc/sys
#define FASTTRAP_SUNWDTRACE_SIZE 128
Regards
Deepak Bhatia
This message posted from opensolaris.org
2014 Sep 11
1
chan_sip.c:23647 handle_request_invite: Failed to authenticate device
Hi,
Why are we getting message in the asterisk
[Sep 10 12:55:23] NOTICE[15043]: chan_sip.c:23647 handle_request_invite:
Failed to authenticate device 601<sip:601 at 111.118.185.107>;
tag=2f498fbd
[Sep 10 12:55:24] NOTICE[15043]: chan_sip.c:23647 handle_request_invite:
Failed to authenticate device 601<sip:601 at 111.118.185.107>;tag=209a8aa9
Regards
Deepak Bhatia
--------------
2007 Jun 01
1
Error starting dovecot 1.0.0 /var/run/dovecot/auth-master failed: No such file or directory
Hello:
i'm trying a tutorial
(http://workaround.org/articles/ispmail-etch/en.html) for setting up
postfix / dovecot but am getting some errors when i try to start
dovecot
here's some details of the enviromnent. (Fedora Core 6)
$ uname -a
Linux foo.com 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006
i686 i686 i386 GNU/Linux
$ ./dovecot --version
1.0.0
$ ./dovecot -n
#
2008 Jul 25
2
Problem in Echocancelation
Hi,
We are using your speex codec in our VirtuvalClassRoom product. It's working good but we have problem using your echo canceller. Can you send me some code samples which use the echo cancelation?
thanks
suresh A
Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/
-------------- next part --------------
An HTML
2004 Oct 20
2
Odd behaviour with scale()
Moi!
A student here has been getting a bit irritated with some side effects
of scale() (OS is Windows XP, the behaviour occurs in R 2.0.0, but not
1.7.1). The problem is that she scales a variable in a data frame, then
does a regression, and tries to get some predictions for some new data.
However, at this point she gets an error (see the example below). This
seems to be because the