Displaying 20 results from an estimated 8000 matches similar to: "Indexing column of a matrix with infix $"
2003 Aug 20
1
question for loop on matrix row level.
For the 1000 simulations, a matrix will be generated
each time. And, I need to choose the first row of the
generated matrix. The following loop doesn't work
though:
for (i in 1:1000) {
aval[i]<- matrixname[1,]
}
Any solution? thanks!
2010 Jun 02
3
writing a matrix in a file
Hi,
I want to write a matrix (n*m) in a file (Text file) such that the file
will be as Result file (below).
I use the below command but it write all numbers in one column,
> write(paste(matrixname),file="test.txt",append=TRUE)
how can I do this?
Result file:
5 5 -1 -1 -1 -1
8 8 2 7 6 5
6 6 8 2 7 5
Matrix:
[,1] [,2] [,3] [,4] [,5]
2010 Oct 04
2
print-show-display a matrix
Hello.
I want to print the value a matrix has. The matrix's size is not too big
(100*100 cells). I tried print(matrixname) but as it does not fit very well on
my screen R splits it into several small matrixes that do overflow my screen.
IS it possible somehow to display this matrix as one (even if this needs to go
fullscreen) . There might be some function for that like plot cells or
2007 Sep 11
1
storing text and decimal values in a matrix form
Hi,
I would like to store some text and decimal values in the following
form:
name dec.val dec.val ... dec.val
name dec.val dec.val ... dec.val
...
name dec. val dec.val ... dec.val
To do so, I created a matrix of the necessary size (x row per y cols)
with the command
matrixname <- matrix(0,x,y)
and proceeded to fill in the matrix with information drawn from a
data frame.
The
2010 Apr 23
1
Oddity with internet access and R 11.0 with Sophos firewall and Windoze XP - solved
Just in case anyone else hits this. I just installed R 11.0 alongside R
10.1.0 (off my D: drive in D:\R\... but I think that's irrelevent) and
all went well, I selected my nearest CRAN mirror (Bristol is the one I
like) and getting the selection list seemed to take ages though it did
come eventually. However, I then got an error message saying that R
couldn't make contact on port 80. I
2006 Jul 09
3
vignette("introduction") causes "Error in sprintf(" (PR#9069)
Full_Name: Chris Evans
Version: 2.3.1
OS: Windoze XP
Submission from: (NULL) (217.34.100.197)
If I give "vignette("introduction")" I get:
Error in sprintf(gettext(fmt, domain = domain), ...) :
use format %s for character objects
vignette() works for some other vignettes and "vignette()" gets me a list of
vignettes and shows three with the name
2004 Mar 19
2
Moving to 1.8.1: can you transfer your package list?
I prefer to use R on a linux box and ultimately need things to end up
there to serve things up using David Firth's excellent CGIwithR and
apache, but one step at a time and I've installed 1.8.1 under win2k.
Another question that I'm sure is simple: is there a simple way to
find the list of installed libraries I had in my 1.7.1 installation
and use that to drive install.packages?
2019 Jan 12
2
Installing Rstudio and shiny free server on Debian
Thanks Dirk,
I wonder if I'm hitting problems you're not seeing not only because of running stretch/stable but also because of running the i386 version. I suspect most people are on 64 bit systems now.
Anyway, I have managed to install Rstudio OK by going up to stretch-cran35. Rstudio wouldn't install from there:
root at Toshiba-L750-Stretchi386:/etc/apt# apt-get install rstudio
2007 May 13
2
Oddities upgrading from 2.4.1 to 2.5.0
I'm working on Windoze XP and have for some time installed R in D:\R and
upgraded my packages after installing the new version of R with a bit
of code I think I got from the list:
ip <- installed.packages(lib.loc = "d:\\R\\R-2.4.1\\library")
ip <- ip[ip[,1]!="base" ,1]
install.packages(ip)
This time around that's produced some warning grumbles:
Warning messages:
2012 Aug 01
2
Problem updating packages in 2.15.1 on Ubuntu 12.04
The specific message is:
"Warning: package 'spatial' in library '/usr/lib/R/library' will not be
updated"
and the number of libraries about which that's the complaint is now
increasingly almost daily so clearly something is wrong.
I'm working on a laptop on which I do the recommended Ubuntu updates
daily. I done a standard installation of R 2.15.1 using
2006 Jul 12
2
Are infix binary operators ** and ^ aliased?
Dear R-help,
After making a typo (reminiscent of FORTRAN 77, I guess) I found the
following:
> identical(all.equal(2^(-10:10), 2**(-10:10)), TRUE)
[1] TRUE
I have tried to find the documentation about the ** operator but I was
unsuccesful this way:
> sessionInfo()
Version 2.3.1 (2006-06-01)
powerpc-apple-darwin8.6.0
attached base packages:
[1] "methods" "stats"
2011 Sep 20
2
update.packages() as ordinary user, /usr/lib/R/site-library is not writable
I am moving from windoze on a Dell laptop to Debian but I seem to have
hit a snag for R. I managed to find the information to point an
/etc/apt/sources.list entry at my local CRAN repository and have
installed R 2.13.1 for squeeze from the Bristol UK repository.
I installed a number of the additional R packages using synaptic which
reported no errors but when I run my first
2023 May 02
1
Reg: Help regarding ggplot2
It's not clear what you want but ...
On 02/05/2023 10:57, Upananda Pani wrote:
> Dear All,
>
> I have a dataset which contains date and 12 other countries data. I
> have extracted the data as xts object.
>
> I am not able to recall all the series in the Y axis. My data set
> looks like this
>
> index crepub finland france germany italy netherlands norway poland
>
2019 Jan 22
4
So nearly there, but can't install rJava
As ever, I learn from this: I didn't know apt-file. Got it, installed it, used it:
root at DebianAdvent:/home/chris/Downloads/gmp-6.1.2# apt-file search jni.h
android-libnativehelper-dev: /usr/include/android/nativehelper/jni.h
android-platform-frameworks-native-headers: /usr/include/android/android/asset_manager_jni.h
android-platform-frameworks-native-headers:
2025 May 19
1
Very odd issue getting "Input/output error" running shiny app from index.html locally but same shiny on my server working fine
[forgot to hit reply-all]
Hi Chris,
When I have encountered similar sounding problems in the past I was able to
work around them as follows.
Instead of running rstudio locally, I run rstudio-server locally and then
in a browser I enter the URL http://localhost:8787/
HTH,
Eric
On Mon, May 19, 2025 at 6:21?PM Eric Berger <ericjberger at gmail.com> wrote:
> Hi Chris,
> When I have
2019 Jan 21
2
r-api-3 with R 3.5.2. on Stretch: is there a workaround?
Now that I am at least mapping the right repository to my Debian version (doh!) I have another question. In the installation page at https://cran.r-project.org/bin/linux/debian/#debian-stretch-stable there is the line:
"Please note that R packages from the Debian stretch distribution are not compatible with R 3.5.x, as it provides r-api-3.5, while the stretch packages depend on
2020 Oct 14
1
Can anyone advise me on running R and Rstudio on an AWS virtual machine
This is a funny one and if it's off topic here, I would be grateful if I could be guided to where it would be on topic. I have done some searching but not very successfully so far.
Situation: I am doing some analyses of data that are stored in a postgres database in the AWS cloud and using the RJDBC and dplyr packages for the specifics of yanking the data to my own machine. They work and
2024 Aug 16
1
boxplot notch
That's not really a reprex Sibylle.? I did try to use it to see if I
could work out what you were trying to do and help but there is so much
in there that I suspect is distraction from the notch issue and its
error message.
Please can you give us something stripped of all unecessary things and
tell us what you want?
Something like data that we can read as a tribble() or from a dput() of
2019 Jan 22
2
So nearly there, but can't install rJava
Wow, this has amplified my respect and gratitude for the R Debian repositories. Doing all the install.packages() and following the clues about missing dependencies has taken hours! However, I have almost all the packages I want installed on this machine and Rstudio and the shiny server are installed and running fine. Bizarrely, to my mind, I am totally failing on rJava and hence a number of
2023 May 02
5
Reg: Help regarding ggplot2
Dear All,
I have a dataset which contains date and 12 other countries data. I
have extracted the data as xts object.
I am not able to recall all the series in the Y axis. My data set
looks like this
index crepub finland france germany italy netherlands norway poland
<date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>