Displaying 20 results from an estimated 11000 matches similar to: "Loss of dimensions in subsetting arrays"
2009 Sep 04
5
< 0 x 0 matrix >
Hi,
Does anybody know, what is going on here?
> diag(sqrt(1))
[,1]
[1,] 1
> diag(sqrt(0.3333))
<0 x 0 matrix>
> sqrt(1)
[1] 1
> sqrt(0.3333)
[1] 0.5773214
BR, Markku Karhunen
researcher
University of Helsinki
2007 Apr 16
2
Matrix manipulation
Hi,
This is a very basic question, but apparently I am too stupid for it.
I have a large matrix A, and I need to avoid for loops. How could I
apply a function f(a,r,c) on each element of A, using the subscript (row
and column) of a as the other arguments?
Thanks in advance,
Markku Karhunen
National Public Health Institute,
Finland
2008 Jan 22
1
ODE's in R
Dear all,
Has anybody tried numerical solving of ODE's and/or transport equations
in R? (Don't ask how we ended up in using R for this job, in the first
place!)
More precisely, does anybody know any technical issue that could make
the work insecure in the sense of propagation of errors? Is there any
track of evidence that R is, in this kind of task, less reliable than
e.g. MatLab?
2005 Mar 24
1
Robust multivariate regression with rlm
Dear Group,
I am having trouble with using rlm on multivariate data sets. When I
call rlm I get
Error in lm.wfit(x, y, w, method = "qr") :
incompatible dimensions
lm on the same data sets seem to work well (see code example). Am I
doing something wrong?
I have already browsed through the forums and google but could not find
any related discussions.
I use Windows XP and R
2010 Apr 06
2
respecting original matrix dimensions
Hi All,
I'm hoping someone else can help me out with this. I am doing some
matrix algebra using sub-parts of matrices, and sometimes I need only
a single row/column of the original matrix. However, whenever I pull
out only a single row/column, R returns a row vector, but often this
will break my matrix algebra. Is there any *easy* way to get R to
remember what the single row/column came out
2005 Aug 17
2
About R variable references
Hello Group,
I could use an advice on how SEXP handles work. My aim is to implement a
system where I initially set a few global variables that are used for
communication between C and R code. Then I do some work with R code and
periodically call a function of my own that will update the system
state. Such a design is useful for many purposes (for GUIs to name one).
I am not entirely sure that R
2012 Mar 11
1
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week
New packages
------------
* EffectStars (1.0)
Maintainer: Unknown
Author(s): Gunther Schauberger
License: GPL-2
http://crantastic.org/packages/EffectStars
The package provides functions to visualize regression models with
categorical response. The effects of the covariates are plotted with
star plots in order to allow for an optical
2002 Oct 14
1
mount_smbfs: can't get handle to requester (no /dev/nsmb* device)
Hi all !
I have a little problem here mounting or browsing samba shares.
I have a FreeBSD 4.6.2 running samba, and a share on that called public.
when I try to mount that share it asks for password, and then gives an
error:
ex.
libra# mount_smbfs //maxi@samba/public /mnt
Password:
mount_smbfs: can't get handle to requester (no /dev/nsmb* device)
libra#
I can list the shares with
2008 Jul 11
1
Subsetting an array by a vector of dimensions
Hi
Is it possible to subset an n-dimensional array by a vector of n dimensions? E.g. assume I have
> x <- array(1:24, dim=2:4)
> x[1,1,2]
[1] 7
> dims <- c(1,1,2)
I would like a function that I can supply x and dims as parameters to, and have it return 7. Also, I would like to do something like:
> x[1,1,]
[1] 1 7 13 19
> dims2<- c(1,1,NA)
And have a function of x and
2003 May 25
1
SMS Service over SIP/IAX/h323/MCGP
The problem I have had with many SMS email gateways, is that they do not
allow to reply back. Of course, email is a superior service over SMS, but
does not really replace it ( - at least not until all the mobile phones have
email access on them...).
It would be nice if the SMS service would be available not only on
GSM/GPRS/etc., but also on any telephone number in the world - or at least
on
2005 Apr 02
2
Building new graphic device drivers with g++
Dear Group,
I'm trying to build a set of new graphic device drivers. I use the
devNull example a a beginning point:
$ R CMD SHLIB devNull.c
gcc -shared -L/usr/local/lib -o devNull.so devNull.o
(everything works OK)
$ R CMD SHLIB devNull.cpp
g++ -shared -L/usr/local/lib -o devNull.so devNull.o
(everything works OK)
The difficulties start when trying to compile manually. I compile the
2012 Oct 28
2
List of arrays - problem with dimensions
Dear all,
I want to obtain the following result
[[1]]
, , 1, 1
[,1] [,2]
[1,] 1 1
[2,] 1 1
, , 2, 1
[,1] [,2]
[1,] 1 1
[2,] 1 1
................
, , 9, 1
[,1] [,2]
[1,] 1 1
[2,] 1 1
, , 10, 1
[,1] [,2]
[1,] 1 1
[2,] 1 1
[[2]]
, , 1, 1
[,1] [,2]
[1,] 1 1
[2,] 1 1
, , 2, 1
[,1] [,2]
[1,] 1
2006 Nov 03
2
one row matrix
Hi,
when I assign a one row matrix to another variable, then somehow R
automatically convert that varaible into a list.
For example:
> a = matrix (12, 3, 4)
> b = a[1,]
> b
[1] 12 12 12 12
Is there a way to enable R automatically make b as a one row matrix , rather
than explicitly assign like matrix (b, ncol=1). I have come across a
couple of time, that when I try to check how many
2005 Feb 17
1
Subsetting using dimnames on S4 array-based class
Hello,
I did send this message to r-help and got no reply, no I am resubmitting
here in case this was a bit too specific for the other list.
Many thanks,
Iago
From:
Iago Mosqueira
<imosqueira@suk.azti.es>
To:
r-help@stat.math.ethz.ch
Subject:
Subsetting using dimnames on S4
array-based class
2017 Apr 04
0
M.2 PCI-E card
4.4.2017, 4.21, Alice Wonder kirjoitti:
>
> Thanks! I ordered a 2.5" SATA drive and they screwed up and sent me M.2
> - I'll be sure to look at the booklet (Intel SSD 5 but there may be more
> than one variant?)
Intel 5 series SSDs use SATA interface, so the discussion about NVMe
support doesn't apply in this case. You can use an adapter like this to
mount it in a
2019 Apr 14
0
Outliner
H kirjoitti 14.4.2019 klo 13.42:
> I would love to find an old-fashioned outliner, like the ones that used to exist prior to the modern GUIs.
Emacs outline mode?
https://www.gnu.org/software/emacs/manual/html_node/emacs/Outline-Mode.html
--
Markku Kolkka
markku.kolkka at iki.fi
2014 Aug 06
2
Subscripting Matrices
There seems to be a result type difference when subscripting a 6 x 1
matrix as compared to a 3 x 2 matrix that is caused by the ncol = 1
compared to ncol > 1.
> ThinMatrix <- matrix(1:6,ncol=1)
> ThinMatrix
[,1]
[1,] 1
[2,] 2
[3,] 3
[4,] 4
[5,] 5
[6,] 6
> FatMatrix <- matrix(1:6,ncol=2)
> FatMatrix
[,1] [,2]
[1,] 1 4
[2,] 2 5
2008 Sep 10
1
Return dimension index from array with n-dimensions
Hi,
I have been dealing with some problems finding a fast way of getting to
know in what dimension a specific value is located out of an array (like
the 'which' function for a vector returns its position).
Unable to find anything about this on the internet I wrote a function
myself.
Could you please comment if such a function already exists, and if not,
please feel free to comment the
2008 Mar 12
1
Subsetting vectors/arrays using factors can be seen as misleading
Dear list,
Subsetting vectors/arrays using factors can be seen as misleading, and
I was thinking that it could be discouraged (at least by issuing a
warning).
I could not find whether this was discussed earlier, but I can be
pointed to a reference if I missed any.
The "extract" operator "[" can take as arguments either vectors of
integers or vectors of characters in order to
2006 May 14
3
send_file and locking files after download?
Hello,
I''m working on a download service which grants users a one-time-download
access to files. The idea is to write an entry to a database table after
a successful download that "locks" the download link for the user.
After doing some quick tests with send_file I noticed that send_file
does not block until the user has downloaded the full file, but proceeds
with the