Displaying 20 results from an estimated 20000 matches similar to: "creating library"
2007 Aug 11
1
RServe
Hi all, is there a way to properly terminate Rserve instead of killing the
process? I run Rserve in a linux box that serves my Java client.. I have a
cronjob that runs Rserve every morning. However, I'm killing it at night
manually for the moment. Is there a way, given host/port, I can run an R
command to properly terminate it??
Thanks a lot in advance!!
- yoooooooo
--
View this message in
2007 Mar 01
3
Simplest question ever...
Let's say i have
a = c(1, 4, 5)
b = c(2, 6, 7)
and i have matrix m, what's an efficient way of access
m[1, 2], m[4, 6], m[5, 7]
like of course m[a, b] = is not going to do, but what's an expression that
will allow me to have that list?
Thanks!
--
View this message in context: http://www.nabble.com/Simplest-question-ever...-tf3329894.html#a9258932
Sent from the R help mailing list
2009 Aug 14
1
Embed R, and provide a function to user scripts
Hello,
I'm not sure how to go about this. Suppose I have a function
SEXP boo(SEXP x){
//do something
}
Also, I have an executable which embeds R in itself. I would like to provide
a R function to user code to call that calls 'boo' e.g
##user supplied expression that is given to me
x<-1
boo(x)
One way is to create a library with function boo that performs .Call to boo,
but is
2017 Oct 25
1
Finding the entry point function in a LLVM IR
Thank You David and Mats for the reply,
The reason I need to know that main is the entry point is as follows :
I have a dead code elimination pass that removes the function call for boo.
boo was initially called from the main function , but since the return in
the main function has no dependency on boo, boo function call is removed.
Now I want to remove the function definition of the functions
2007 Aug 28
2
Efficient way to parse string and construct data.frame
Hi all,
I have this list of strings
[1] "1 ,2 ,3" "4 ,5 ,6"
Is there an efficient way to convert it to data.frame:
V1 V2 V3
1 1 2 3
2 4 5 6
Like I can use strsplit to get to a list of split strings.. and then use say
a = strsplit(mylist, ",")
data.frame(V1 = lapply(a, function(x){x[1]}), V2 = lapply(a,
function(x){x[2]}),.....)
but i'm
2007 Jun 28
2
restructuring matrix
Hi all,
let's say I have matrix
People Desc Value
Mary Height 50
Mary Weight 100
Fanny Height 60
Fanny Height 200
Is there a quick way to form the following matrix?
People Height Weight
Mary 50 100
Fanny 60 200
(Assuming I don't know the length of people/desc and let's say these are
characters matrix.. I tried
2002 Dec 05
1
writing to gzfile: segmentation fault (PR#2347)
Full_Name: Vadim Ogranovich
Version: Version 1.6.0 (2002-10-01)
OS: Red Hat 7.1
Submission from: (NULL) (209.99.241.1)
The following sequence of commands crashes my R session. The first weirdness
happens after the second command that appears not to change the "foo.gz" file,
no error generated.
> con <- gzfile("foo.gz", open="w"); cat("goo\n",
2009 Jun 22
2
negation in grep
Does anybody know how to negate a string in a grep command, i.e.,
what I need is to return only strings that do NOT contain a second
string anywhere in the entire string.
for
txt <- c("boo","goo","doob","foo","boofoo")
I need a grep command that returns strings with "oo" except when "b"
is present anywhere. I know that
2007 Feb 13
2
Matrix manipulation
Hi, let's say I have this
A = matrix(c(1, 2, 4), nrow=1)
colnames(A)=c("YOO1", "YOO2", "YOO3")
# ie
# YOO1 YOO2 YOO3
#[1,] 1 2 4
HELLO <- NULL
HELLO$YOO1="BOO"
HELLO$YOO2="BOO"
HELLO$YOO3="HOO"
and I want a matrix that will sum my categorization.. how can I do it
efficiently without any loop?
#ie BOO HOO
2011 Aug 28
3
rspec-rails render_views doesn't render layouts? / how to check flash isn't rendered
I''m trying to test that "static" pages (they''re ERB, but get cached),
generated through rails, don''t render any stray flash notices left over by
the authentication system (Devise) or wherever else.
I''ve tried writing this controller spec, but it appears that response.body
only renders the template, not its layouts?
describe "so that static
2010 Jan 11
1
Problem with S4 generic function print
First, if I have an S4 class boo should I define S3 method for
printing print.boo(..) or should I define S4 method print(..).
I mainly need to define print function only because some user might
call it and then I would like to dispatch the call to
right function instead.
Second, it seems that by defining S4 generic function print, it is
possible to break argument hinting on the status bar.
2008 Oct 16
1
apply, t-test and p-values
R 2.7.2
Windows XP
I am using apply to compute a series of Student's t-test from two matrices, sample1 and sample2.
boo<-apply(sample1,1,t.test,sample2)
I want to pick of the p-values from the tests, but can't seem to get it to work. I have tried several methods to get the values including:
boo<-apply(sample1,1,t.test$t.test,sample2)
boo<-apply(sample1,1,t.test,sample2)$t.test
2008 Mar 18
1
Merb and Javascript template system
I''ve tryed to use the same logic in html layouts to handle javascript files
without success.
All I need is not repeat javascript code in various erb templates that have
90% of identical code.
- I can''t use more than 1 js file.
- If isn''t a way to do this like erb can do in html, what''s the best way to
"include" a file in another using Merb?
--
from
2012 Aug 23
3
System will not boot - faulty fstab?
I believe that I made a boo boo recently when recovering some unused
disk space. Without going into painfully embarrassing detail I need
to delete an entry in fstab for a now non-existent logical volume.
The system reports that the there is a bad superblock for said logical
volume. Mainly I expect because there isn't one anymore. How do I
edit fstab so as to remove the mount request? For
2003 Jan 24
3
LDAP Filter Problem
I was wondering if anyone could help me with this one. I am having trouble
getting LDAP and samba working properly on my Debian Woody box. I am using
OpenLDAP 2.0.27-3 and the unsable packaged Samba version 2.999+3.0 and am
using the samba.schema for my LDAP database.
Whenever I try to join the network using either W2K or smbclient the LDAP
debug log shows that the following filter is being
2006 Aug 03
6
create or update -
Hi everyone,
I''m looking for a shortcut to finding and updating or creating record
depending on the results of the find.
So, is there a shorter way to do it than this?
@stuff = Stuff.find_by_foo_and_bar("yay","hooray")
if @stuff: Stuff.update(@stuff.id, {:foo => "boo", :bar => "hoo"})
else Stuff.create({:foo => "boo",
2011 Mar 21
1
Need help in "repairing" the booting of my Linux 4 server
As I shared on this forum last week, I did a bad boo boo when I
erased my /boot/ directory without a backup - all of the things I
caution other NOT to do. Nevertheless, after trying to put
things back in order, today I decided to try a reboot and I get a
GRUB prompt.
Next I have put my Linux 4 disk in the CD drive and have selected
the "linux repair" mode which has put me into the
2010 Sep 30
1
getting the output after bootstraping
Thanks to the help of people from this forum I was able to bootstrap my data
and then apply a model to it. Thanks for all your help.
Everything worked out well, but I am having a difficult time getting the new
parameter values. I bootstrapped the data 300 times and I want to get the
300 sets of parameter estimates and plot them in Excel.
Here is my code:
2007 May 01
7
RFC: Changing variable override
It seems like a very common expectation that the following code would
work:
class boo {
$me = "/something"
file { $me: ensure => present }
}
class yay inherits boo {
$me = "/something/else"
}
Yet, as many have found to their chagrin, it does not work. Should it?
I believe I know how I could make this work: Create a single
variable namespace for class
2017 Oct 23
2
Finding the entry point function in a LLVM IR
If you want to know which functions are (or may be) called from where, in
the entire program, then you will need to do some sort of "LLVM-IR Linking"
(there are tools that will do that for you, such as "llvm-link").
Of course, even then, there's possible cases where it's impossible to know
whether a function is ACTUALLY called until at runtime - function pointers,