Displaying 20 results from an estimated 110 matches similar to: "Logical operators"
2002 Jun 14
1
data.frame - transform
Hi there,
I have a data.frame (pwt6) which I would like to transform:
country year gdp
MEX 1950 2
MEX 1951 5
BOL 1950 4
BOL 1951 12
ITA 1950 45
ITA 1951 2
This should be the result:
year MEX.gdp BOL.gdp ITA.gdp
1950 2 4 45
1951 5 12 2
Right now I have this code (better - no code):
country.label<-names(table(pwt6$country))
result<-data.frame(year=NULL)
for(i in country.label)
?
2002 Jul 03
2
Adding text to a plot
Dear R-users,
again two question...
# Question 1
Adding two lines of text to a plot, I am using:
# -------------------------------
plot(k[,1], k[,2], pch=16,
ylim=range((min(k[,2])-0.2):(max(k[,2])+1)))
a <- paste("Cor.:" ,cor(k[,2],k[,1]))
b <- paste(nrow(k), "Countries")
text(90, max((k[,2])-0.51), a)
text(90, max((k[,2])-0.83), b)
#
2002 Jun 21
1
rbind
Hello,
I am sure this is a trivial question, but I don't get it...
Having a dataframe (b.70) like that:
> b.70[1:4,2:3]
ARG AUS
1960 19041 25949
1961 19675 25451
1962 19302 26463
1963 18121 27644
Now I want to calculate the log for each year and save the
result in a new dataframe called 'x'.
x<- data.frame(w=NULL)
for(i in 1:3)
2002 Jun 28
1
Transpose a dataframe
Hello,
I would like to switch this dataframe:
> k
country 1960 1961 1962 1963
99 ARG 7493 7733 7581 7108
246 AUS 10484 10342 10809 11357
295 AUT 7438 7808 7938 8212
393 BDI 587 502 555 608
442 BEL 8223 8638 9021 9311
in this structure:
year ARG AUS AUT BDI BEL
1960 7493 10484 7438 587 8223
1961 7733 10342 7808 502 8638
1962 7581 10809 7938 555
2002 Jun 30
0
Loop and 3D-Densityplot
Dear list,
I've got some more question.
# Number 1:
If I run this:
#----------------------------
Per.Start <- c(1950,1973)
Per.End <- c(1973,2001)
for(i in 1:2) {
age <- Per.End-Per.Start
}
age
#----------------------------
I'm getting:
[1] 23 28
But I want to save the result in two different
variables. Something like this:
#----DON'T WORK-------------
Per.Start
2002 May 26
3
Read a Time Serie CSV
Hi,
I want to read some Times Series of GDP from OECD-Countrys.
First I call:
> oecd96<-ts(read.csv("oecd96.csv",header=T,sep=";"),start=1950,freq=1)
> summary(oecd96)
gdpcausb gdpcautb gdpcbelb gdpccanb
Min. : 8567 Min. : 4533 Min. : 6616 Min. : 8966
1st Qu.:10771 1st Qu.: 8717 1st Qu.: 9440 1st Qu.:11694
Median
2002 Jul 03
3
latex
Hi,
i'm a newbie with latex and postscript but recognize
the power in combination wit R .
...current i don't now how i have to "inform" R1.5.0(patched) about my
MikeTex installation on windows 2000 and get following
latex(table)
Warning messages:
1: cat not found
2: cd not found
3: xdvi not found
P.S. maybe i must define in Rprofile something ???
Thanks for help and
2009 Nov 03
3
Weird operator behaviour
Hi,
I have a dataset called 'fish'. fish$Species returns extract 1. When I use
fish$Species != c("CRA","PHC"), i.e. I want all species except "CRA" and
"PHC", I get extract 2 which is blatantly wrong. Can anyone see what I'm
doing wrong?
Regards,
James
EXTRACT 1
> fish$Species
[1] ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB
2007 May 31
2
4.5 ALB Bonding Hang on Shutdown
Since I upgraded from 4.4 to 4.5 my system which has 2 sets
of ALB bonded interfaces hangs on shutdown while doing an
ifdown on these interfaces.
Has anyone else seen this issue with 4.5 and bonding?
Ross S. W. Walker
Information Systems Manager
Medallion Financial, Corp.
437 Madison Avenue
38th Floor
New York, NY 10022
Tel: (212) 328-2165
Fax: (212) 328-2125
WWW: http://www.medallion.com
2007 Jul 24
3
How to require a defined type...
Hi all,
I''m struggling with the following:
I have a defined type wrapped in a class:
class myclass {
define mytype(bla) {
file { "blabla":
....
}
exec { "blablabla":
...
}
}
}
And I access the defined type in my other class by doing this:
class otherclass {
include myclass
myclass::mytype { "alb":
...
}
# and here I want to
2017 Apr 25
1
Bonding mode balance-alb (6): How to control the assigned MAC address?
Hi,
we are trying to switch our bonding modes from 1 (active-backup) to 6
(balance-alb). However it seems, that these bond devices are not always
getting the MAC address from the same slave. Sometimes the device gets
the MAC address of the first and sometimes of the second slave. Since
only the MAC address of the first slave device is (can be) registered in
DHCP, this breaks connectivity
2008 Nov 21
1
Discrepancy in the regression coefficients for Cox regression - PBC data set
Hi,
When I run the following Cox proportional hazards model on the Mayo clinic's
PBC data set (given in the "survival" package), the regression coefficients
do not agree with the results presented in Table 4.6.3 (p. 195) of Fleming &
Harrington's book.
library(survival)
data(pbc)
ans.cox <- coxph(Surv(time, status) ~ log(bili) + log(alb) + age +
log(protime) +
2010 Sep 02
2
reshape to wide format takes extremely long
Hello,
I have a data.frame with the following format:
> head(clin2)
Study Subject Type Obs Cycle Day Date Time
1 A001101 10108 ALB 44.00000 98 1 2004-03-11 14:26
2 A001101 10108 ALP 95.00000 98 1 2004-03-11 14:26
3 A001101 10108 ALT 61.00000 98 1 2004-03-11 14:26
5 A001101 10108 AST 33.00000 98 1 2004-03-11 14:26
I want to transform this
2009 Mar 02
1
xy-plot alb font size
I would appreciate any help for the following question. How to increase the
font size of labels for the x and y axes in the following code?
---------------------------------
xyplot(lbxglu~lbxgh|eth,reg.dat.5, panel = p, col = 1:2,
par.strip.text = list(cex = 1.25,col="brown"),
xlab="A1C",ylab="Fasting Plasma Glucose", main="FPG")
p <- function(..., col)
2017 Apr 18
2
anaconda/kickstart: bonding device not created as expected
Hi,
I am currently struggling with the right way to configure a bonding
device via kickstart (via PXE).
I am installing servers which have "eno" network interfaces. Instead of
the expected bonding device with two active slaves (bonding mode is
balance-alb), I get a bonding device with only one active slave and an
independent, non-bonded network device. Also the bonding device
2007 Dec 05
2
Multiple contacts.
I'm sure this has been asked a million times before, but is there an easy
wa to have Asterisk register more than one (distinct) contact binding
concurrently?
The goal is to have two phones register with the same credentials from
different locations and consistently and reliably ring on inbound calls,
irrespective of their registration intervals and so on.
--
Alex Balashov
Evariste Systems
2017 Jun 17
3
Teaming vs Bond?
I'm looking at tuning up a new site and the bonding issue came up
A google search reveals that the gluster docs (and Lindsay) recommend
balance-alb bonding.
However, "team"ing came up which I wasn't familiar with. Its already in
RH6/7 and Ubuntu and their Github page implies its stable.
The libteam.org people seem to feel their solution is more lightweight
and it seems easy
2009 Sep 14
2
Opinions on bonding modes?
I am working on setting up an NFS server, which will mainly serve files
to web servers, and I want to setup two bonds. I have a question
regarding *which* bonding mode to use. None of the documentation I have
read suggests any mode is "better" than other with the exception of
specific use cases (e.g. switch does not support 802.3ad, active-backup).
Since my switch *does* support
2017 Jun 19
1
Teaming vs Bond?
OK, at least its not an *issue* with Gluster. I didn't expect any but
you never know.
I have been amused at the 'lack' of discussion on Teaming performance
found on Google searches.
There are lots of 'here it is and here is how to set it up'
articles/posts, but no 'ooh-wee-wow it is awesome' comments.
It seems that for most people Bonding has worked it kinks out
2020 Feb 27
6
net ADS join MEMBER
In some spare time, been trying to get Samba 4.10.6-1 working on AIX.
Several earlier posts handled by Louis and Rowland. Which were much
appreciated and beneficial.
Using this stripped (leaving comments out of it) GLOBALS section of
smb.conf:
[global]
workgroup = boost
realm = BOOST.COM
server string = Samba Server Version %v
interfaces = lo eth0