Displaying 20 results from an estimated 300 matches similar to: "R command window"
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
2009 Sep 04
1
Redblack tree data structure
I need to use a red-black tree, which package provides that data structure?
--
Best regards
Rune Schjellerup Philosof
Ph.d-stipendiat, Forskningsenheden for Biostatistik
Telefon: 6550 3607
E-mail: rphilosof at health.sdu.dk
Adresse: J.B. Winsl?wsvej 9, 5000 Odense C
SYDDANSK UNIVERSITET
_______________________________________________________________
* Campusvej 55 * 5230 * Odense M * 6550
2009 Dec 07
2
outputting functions in lapply
How come the k is 3 in all of this output?
I expected it to be equal to r.
> tmp3 <- lapply(1:3, function(k) function(r) print(paste(r, "<- r | k
->", k)))
> for (i in 1:3) { tmp3[[i]](i) }
[1] "1 <- r | k -> 3"
[1] "2 <- r | k -> 3"
[1] "3 <- r | k -> 3"
--
Med venlig hilsen
Rune Schjellerup Philosof
Ph.d-stipendiat,
2010 Mar 12
1
Creating named lists
I often find myself making lists similar to this
list(var1=var1, var2=var2)
It doesn't seem list has an option, to make it use the name of the
variable as name in the list.
Is there another function that does this?
--
Med venlig hilsen
Rune Schjellerup Philosof
Ph.d-stipendiat, Forskningsenheden for Biostatistik
Telefon: 6550 3607
E-mail: rphilosof at health.sdu.dk
Adresse: J.B.
2011 Dec 05
1
Toggle cASE
Hello R-help list,
I am looking for way to toggle the case of the characters like a flip-flop; that is from ''Hello'' to "hELLO" or vice versa.
I know that there are a number of functions like casefold, tolower, toupper, etc. but these functions change the case in an uniform way.
Thanks in advance,
Antonio Rivero Ostoic
Antonio Rivero Ostoic
PhD Student,
2009 Jan 08
1
NAs are not allowed in subscripted assignments
Browse[1]> j <- c(1,2,NA)
Browse[1]> j[j==1][-1]
[1] NA
Browse[1]> j[j==1][-2]
[1] 1
Browse[1]> j[j==1][-2] <- 2
Error during wrapup: NAs are not allowed in subscripted assignments
As far as I can see, I have no NA in the lhs (not after the second
subscript anyway).
Besides, I have a single value on the rhs, so it should be allowed to
have NAs in the lhs, according to
2004 Jul 06
4
not updating changed local files
rsync version 2.4.6 protocol version 24
gin@rhysling:~> rsync -avv ~/share/cvs-xemacs-head/XEmacs/xemacsweb ~/share/public_html/xemacsweb
building file list ... done
...
xemacsweb/About/XEmacsServices.content is uptodate
...
gin@rhysling:~> ls -l {~/share/cvs-xemacs-head/XEmacs/xemacsweb,~/share/public_html/xemacsweb}/About/XEmacsServices.content
-rw-r--r-- 1 gin sdu
2006 Dec 21
2
data -> data matrix that can be used in regressions
Dear R users,
I have spent most of this day figuring out how to read STATA data into R
(which eventually worked) and to run a simple OLS regression. It seems
that the manuals are written in the most general and abstract way which
does not really make it easy to understand what's going on.
I'd be glad if somebody could save my day by:
telling me how to define a matrix from the
2008 Jul 16
6
vlans+bonding+bridging
hi,
I have to configure Xen server and DomU''s which should be able
to talk to different vlans - depending on services put on DomU''s.
I would like to enslave 2 NICs via bond interface.
Both NICs are on trunk ports which are configured in the same way, the
same native vlan.
I don''t know, if I have to add vlans tagging to eth* interfaces then
enslave tagged eth*
2006 Dec 13
1
Passing arguments to panels in trellis plots
Dear all,
I am trying to produce survfit plots in a trellis environment and I
would like the plots to be logarithmic.
I am trying this:
print(Ecdf(~time | size*type, groups=alg,data=B,subscripts=TRUE,
panel=function(x,groups,subscripts)
{
t <- survfit(Surv(time[subscripts],event[subscripts])~groups[subscripts],data=B)
2013 Jan 12
3
heatmap.2 problem
Dear List,
I'm trying to generate a simple heatmap that has each row and column
separated by a black line. However, for some reason this only happens
for the first and last color. The middle color in my colorpanel()
command has an addition horizontal and vertical line that I would like
to get rid off. Any suggestions?
#my code below
my.matrix <- cbind(func.1 =
2010 Sep 17
1
multipath troubleshoot
Hi,
My storage admin just assigned a Lun (fibre) to my server. Then re scanned using
echo "1" > /sys/class/fc_host/host5/issue_lip
echo "1" > /sys/class/fc_host/host6/issue_lip
I can see the scsi device using dmesg
But mpath device are not created for this LUN
Pleas see below. The last 4 should be active and I think this is the problem
Kernel:
2004 Jul 22
0
chgrp not consistent on AD groups
I have just set up 3.0.4 as AD memberserver on SuSE9.1 and try to set
some access to a folder.
getent group and getent passwd works fine, but
"chgrp 'NAT-SDU%someADgroup' /data"
fails with
"chgrp: invalid group name 'NAT-SDU%someADgroup'".
Strangely enough "chgrp 'NAT-SDU%some-otherADgroup' /data" works just fine.
"chown
2007 May 14
3
[Bug 567] ulogd writes invalid len field in per-packet headers
https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=567
------- Additional Comments From kaber@trash.net 2007-05-14 14:28 MET -------
There are two len fields, caplen and len. Which one is wrong?
--
Configure bugmail: https://bugzilla.netfilter.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
2010 May 27
2
Multipathing with Sun 7310
Dear list,
we have a relatively new Sun Storage 7310, where we connect CentOS 5.5
Servers (IBM LS21/LS41 Blades) via Brocade Switches, 4GBit FC. The Blades
boot from SAN via qla2xxx, and have no harddisks at all. We want them to
use multipathing from the very beginning, so /boot and / are already seen
by multipathd. Problem is, that the Sun 7310 has two storage heads which
run in
2003 Jul 04
0
Minor probs after upgrade to 3.0.0beta2
Firstly, I am running beta2 as AD member. Auth through Winbind.
Upgrading from beta1 to beta2 using RPM on RH 9 I noticed that Winbind will
not start and smb will not stop using Init scripts. Seems to me RH9
/etc/init.d/winbind need the "winbind uid" parameter ? Here is the
/var/log/samba/log.winbind output.
[2003/07/04 13:54:52, 1] nsswitch/winbindd.c:main(811)
winbindd version
2006 Dec 14
1
[announce] iproute2 2.6.19-061214
This is an update to the iproute2 command set.
It can be downloaded from:
http://developer.osdl.org/dev/iproute2/download/iproute2-2.6.18-061214.tar.gz
Repository:
git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git
For more info on iproute2 see:
http://linux-net.osdl.org/index.php/Iproute2
The version number includes the kernel version to denote what features are
2015 Oct 14
1
Ocfs2-devel Digest, Vol 138, Issue 31 review
On 2015/10/14 15:49, Zhangguanghui wrote:
> OCFS2 is often used in high-availaibility systems, This patch enhances robustness for the filesystem.
> but storage network is unstable?it still triggers a panic? such as ocfs2_start_trans -> __ocfs2_abort ->panic.
> The 's_mount_opt' should depend on the mount option set, If errors=continue is set,
> mark as a EIO error,
2015 Oct 14
2
Ocfs2-devel Digest, Vol 138, Issue 31 review
Hi,
"status = -30" means it has encountered EROFS when start transaction.
And system panic is because s_mount_opt is set to OCFS2_MOUNT_ERRORS_PANIC in __ocfs2_abort,
ideal with OCFS2_MOUNT_ERRORS_PANIC first in ocfs2_handle_error.
so I think that it is not reasonable, Therefore, this setting shall be canceled in __ocfs2_abort.
thanks
________________________________
zhangguanghui
2000 May 18
1
attach (S-style)?
Hi everyone,
Being new to the crowd of R users I am wondering what the equivalent of
attach("/home/bla/hoffmann/R/.RData",2)
(S style) is in R.
What I want is a split of .RData repositories. One in a central place where I keep functions and interesting stuff important for all work I am doing, an several others which contain stuff of an dividual project only. When I start in a