Re: [R] Need to understand how to troubleshoot below error

2018-10-20 Thread Jeff Newmiller
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 completely 
reverse the permissions damage that has already been done. I suggest you remove 
R completely and in addition remove the user library directory located at 
C:\\Users\\Vidyut\\Documents\\R or  C:\\Users\\Vidyut\\R. This may require 
working in As Administrator mode to succeed, which is why some local tech 
support might be advisable, particularly if my diagnosis is wrong.

Once R is completely eradicated you should be able to install R as a normal 
user and give permission to install only when prompted, and avoid using As 
Administrator mode in the future.


On October 20, 2018 8:30:11 PM PDT, MEENA SUBRAMANIAN  
wrote:
> 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 save any files.
>
>
>
>setwd("C:\\Users\\Vidyut\\Desktop\\I2R")
>
>
>
>getwd()
>
>
>
>housesalesdata<-read.csv("housesalesdata.csv")
>
>
>
>housefeaturesdata<-read.csv("housefeaturesdata.csv")
>
>
>
>housedata<-merge(housesalesdata,housefeaturesdata,by="ID")
>
>
>
>write.csv(housedata, file ="housedatacomplete.csv")
>
>
>
>Thanks 
>
>Meena 
>
>
>
>On ‎Sunday‎, ‎21‎ ‎October‎ ‎2018‎ ‎04‎:‎49‎:‎49‎ ‎AM‎ ‎IST, Jeff
>Newmiller  wrote:  
> 
>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 guess something about what may be wrong if you provide
>that information in your request here, but it is more likely that you
>will need to use the operating system to investigate permissions which
>are really off-topic here. Your best bet will be to find a local
>computer tech or sysadmin to help you solve your mystery, since there
>can be many special configurations we on the mailing list won't know
>about.
>
>One note: since you are using RStudio, be sure to create a Project
>directory/file and do your work with a project open. That way most
>problems with permissions and working in the wrong directory should
>usually be avoided. If you cannot create a project then you definitely
>need local help.
>
>On October 20, 2018 3:08:28 PM PDT, jim holtman 
>wrote:
>>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 and then follow that path to make sure that there is a directory
>>there that you can write into.
>>
>>Jim Holtman
>>*Data Munger Guru*
>>
>>
>>*What is the problem that you are trying to solve?Tell me what you
>want
>>to
>>do, not how you want to do it.*
>>
>>
>>On Sat, Oct 20, 2018 at 1:19 PM MEENA SUBRAMANIAN via R-help <
>>r-help@r-project.org> wrote:
>>
>>> 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': No such file or
>>directory
>>>
>>> Meena
>>>        [[alternative HTML version deleted]]
>>>
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>>    [[alternative HTML version deleted]]
>>
>>__
>>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide
>>http://www.R-project.org/posting-guide.html
>>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] studio server on High SIerra

2018-10-20 Thread Jeff Newmiller
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 specific questions.

RStudio requires that you install R first, but as Bert points out this is not 
the support area for RStudio. The appropriate topics for this mailing list are 
described in the Posting Guide [3]. Note for future reference that when you 
send your email formatted as HTML what we see is a garbled version of what you 
sent, so in the future look for the plain-text setting in your email program 
when sending email to this list.

[1] https://cran.r-project.org/bin/macosx/
[2] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
[3] See footer of this or any email from the list.

On October 20, 2018 9:01:47 PM PDT, Bert Gunter  wrote:
>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 Ira  wrote:
>
>> 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 -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>   [[alternative HTML version deleted]]
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] studio server on High SIerra

2018-10-20 Thread Bert Gunter
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 Ira  wrote:

> 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 -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] studio server on High SIerra

2018-10-20 Thread Fuchs Ira
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 -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] fixef.plm: Extract the Fixed Effects

2018-10-20 Thread Jayashree Raman
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="usersessions-with-char-sec-train-subset-100.csv",
header=TRUE, row.names = NULL, sep="|"))

panel.data.train <- plm.data(train_data, index = c("session_start","userid"))

mdl_fe <-plm(session_length~age+session_length_mvavg, data =
panel.data.train, model = "within")

##Summaries
summary(mdl_fe)
fixefs <- fixef(mdl_fe)[index(mdl_fe, which = "userid")]
fit_hand <- fixefs + mdl_fe$coefficients[1] * panel.data.train$age +
mdl_fe$coefficients[2] * panel.data.train$session_length_mvavg
fitval <- panel.data.train$session_length-mdl_fe$residuals

Also when I tried the prediction function from the prediction package,
I get the following error:
Error in crossprod(beta, t(X)) : non-conformable arguments

Any help is appreciated.

Thanks!
Jayashree

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Need to understand how to troubleshoot below error

2018-10-20 Thread Jeff Newmiller
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 guess 
something about what may be wrong if you provide that information in your 
request here, but it is more likely that you will need to use the operating 
system to investigate permissions which are really off-topic here. Your best 
bet will be to find a local computer tech or sysadmin to help you solve your 
mystery, since there can be many special configurations we on the mailing list 
won't know about.

One note: since you are using RStudio, be sure to create a Project 
directory/file and do your work with a project open. That way most problems 
with permissions and working in the wrong directory should usually be avoided. 
If you cannot create a project then you definitely need local help.

On October 20, 2018 3:08:28 PM PDT, jim holtman  wrote:
>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 and then follow that path to make sure that there is a directory
>there that you can write into.
>
>Jim Holtman
>*Data Munger Guru*
>
>
>*What is the problem that you are trying to solve?Tell me what you want
>to
>do, not how you want to do it.*
>
>
>On Sat, Oct 20, 2018 at 1:19 PM MEENA SUBRAMANIAN via R-help <
>r-help@r-project.org> wrote:
>
>> 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': No such file or
>directory
>>
>> Meena
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>   [[alternative HTML version deleted]]
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Need to understand how to troubleshoot below error

2018-10-20 Thread jim holtman
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 and then follow that path to make sure that there is a directory
there that you can write into.

Jim Holtman
*Data Munger Guru*


*What is the problem that you are trying to solve?Tell me what you want to
do, not how you want to do it.*


On Sat, Oct 20, 2018 at 1:19 PM MEENA SUBRAMANIAN via R-help <
r-help@r-project.org> wrote:

> 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': No such file or directory
>
> Meena
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[ESS] ESS 18.10 released

2018-10-20 Thread Martin Maechler via ESS-help
Dear ESS Users

it's a pleasure to announce the release of

 ESS 18.10 (2018 October)

of a few minutes ago in the name of the ESS core team.

There have been many changes and improvements since the last
official release 17.11 (in last November)

For the complete list of (documented) new features and bug
fixes, read the following (beginning of file 'ANNOUNCE') to the end.

In the name of the ESS core team, with thanks to all helpers,
notably by github pull requests, 

Martin Maechler, ETH Zurich



1 ANNOUNCING ESS


The ESS Developers proudly announce the release of ESS 18.10

   Emacs Speaks Statistics (ESS) provides an intelligent, consistent
interface between the user and the software.  ESS interfaces with
R/S-PLUS, SAS, BUGS/JAGS, Stata and other statistical analysis packages
under the UNIX, GNU Linux, Microsoft Windows, macOS and other operating
systems.  ESS is a package for the GNU Emacs and XEmacs text editors
whose features ESS uses to streamline the creation and use of
statistical software.  ESS knows the syntax and grammar of statistical
analysis packages and provides consistent display and editing features
based on that knowledge.  ESS assists in interactive and batch execution
of statements written in these statistical analysis languages.

   ESS is freely available under the GNU General Public License (GPL).
Please read the file COPYING which comes with the distribution, for more
information about the license.  For more detailed information, please
read the README files that come with ESS.

1.1 Getting the Latest Version
==

ESS supports GNU Emacs versions 24.3 and newer.

   ESS is most likely to work with current/recent versions of the
following statistical packages: R/S-PLUS, SAS, Stata, OpenBUGS and JAGS.

   To build the PDF documentation, you will need a version of TeX Live
or texinfo that includes texi2dvi.

   There are two main methods used for installing ESS. You may install
from a third-party repository or from source code.  Once you install it,
you must also activate or load ESS in each Emacs session, though
installation from a third-party repository likely takes care of that for
you.  See *note Activating and Loading ESS:: for more details.

1.2 Installing from a third-party repository


ESS is packaged by many third party repositories.  Many GNU/Linux
distributions package it, usually with the name "emacs-ess" or similar.

   ESS is also available through Milkypostman’s Emacs Lisp Package
Archive (MELPA), a popular repository for Emacs packages.  Instructions
on how to do so are found on MELPA's website (https://melpa.org/).
MELPA also hosts MELPA-stable with stable ESS builds.  You may choose
between MELPA with the latest and greatest features (and bugs) or
MELPA-stable, which may lag a bit behind but should be more stable.

   After installing, users should make sure ESS is activated or loaded
in each Emacs session.  See *note Activating and Loading ESS::.
Depending on install method, this may be taken care of automatically.

1.3 Installing from source
==

Stable versions of ESS are available at the ESS web page
(https://ess.r-project.org) as a .tgz file or .zip file.  ESS releases
are GPG-signed, you should check the signature by downloading the
accompanying '.sig' file and doing:

 gpg --verify ess-18.10.tgz.sig

   Alternatively, you may download the git repository.  ESS is currently
hosted on Github: .  'git clone
https://github.com/emacs-ess/ESS.git' will download it to a new
directory 'ESS' in the current working directory.

   We will refer to the location of the ESS source files as
'/path/to/ESS/' hereafter.

   After installing, users should make sure they activate or load ESS in
each Emacs session, see *note Activating and Loading ESS::

   Optionally, compile elisp files, build the documentation, and the
autoloads:
 cd /path/to/ESS/
 make
   Without this step the documentation, reference card, and autoloads
will not be available.  Uncompiled ESS will also run slower.

   Optionally, you may make ESS available to all users of a machine by
installing it site-wide.  To do so, run 'make install'.  You might need
administrative privileges:

 make install

   The files are installed into '/usr/share/emacs' directory.  For this
step to run correctly on macOS, you will need to adjust the 'PREFIX'
path in 'Makeconf'.  The necessary code and instructions are commented
in that file.

1.4 Activating and Loading ESS
==

After installing ESS, you must activate or load it each Emacs session.
ESS can be autoloaded, and if you used a third-party repository (such as
your Linux distribution or MELPA) to install, you can likely skip this
section and proceed directly to *note Check Installation::

   Otherwise, you may need to add the path to ESS to 'load-path' with:

 (add-to-list 

[R] Need to understand how to troubleshoot below error

2018-10-20 Thread MEENA SUBRAMANIAN via R-help
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': No such file or directory

Meena 
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] (no subject)

2018-10-20 Thread Bert Gunter
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 as desired.
Or upper.tri() and lower.tri() can be used to separately extract the upper
and lower triangle entries via logical indexing.

Cheers,
Bert


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:48 AM Jeremie Juste 
wrote:

>
>
> 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,]247
> [2,]368
>
> Hope it helps,
>
> Jeremie
>
> malika yassa  writes:
>
> >  hellow
> > yes i want to extract the non-diagonal part
> > for exampl
> > i have this matrix  [,1] [,2] [,3]
> > [1,]147
> > [2,]258
> > [3,]369the result
> >
> >   [,1] [,2] [,3]
> > [1,]247
> > [2,]368
> >
> > Le samedi 20 octobre 2018 à 15:21:53 UTC+2, Jeremie Juste <
> jeremieju...@gmail.com> a écrit :
> >
> >  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 matrix?
> >
> > Best regards,
> >
> > Jeremie
> >
> >> 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 and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] (no subject)

2018-10-20 Thread Jeremie Juste



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,]247
[2,]368

Hope it helps,

Jeremie

malika yassa  writes:

>  hellow
> yes i want to extract the non-diagonal part 
> for exampl
> i have this matrix  [,1] [,2] [,3]
> [1,]    1    4    7
> [2,]    2    5    8
> [3,]    3    6    9the result 
>
>   [,1] [,2] [,3]
> [1,]    2    4    7
> [2,]    3    6    8
>
> Le samedi 20 octobre 2018 à 15:21:53 UTC+2, Jeremie Juste 
>  a écrit :  
>
>  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 matrix?
>
> Best regards,
>
> Jeremie
>
>> 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 and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] (no subject)

2018-10-20 Thread Jeremie Juste
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 matrix?


Best regards,

Jeremie






> 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 and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] (no subject)

2018-10-20 Thread malika yassa via R-help
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

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] (no subject)

2018-10-20 Thread malika yassa via R-help
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 and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.