Displaying 20 results from an estimated 2000 matches similar to: "how to get row name using the which function"
2012 Feb 03
3
replicate rows
Hello,
I have a matrix of 17 rows and 20 columns. I want to replicate this matrix 20 times, but I only want to replicate the rows. How do I do that?
Kind regards / Met vriendelijke groet / Med venlig hilsen,
Dr. Gijs Schumacher
Postdoctoral Researcher
Department of Political Science and Public Management, University of Southern Denmark &
Department of Political Science, VU University
2003 Sep 16
1
Problems with 3.7p1 on IRIX 6.5
$ uname -R
6.5 6.5.19m
$ cc -v
MIPSpro Compilers: Version 7.4
$ sshd -p 8022
[client]$ ssh -p 8022 -v [host]
$ par -s -SS -i -p [pid]
...
12mS sshd(3664039): fork()
12mS sshd(3664039): END-fork() = 3639808
12mS sshd(3639808): END-fork() = 0
13mS sshd(3639808): close(5) OK
13mS sshd(3639808): getuid() = 0, euid=0
14mS
2012 Jun 15
3
moving from loops to apply
Dear subscribers,
I have made a simulation using loops rather than apply, simply because the loop function seems more natural to me. However, the current simulation takes forever and I have decided - finally - to learn how to use apply, but - as many other people before me - I am having a hard time changing habits. My current problem is:
My current code for the loop is:
distances <-
2006 Feb 07
2
Using R to process spectroscopic data
Dear R-users,
I would like to process some spectroscopic data with R, and I was hoping
some people might have some example code on how to do this.
I would like to be able to do the following things:
* Detect outlier-spectra -> This can be done by using scoreplot from the
pls package
* Determine the range of the spectrum to be used -> For this, I should
be able to calculate the regression
2005 Oct 27
1
tcltk package problems (R 2.2.0, SuSE 10)
Hi
I installed R 2.2.0 from source and I have the packages for tcl and tk
installed on my system, but the package tcltk says, when I try to load
the library tcltk: Tcl/Tk support is not available on this system.
Are there any settings / variables which I have to set so that R
recognises that Tcl/Tk support is installed on the system?
Rainer
--
NEW TELEPHONE NUMBER
Tel: +27 - (0)72 808
2006 Mar 15
3
click on graph and select data points?
Hi all,
I am doing some clustering and the clustered results are presented in a
"pairs" plot showing 4 clusters...
I made the data points belong to 4 different clusters displaying different
colors.
Now I want to select the best clustered class, how can I click on the data
point, and the program returns the index of that cluster(its class number,
or color number)?
Also, if I would
2006 Jul 13
2
Write a summary or a longer text to a graphical device
How can I write a text, such as a result of a function or an explanation
to a graphic device?
When I try plot, I'm unable to reduce the axes.
Greetings
torsten
2007 Sep 07
2
Matlab's lsqnonlin
Hi! I'm translating some code from Matlab to R and I found a problem.
I need to translate Matlab's function 'lsqnonlin'
(http://www-ccs.ucsd.edu/matlab/toolbox/optim/lsqnonlin.html) into R,
and at the beginning I thought it would be the same as R's 'optim'. But
then I looked at the definition of 'lsqnonlin' and I don't quite see how
to make
2005 Oct 05
2
eliminate t() and %*% using crossprod() and solve(A,b)
Hi
I have a square matrix Ainv of size N-by-N where N ~ 1000
I have a rectangular matrix H of size N by n where n ~ 4.
I have a vector d of length N.
I need X = solve(t(H) %*% Ainv %*% H) %*% t(H) %*% Ainv %*% d
and
H %*% X.
It is possible to rewrite X in the recommended crossprod way:
X <- solve(quad.form(Ainv, H), crossprod(crossprod(Ainv, H), d))
where quad.form() is a little
2005 Oct 06
3
playing with R: make a animated GIF file...
Hello all
I am playing with R for to make a animated GIF.
any suggestions, improvements are welcome :-)
case somebody could help me, i thanks!
Cleber N. Borges ( klebyn )
my objective:
(steps TODO)
-------------------
1) to save PNG files;
-----> i don't know the best way to make this;
2) transform the PNG files into GIF files (easy! no problem! ... i
think ...)
3)
2007 Sep 19
3
Smooth line in graph
Hi,
I?m trying to get smooth curves connecting points in a plot using
"spline" but I don?t get what I whant.
Eg.:
x<-1:5
y <- c(0.31, 0.45, 0.84, 0.43, 0.25)
plot(x,y)
lines(spline(x,y))
Creates a valley between the first and second points, then peaks at 3rd,
and another valley between 4th and 5th. I?m trying to get a consistently
growing curve up to the 3rth point and then a
2011 Feb 23
1
Weighted Mean By Factor Using "BY"
Hello R folks,
Reproducible code below - I'm trying to do a weighted mean by a factor and
can't figure it out. Thanks in advance for your assistance.
Mike
data<-data.frame(c(5,5,1,1,1),
c(10,8,9,5,3),
c("A","A","A","B","B"))
2011 Feb 03
3
R Data Manipulation - Transposing Data by a Given Column, Like User_ID
Hello,
I'd like to transpose data to create an analysis-friendly dataframe. See
below for an example, I was unable to use t(x) and I couldn't find a
function with options like PROC TRANSPOSE in SAS.
The ideal solution handles variable quantities of SITE - but beggars can't
be choosers. :-)
Thank you in advance,
Mike
## INPUT DATA
USER_ID<-c(1,1,1,2,2,2,3,3,4)
SITE
2011 Mar 09
2
SQLDF - Submitting Queries with R Objects as Columns
Fellow R programmers,
I'd like to submit SQLDF statements with R objects as column names.
For example, I want to assign "X" to "var1" (var1<-"X") and then refer to
"var1" in the SQLDF statement. SQLDF needs to understand that when I
reference "var1", it should look for "X" in the dataframe.
This is necessary because my SQLDF
2016 Oct 21
3
anonymous function parsing bug?
Hi,
thx for the reply. Unfortunately that is not a simplified version of the
problem. You have a function, call it and get the result (numeric in,
numeric out in that case). For simplicity lets use the "return" case:
##
foobar<-function(x) { return(sqrt(x)) }(2)
##
which is a function (numeric in, numeric out) which is defined, then
gets called and the return value is a function
2013 Mar 13
2
replacing joe
Morning everybody,
I am still using good old joe editor on my CentOS machines although it
is no longer included in the CentOS repositories.
Is there any comparable "wordstar" compatible editor that is part
of the standard distribution?
And no, I don't want to use Emacs. :-)
best regards
---
Michael Schumacher
2017 Mar 27
5
firewalld management on a headless server
Hi,
> I recently converted my employer's firewall from pure iptabes to
> firewalld and looked for something similar, more along the lines of
> webmin, etc.
funny,
my webmin installation on a banana-pi has webmin 1.831, which has
support for firewalld.
I am not sure, but I believe I got it directly from www.webmin.com.
best regards
---
Michael Schumacher
2009 Oct 06
4
RAM errors after kernel-update
Hi,
I updated a server yesterday from
"kernel 2.6.18-128.7.1.el5xen" to "kernel 2.6.18-164.el5xen"
After rebooting, my message log is flooded every second or so with this error messages:
Oct 6 14:52:20 xenserver1 kernel: EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0
2018 Aug 31
8
Certificates
Leo,
>> I would like to obtain an ssl certificate, so I can run my own imap server on a machine in my office.
>> I am assuming I'll need to pay a CA to generate what I need, but
>> I'm confused about what I need. I am running dovecot at teh moment,
>> but my clients (iphone, windows laptops) say my ssl connection is
>> not trusted. The phone just won't
2007 Feb 08
2
obscure error with subsetting as.list() of a function then assigning that a (PR#9500)
Hello. I was writing some code that computes on the language and came across
this. I can work around it, but thought you might like to know about it.
> f <- function(x) { NULL }
> a <- as.list(f)[[1]]
> a # ie print(a)
Error: argument "a" is missing, with no default
Note it says *argument* "a", which is strange. In fact, and unsurprisingly, the bug lies
with