Displaying 20 results from an estimated 700 matches similar to: "If then else with command for"
2010 Sep 03
7
Function Gini or Ineq
Hi listers,
Does it necessary to install any package in order to use the GINI or INEQ
functions.
If I use the following command the R tells me that didn't find the GINI
function.
x<-c(541, 1463, 2445, 3438, 4437, 5401, 6392, 8304, 11904, 22261)
G<-gini(x)
Thanks in advance,
Marcio
--
View this message in context:
2009 Sep 18
2
Sum according observation
Hi listers,
I have a simple doubt...
I need to manipulate the data base as:
var1 var2
7 0.1
7 0.1
8 0.12
10 0.15
12 0.18
20 0.31
I would like to aggregate the equal cases as var1 making the sum of var2...
I would get...
var1 var2
7 0.2
8 0.12
10 0.15
12 0.18
20 0.31
Thanks in advance,
Marcio
--
View this message in context:
2009 Jun 11
4
Count observation
Hi listers,
I have the following code...
data<-as.matrix(c(1,2,3,4,5,6,7,8,9,10),nrow=10,ncol=1,byrow=TRUE)
n<-nrow(data)
m<-n-1
boot<-data[sample(m,replace=T),]
So, I need to count the number of times each observation was selected at the
sample with replacement...
Suppose I sampled...
4 5 1 3 7 5 1 4 7
So, I would count...
x count
1 2
2 0
3 1
4 2
5 2
6 0
7 2
8 0
9 0
10 0
2010 Sep 13
2
Condition %in%
Hi listers,
If I would like to check if a variable contains certain value, I would
write:
if (10 %in% x)
And If I would like to check the opposite, that 10 is not into x. How would
be?
Thanks in advance,
Marcio
--
View this message in context: http://r.789695.n4.nabble.com/Condition-in-tp2538110p2538110.html
Sent from the R help mailing list archive at Nabble.com.
2010 Sep 20
1
Size of the legend
Hello,
Which would be the command to change the size of the legend.
I checked at the help and I found out something about TEXT.WIDTH, but I am
not sure if is what I want.
Any help!
Thanks in advance,
Marcio
--
View this message in context: http://r.789695.n4.nabble.com/Size-of-the-legend-tp2547601p2547601.html
Sent from the R help mailing list archive at Nabble.com.
2003 Aug 13
1
FWD SIP phone format=2, FWD call format=4, why?
Hi!
I'm trying an asterisk-FWD connection. I'm using X-Lite OR SIPPS as the
IP phone. I configured the X-Lite and SIPPS to use GSM codec. Whe I
call FWD, I get this info on the channels when the call has not been
stablished yet:
sip show channels
Peer User/ANR Call ID Seq (Tx/Rx) Lag Jitter
Format
192.246.69.223 613 1770bf3430d 00102/00000
2009 Jun 12
3
Order data frame
Hi listers,
I have a data frame with 5 variables... And I want reorder the data frame
according a specific variable X...
I checked the sort and order functions... In my case I think that the ORDER
function is applicable... But I did not understand at all... The idea is
simple... Data order by X...
I know that this is very simple... Anyways... How I would do that...
Thanks in advance,
Marcio
--
2020 Apr 16
4
Crash after Update to 4.12.1 with vfs full_audit
Hello alAl,
after update of our test server to 4.12.1 from 4.11 it crashes. If the
vfs module is removed from the config everthing works as before. Logs
from the crash see here:
.0.31:445]
Apr 16 13:36:47 lx-sv-03 smbd_audit[6263]: [2020/04/16 13:36:47.546559,
0] ../../source3/lib/util.c:830(smb_panic_s3)
Apr 16 13:36:47 lx-sv-03 smbd_audit[6263]: PANIC (pid 6263):
vfs_full_audit.c: name table
2006 Dec 19
2
Effect.Pulsate on last scriptaculous
Somone have tested the last scriptaculous version that ships with last
prototype?
I you make an Effect.Pulsate, the element stays hidden after the effect
finish if the element don''t have opacity stablished. This is for the changes
on the setStyle method on prototype.
The original code is:
2009 Mar 26
2
Data manipulation - multiplicate cases
Hi listers,
I am trying to arrange my data and I didn't find any information how to do
it!
I have a data with 3 variables: X Y Z
1-I would like to multiplicate de information of X according to the number I
have for my Y variable...
2-Then I want to identify with a dicotomic variable by the number according
my variable Z from X...
I can do the first part by...
z<-rep(x,y)
But I don't
2006 Jan 05
5
multiple links and nat
Hi, this might be a dumb question, but I''m not finding much
information online.
I''m trying to setup a 2.6 linux box to run nat across multiple
upstream links as a simple way to aggregate bandwidth. I found the
instructions in lartc section 4.2
(http://lartc.org/howto/lartc.rpdb.multiple-links.html) fairly clear
and straightforward. I implemented those, and a couple of trivial
2008 Feb 09
1
Dialing SIP server user extension... Dial string issue...
Hi,
I'm trying to call a SIP server while providing the SIP server
username/password in dial string but it's not working ...
Dial(SIP/gs102:test at 192.168.2.81);
User on sip server (192.168.2.81):
[gs102]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=gs102
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.2.1
qualify=1000
mailbox=102
context=context-gs102
2002 Apr 22
1
regapi with global registry
Hi,
I have a global windows fake tree, which every user in the
group "wine" can access.
However I got a problem dealing with new applications installed.
When a user (any user, even root) installs an application, the
registry entries goes to $HOME/.wine/*.reg .
This also means that other users will not be able to use
it because of the missing registry entries.
I use the regSet.sh,
2009 Apr 15
4
[Release Planning 3.4] 3.4.0pre1 will be delayed
Hey folks,
the release of Samba 3.4.0pre1 will be delayed until April 30, 2009 due to
the samr access check bugs and bug #6263 (Domain login problems in Windows
XP without SP3).
@Developers: There is still some space left to place your changes in the
release notes.
Karolin
--
Samba http://www.samba.org
SerNet http://www.sernet.de
sambaXP http://www.sambaxp.org
-------------- next part
2010 Aug 11
1
Graphic Dispersion - Colored Points
Hey folks,
I have a graphic of dispersion...
I would like to color some specific points (x,y) according to another
indicator variable, for example:
x<-rnorm(5)
y<-rnorm(5)
ind<-(1,0,0,1,0)
plot(x,y)
Any suggestion, thanks...
Marcio
--
View this message in context: http://r.789695.n4.nabble.com/Graphic-Dispersion-Colored-Points-tp2322011p2322011.html
Sent from the R help mailing list
2009 Aug 18
1
Simulation function
Hi listers,
I've been looking for a procedure, but I am not succeding...
I have a function that give multiple results...
Then, I would like to simulate this function n times, so I need to save/keep
the n multiple results, in order to calculate my desired statistics...
I have already tried with the RETURN and LIST FUNCTION, but I am not getting
it right...
An example of what I am looking for
2009 Aug 14
1
Simulation Function - Save results
Hi listers,
I am working on a simulation... But I am having some troubles...
Suppose I have a function A which produces two results (mean and
variance)...
Then I would like to simulate this function A with a function B many times
using the results from function A
For example:
#Function A
boot<-function(a,b,c){
mean_boot<-(a+b)/2
var_boot<-c
#list(a=a,b=b,c=c)
return(a)
}
Then I would
2009 Apr 17
1
[Announce] Samba 3.2.11 Maintenance Release Available
================================================================
"You can''t have everything.
Where would you put it?
Steven Wright
================================================================
Release Announcements
=====================
This is a maintenance release of the Samba 3.2 series.
Major enhancements in 3.2.11 include:
o Fix domain logins for WinXP
2009 Apr 17
1
[Announce] Samba 3.2.11 Maintenance Release Available
================================================================
"You can''t have everything.
Where would you put it?
Steven Wright
================================================================
Release Announcements
=====================
This is a maintenance release of the Samba 3.2 series.
Major enhancements in 3.2.11 include:
o Fix domain logins for WinXP
2010 Jun 30
1
Samba 3.3 ldap tools
I am currently trying to setup my Samba server to act as a samba PDC, with ldap as a backend. I have a selfsigned CA, that has signed the certificates to my ldap server.
Starting my smbd, i keep getting the message
smb_ldap_setup_connection: ldap://ldap.streetgeek.lan/
Failed to issue the StartTLS instruction: Connect error
Connection to LDAP server failed for the 1 try!
smbldap_open: already