hellowplease,do you help mei have this matrixm<-matrix(( 1:12, nrow = 3 )
I want to delete the diagonal values of this matrix
can anyone do thisthinks
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE
hello
please you help mei have this functionx<-rnorm(10,0,1)f<-fuction(u,x)
{exp((x-u)}I want to calculate the integral of this function for each value of
x{for(i in 1:lenght(x)
integrate(f,lower=1,upper=4)
}but I can not find the vector of resulatwhere is the errorthinks
[[alternativ
malika yassa via R-help writes:
Hello,
Can you specify what you mean by deleting exactly?
Do you want to have zero in the diagonal or do you want to extract the
non-diagonal part?
Besides your matrix is not a square matrix. Do you really want to
extract the non-diagonal part of a non square mat
Hello,
Be sure to include the mailing list, when you
reply. In this way to improve your chances of obtaining a good answer
and everyone benefits.
May be something like this ?
aa <- matrix(1:9,3,3)
matrix(as.numeric(aa)[!as.numeric(aa) %in% diag(aa)],2,3)
[,1] [,2] [,3]
[1,]24
Jeremie's suggestion of course will fail if some of the off-diagonal
elements are the same as those on the diagonals.
The request doesn't make a lot of sense to me, but if "m" is the matrix,
m[row(z) != col(z)]
reliably extracts the vector of non-diagonal entries, which can then be
dimensioned
Hi
Im unable to write or save my R studio files
Below error is thrown when the same code works for others
Error in file(file, ifelse(append, "a", "w")) : cannot open the connectionIn
addition: Warning message:In file(file, ifelse(append, "a", "w")) : cannot
open file 'housedatacomplete.csv':
Can you show the code that was being executed at the time. Have you
verified that the path to the file is correct for the directory that you
are using? Have you validated that you have the correct permissions in the
directory to create the file? Show the complete path length that you were
using
When you specify a filename such as 'housedatacomplete.csv' which has no
directory path information, the file is assumed to be in the "current
directory" which you can identify using the status notation at the top of the
RStudio console window or using the R getwd() function. Note that we may gu
Hello,
I am trying to predict using a fixed effects model on an unbalanced
panel. I tried using the code in the example but the fitted values I
get are very different from the fitted values using observed value -
residual. I am giving my code snippet here:
train_data <-
na.omit(read.csv(file="u
Can I run Rstudio Server on OSX 10.13 (High Sierra). If so, can someone
please point me to install directions? I found an old post that talks about
using homebrew but I can't find the rstudio-server brew to install.
__
R-help@r-project.org mailing list -
RStudio is a separate product from R. Post on the RStudio site, not R-help.
Bert Gunter
"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 Sat, Oct 20, 2018 at 8:12 PM Fuchs I
There may be certain advantages to installing R via homebrew, but I wouldn't
know... I don't use Mac OS. I suspect your easiest route would be to install
via the method recommended on CRAN [1], and if you need more help getting R
working then there is the R-sig-mac mailing list [2] for OS specif
This looks like a case where some local tech assistance from someone familiar
with Windows permissions settings would be appropriate. You may have
erroneously installed R using "As Administrator" privileges, which can not only
make it difficult to do anything useful but it can be difficult to co
Hi Jeff,
im a new learner to R an I am trying to execute the below and my files get
created except for the last function write.csv(housedata, file
="housedatacomplete.csv")write where my new file housedatacomplete.csv does not
get created and no write command works for me. Also I am unable to s
14 matches
Mail list logo