Displaying 20 results from an estimated 1000 matches similar to: "replace a whole word with sub()"
2011 Sep 30
1
need help on forest plot with ggplot
Dear R users,
I am trying to do the forest plot follow the function given on web. However,
the order of the tests has been sorted alphabetically. I would prefer
keeping the order as data frame input so that I can group and compare (from
the graph) the target immune NS1, IgG and IgM (where SD, BioRad, Pb etc are
the brand names)
 
> d
                    x        y      ylo      yhi
SD.NS1 
2013 Dec 06
2
Using assign with mapply
I have a data frame whose first colum contains the names of the variables 
and whose second colum contains the values to assign to them:
   : kkk <- data.frame(vars=c("var1", "var2", "var3"), 
                     vals=c(10, 20, 30), stringsAsFactors=F)
If I do 
   : assign(kkk$vars[1], kkk$vals[1])
it works
   : var1
   [1] 10
However, if I try with mapply
2011 Jul 21
1
nested loop for
Hi everyone,
I have been working some days in a nested loop in R but I can't find the solution. 
I have a data.frame with an unique ID for individuals and unique ID for different stands, for each indiviadual I have a dbh record and a SBA (stand basal area) field.
Pma<-rep (1:40)
P<-seq(1,4, 1)
Plot<-rep(P,10)
dbh2<-rnorm(40, mean=200, sd=5)
SBA2<-rnorm(40, mean=10, sd=1)
As
2007 Feb 23
4
using "integrate" in a function definition
Dear list members,
I'm quite new to R, and though I tried to find the answer to my probably 
very basic question through the available resources (website, mailing 
list archives, docs, google), I've not found it.
If I try to use the "integrate" function from within my own functions, 
my functions seem to misbehave in some contexts. The following example 
is a bit silly, but
2006 Oct 09
1
windows doesn't show groups in security tab of file properties
Hello,
I've a Samba 3.0.23c-SerNet-Debian PDC (no BDC or anything) connected to 
OpenLDAP. I thought it would work smoothly, I didn't discover any 
problems until today.
I'am trying to create a ntconfig.pol with poledit, but it doesn't show 
me any groups to add to the policy. I can see all the users by the way.
To eleminate a poledit problem I used the security tab (in german
2009 Jun 23
2
Long to wide format without time variable
Hi all,
I am trying to convert a data set of physician death codings (each individual's cause of death is coded by multiple physicians) from long to wide format, but the "reshape" function doesn't seem to work because it requires a "time" variable to identify the sequence among the repeated observations within individuals.  My data set has no order, and different
2008 Aug 26
5
undefined method
I''m trying to pass a method to another object/method as a variable.
Example one, login 1 works just fine.
def login1
  @driver.Login(username, password)
end
However, if I try to pass "Login" to the driver as an argument
(example two Login 2), I get "undefined method `command_string'' for
#<SOAP::RPC::Driver:0x316dc28>"
"Login" is a legit
2006 Feb 12
1
R: mean from list
great!! thanks very much, mean(unlist(lapply(listdata, function(z) z$c)))
works well.
and what about getting the average table $a (displaying the average elements
across all 1000 matrix)? could you please help me? I am struggling with
this...
thanks in advance
Roberto
mean(unlist(lapply(x, function(z) z$d))) should do the trick
On Sun, 12 Feb 2006 20:06:12 +0000, statistical.model at
2010 Jul 19
3
ActiveRecord override
Would really appreciate it if someone could tell me why this is happening:
I override ssn method of AR class so I can encrypt/decrypt to/from the db:
class Person < ActiveRecord::Base
  def ssn=(value)
    write_attribute(:borrower_ssn, Crypto.encrypt(self.encryption_key,
value))
    write_attribute(:borrower_ssn_final_four, value[5,4])
  end
  def ssn
    # this begin - rescue can be
2009 Jul 04
2
[LLVMdev] Alloca Instruction
Hi all,
I was reading the description of run-time stack and alloca instructions in
LLVM IR and have a question about the same. Do LLVM alloca instructions
allow the processing on stack across some alloca blocks?
For example, is following code valid?
define i32 @f()
{
       %0 = alloca i8, i32 16
      %1 = ptrtoint i8* %0 to i32
       %2 = add i32 %1, 4
       %3 = inttoptr i32 %2 to i32*
   
2007 Jan 10
2
labels outliers in boxplot
Dear R-users,
Following is part of my data, where slide has 36
levels and block 48 levels. I have done boxplot for
each slide on the same graph. There are outliers for
each slide and I tried to use indentify functtion to
identify outliers in such a way that when I click on
an outlier or point, the points will be labelled by
either their block or ID or by both but without
success. How can I make
2008 Mar 27
6
Installing Postfix/Dovecot
I have just installed CentOS 5.1 on my home server and I am trying to 
set a mail server.
I have diligently followed the instructions on the Wiki - How To on the 
CentOS website (http://wiki.centos.org/HowTos/postfix). However I cannot 
send internal email (I haven't yet tried externally).
Do you have any suggestions on what to check? To test it I used two 
normail user: giulio and federica.
2006 Jan 20
3
fractional factorial design in R
Hi,
i need to create a fractional factorial design sufficient to estimate the
main effects.
The factors may have any number of levels, let's say any number from 2 to 6.
I've tried to use the library conf.design , but i cannot figure out how to
write the code.
For example, what is the code for a design with 5 factors (2x3x3x5x2) and
only main effects not confounded?
thanks in advance!
2008 Apr 06
4
Apache Authorization Access Control - location of htpasswd in Centos 5.1?
Hi,
 
I?m trying to set up a private family web site for genealogy, and want to set up Apache Authorization access control for this site, and once the user has logged in has access to the entire site.  I?ve been reading the info at http://httpd.apache.org/docs/2.2/howto/auth.html to learn how to do this.  I?m just planning on passing out the same username and password to all family members and
2006 Jun 22
9
Again on Apache 2
Hello everybody.
I know, I know, another post about Apache 2, but I have looked a lot on 
the internet and I haven''t found the answer to my problem.
I have a Linux Fedora Core 5 box, with Apache 2.2.2 (compiled and 
installed), Ruby 1.8.4 (compiled and installed), RubyGems 0.8.11 
(compiled and installed) and Rails... I don''t know what version as this 
one I haven installed
2006 Jul 03
5
I can''t see my app
Hello everybody,
I was able to set up Ruby 1.8.4 on Rails, using Apache 2.2.2 and MySql 
5.0.22 and if you go to http://spagnolo.troccoli.it you have the nice 
"Welcome abroad" page.
I have created a table (modes) with mysql
CREATE TABLE `modes` (
  `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
  `description` VARCHAR(45) NOT NULL DEFAULT '''',
  PRIMARY KEY(`id`)
)
1999 May 27
2
Can't connect to samba from foreign network --- 'Gethostbyaddr failed' error in log.smb
I have a samba server at ip address
	aaa.bbb.ccc.ddd
I can connect to it from clients on subnets aaa.bbb.eee. and
aaa.bbb.fff.
I can't connect to it from clients on ggg.hhh.
smb.conf has
	hosts deny = all
	hosts allow = localhost, aaa.bbb., ggg.hhh.
The client can successfully 'ping mysambaserver' (resolves to
aaa.bbb.ccc.ddd).  Doing 'net view \\mysambaserver' fails with
2004 Apr 06
4
Routing problem
Hi, 
i have one  firewall/gateway server with two interfaces and a routing 
problem (?). 
eth0: external interface 
eth1: internal interface. Both ip address are valid. 
Services like DNS, HTTP is configured to run using eth1 ip address. 
The problem is when i try to connect from internet to firewall, i can“t see 
eth1 ip address... only eth0 ip address. 
So, when i try to connect to web
2013 Feb 16
1
[LLVMdev] A weird problem when try to output operand of instruction involving function pointer in a struct
Hi all,
I just start to learn llvm. I am trying to get the operand's name of some
instruction that invokes a function field of a struct. While,  I found in
the result that there is a sequence number attached to the function field
name. Below is an example:
/******source code t2.c*******/
#include <stdio.h>
void F(){printf("F\n");}
void E(){printf("E\n");}
void
2011 Nov 18
2
A-law and mu-law
Hi to all!
	I have a database of audio files that I want to losslessly compress.
Unfortunately I have several 8bit A-law and mu-law files in the database 
and I see from here
http://flac.sourceforge.net/documentation_tools_flac.html
that they are not supported by the reference flac encoder/decoder.
Is there a reason for this?
Would it be possible to add support for these files in the reference