Displaying 20 results from an estimated 2000 matches similar to: "short-hand to avoid use of length() in subsetting vectors?"
2011 Nov 08
1
passing dataframe col name through cbind()
Hi all ---
I note that the column name of the first column in a dataframe does not necessarily get passed on when using cbind (example below)?
I'm looking for help in clarifying why this behavior occurs, and how I can get all col names, including the first, passed on to the result?while I suspect it's obvious and documented to the cognoscenti, it's puzzling me?
Many thanks for any
2008 Aug 21
1
pnmath compilation failure; dylib issue?
(1) ...need to speed up a monte-carlo sampling...any suggestions about
how I can get R to use all 8 cores of a mac pro would be most useful
and very appreciated...
(2) spent the last few hours trying to get pnmath to compile under os-
x 10.5.4...
using gcc version 4.2.1 (Apple Inc. build 5553) as downloaded from
CRAN, xcode 3.0...
...xcode 3.1 installed over top of above after
2013 Mar 28
2
how to search a list that contains multiple dissimilar vectors?
Dear All,
This is a simple question, but I'm stumped about the simplest way to search a list object such as the following:
This randomish snippet:
n <- c(round(runif(round(runif(1,1,10),0),1,10),0))
alist <- new("list")
for (i in seq_along(n)) {
alist[[i]] <- c(round(runif(round(runif(1,1,10),0),1,10),0))
}
names(alist) <- sample(letters[1:length(n)])
rm(n);c(alist)
2015 Sep 02
1
monitoring Eaton parallel/redundant UPSs
I have been happily using NUT to monitor a couple of Eaton UPS. These
are independent UPSs, each driving one "leg" of the power in our data
center. In this scenario, I've told my clients they need to have one UPS
working and to shutdown when the last UPS reaches critical battery.
I have recently learned that our power arrangement will be changing to a
parallel-fed/redundant
2003 Jan 24
2
opendir(somedir/somefile): Not enough space -- why?
I am attempting to use rsync to copy a large filesystem from an
HP-UX server to a Linux server with more than enough filespace.
This operation fails. A small directory from the same HP-UX server
can be transfered just as expected.
The HP-UX server is the source. It has 1Gb RAM - the output of bdf for
the volume the source files is on is:
Filesystem kbytes used avail %used Mounted
2003 Nov 10
2
ramdisk_size
Hey All,
I'am using pxelinux to try and boot a 200meg uncompressed (approx 50
compressed) ramdisk onto a machine with 512meg of ram. It looks as though
I'am running out of memory (attempt to access beyond end of device error).
Is there a limit on what we put for ramdisk_size? Or Is there other
limitations?
thanks
--
Jeff Geddes, BSc(UNB)
Computer Systems Specialist
University of
2004 Feb 25
2
password changes with ctrl-alt-del
Currently I'am using samba for file sharing. My smb.conf file is basically
setup as default with a few minor changes. Therefore, my samba server is
not part of a domain. Right now users can map the samba shares with
windows XP... With this type of setup is it possible for them to change
there smbpasswd using ctrl-alt-del? If so any examples or hints on how
to set this up would be great.
2009 May 26
1
how does form_for and validate_presence_of work hand in hand
when we have validate_presence_of :name in the model and then when we
put in the create action that we re-render ''new'', then the form_for will
populate the fields, and error_messages_for ''story'' will have the
correct error message.
this is really great, and and the same time, this looks like magic... i
found that many books don''t explain how the magic
2002 Sep 13
1
Unable to mount root fs
Hey all,
I'am able to use pxelinux to successfully boot a particular kernel and
image on various IBM PC's ex. 6287-41U and 6591-34U. However, using the same
setup (ie. dhcp, tftp, pxelinux.0, pxelinux.cfg, networkcard, bootrom,
ram memory) on an IBM 6282-73U my kernel and image decompress fine but I'am
getting a...
Kernel Panic: VFS: Unable to mount root fs on 01:01
I realize
2002 Sep 14
1
Re: SYSLINUX digest, Vol 1 #196 - 4 msgs
Hello !
Maybe passing argument root=/dev/ram0 or root=/dev/rd/0 would help ?
I use isolinux and it works in the isolinux.cfg
sylvain
> Message: 3
> Date: Fri, 13 Sep 2002 14:11:38 -0300 (ADT)
> From: Geddes <jgeddes at unb.ca>
> To: syslinux at zytor.com
> Subject: [syslinux] Unable to mount root fs
>
>
> Hey all,
>
> I'am able to use pxelinux to
2006 Mar 15
0
Raise your hand if you''re going to the MySQL conference
If you are attending the MySQL User Conference 2006, you are encouraged to come attend my session about Applied Ruby on Rails and AJAX.
The session information is as follows:
Applied Ruby on Rails and AJAX
Farhan Mashraqi
Track: LAMP, Community Projects
Date: Thursday, April 27
Time: 2:20pm - 3:05pm
Location: Ballroom B
Adoppt (http://adoppt.com) is a fully
2005 Dec 19
0
has_one mapping with arbitrary right and left hand side keys
I have two tables:
table_1:
tab1_id,
other_id
table_2:
id,
tab2_id,
something_else
I would like to specify a has_one mapping from table_1 to table_2 but
specifying that the join is based on (table_2.tab2_id =
table_1.other_id).
I am half way there with:
class Table1 < ActiveRecord::Base
set_table_name "table_1"
set_primary_key "tab1_id"
has_one :Table2, :class_name
2006 Jul 14
1
Splitting the left and right hand terms of a formula
Let's say I have the following formula:
a.formula <- x ~ y + z
I want to extract the left and right-hand sides of the function so
that I have two character vectors like the ones you would create using
the following assignments:
left.hand.side <- "x"
right.hand.side <- c("y", "z")
One way to do this follows:
left.hand.side <-
2013 May 21
0
Arules: getting rules with only one item in the left-hand side
Hello,
I am using the package arules to generate association rules. I would like
to restrict the rules so that in the left-hand side there's only one
particular element, let's call it "potatoe".
If I do this:
rules <- apriori(dtm.mat, parameter = list(sup = 0.4, conf =
0.9,target="rules"), appearance = list(lhs = c("potatoe")))
I get "potatoe"
2010 Feb 18
1
how to change number of itemes appeare in right-hand-side of the rule with apriori in R(arules)?
Hi All,
I use arules library, and try to create an association rules for this
transaction file:
a,c,f,3,4,5
b,e,1,2,4
a,c,e,f,1,3,4,5
d,5
b,c,e,f,1,2,3,4
a,c,e,f,1,3,4,5
b,c,e,f,1,3,4
b,e,1,2,4
a,c,e,f,1,3,4,5
a,b,c,e,f,1,3,4
a,c,d,f,3,4,5
I want to get the rule such:
{c,e,f}=> {3,4,5}
I used this command:
ar=apriori(tr, parameter=list(support=.4, confidence=0.8, maxlen=11),
appearance
1999 Dec 13
1
Superscript or subscript on Left hand side of symbol
Is there a way to get subscripts and superscripts on the left hand side of
a symbol? For example, oC or oF (degree Celsius or Fahrenheit)
TIA
Partha
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the
2009 Jan 30
2
[LLVMdev] [LLVM][g++] A helping hand
Hi All,
I was looking into using LLVM with C++. Currently there is almost no C++ support (C support only).
Just wondering who is the person to contact so I could help out with C++ extension for LLVM.
With Best Regards
KaZ
Department of Mathematics and Computing
Imperial College London
2009 Jan 30
0
[LLVMdev] [LLVM][g++] A helping hand
On 2009-01-30 18:19, Kasra wrote:
> Hi All,
>
> I was looking into using LLVM with C++. Currently there is almost no C++ support (C support only).
>
LLVM is written in C++, has a C++ API, and llvm-gcc frontend can
compile C++ programs.
What exactly is the C++ support you are missing?
Best regards,
--Edwin
2010 Apr 06
0
[LLVMdev] How to get the left-hand operand of an instruction?
Hi Qiuping yi,
> I am a new novice of LLVM, and I want know how to get the left-hand
> operand of an instruction?
>
> For example:
> how to get the %temp2 operand in the next instruction:
>
> %temp2 = malloc i8, i32 %n
there is no left-hand side, temp2 is just a name for the instruction.
Since the LLVM IR is in SSA form, registers have exactly one definition,
and thus there
2010 Apr 06
0
[LLVMdev] How to get the left-hand operand of an instruction?
Hi Duncan,
I have catched your reply and solved the problem. Thank you for the
elaborate reply.
Best Regards!
2010/4/6 Duncan Sands <baldrick at free.fr>
> Hi increaseing, please ask on the list rather than writing to me directly.
> That way others can answer, and the discussion is archived for the benefit
> of people with the same question in the future.
>
> Best