Displaying 12 results from an estimated 12 matches for "c06".
Did you mean:
06
2017 Dec 13
3
match and new columns
Hi all,
I have a data frame
tdat <- read.table(textConnection("A B C Y
A12 B03 C04 0.70
A23 B05 C06 0.05
A14 B06 C07 1.20
A25 A23 A12 3.51
A16 A25 A14 2,16"),header = TRUE)
I want match tdat$B with tdat$A and populate the column values of tdat$A
( col A and Col B) in the newly created columns (col D and col E). please
find my attempt and the desired output below
Desired output
A B C Y...
2017 Dec 14
1
match and new columns
Hi Bill,
I put stringsAsFactors = FALSE
still did not work.
tdat <- read.table(textConnection("A B C Y
A12 B03 C04 0.70
A23 B05 C06 0.05
A14 B06 C07 1.20
A25 A23 A12 3.51
A16 A25 A14 2,16"),header = TRUE ,stringsAsFactors = FALSE)
tdat$D <- 0
tdat$E <- 0
tdat$D <- (ifelse(tdat$B %in% tdat$A, tdat$A[tdat$B], 0))
tdat$E <- (ifelse(tdat$B %in% tdat$A, tdat$A[tdat$C], 0))
tdat
I got this,
A B C Y D E
1...
2017 Dec 13
2
match and new columns
Thank you Rui,
I did not get the desired result. Here is the output from your script
A B C Y D E
1 A12 B03 C04 0.70 0 0
2 A23 B05 C06 0.05 0 0
3 A14 B06 C07 1.20 0 0
4 A25 A23 A12 3.51 1 1
5 A16 A25 A14 2,16 4 4
On Wed, Dec 13, 2017 at 4:36 PM, Rui Barradas <ruipbarradas at sapo.pt> wrote:
> Hello,
>
> Here is one way.
>
> tdat$D <- ifelse(tdat$B %in% tdat$A, tdat$A[tdat$B], 0)
> tdat$E <- ifelse(...
2017 Dec 14
0
match and new columns
...y here.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Wed, Dec 13, 2017 at 3:02 PM, Val <valkremk at gmail.com> wrote:
> Thank you Rui,
> I did not get the desired result. Here is the output from your script
>
> A B C Y D E
> 1 A12 B03 C04 0.70 0 0
> 2 A23 B05 C06 0.05 0 0
> 3 A14 B06 C07 1.20 0 0
> 4 A25 A23 A12 3.51 1 1
> 5 A16 A25 A14 2,16 4 4
>
>
> On Wed, Dec 13, 2017 at 4:36 PM, Rui Barradas <ruipbarradas at sapo.pt>
> wrote:
>
> > Hello,
> >
> > Here is one way.
> >
> > tdat$D <- ifelse(td...
2017 Dec 13
0
match and new columns
...dat$B %in% tdat$A, tdat$A[tdat$B], 0)
tdat$E <- ifelse(tdat$B %in% tdat$A, tdat$A[tdat$C], 0)
Hope this helps,
Rui Barradas
On 12/13/2017 9:36 PM, Val wrote:
> Hi all,
>
> I have a data frame
> tdat <- read.table(textConnection("A B C Y
> A12 B03 C04 0.70
> A23 B05 C06 0.05
> A14 B06 C07 1.20
> A25 A23 A12 3.51
> A16 A25 A14 2,16"),header = TRUE)
>
> I want match tdat$B with tdat$A and populate the column values of tdat$A
> ( col A and Col B) in the newly created columns (col D and col E). please
> find my attempt and the desired o...
2001 Jun 05
2
a bug? (PR#968)
...80 10 0
258 C05 CP2 CP 180 10 0
259 C05 CP2 CP 180 10 0
260 C05 CP2 CP 180 10 0
261 C05 CP2 CP 180 10 0
262 C05 CP2 CP 180 10 0
263 C05 CP2 CP 180 10 0
264 C05 CP2 CP 180 10 0
265 C05 CP2 CP 180 10 0
266 C05 CP2 CP 180 10 0
267 C05 CP2 CP 180 10 0
268 C05 CP2 CP 180 10 0
269 C05 CP2 CP 180 10 0
270 C06 CP2 CP 180 10 1
271 C06 CP2 CP 180 10 1
272 C06 CP2 CP 180 10 1
273 C06 CP2 CP 180 10 1
274 C06 CP2 CP 180 10 1
275 C06 CP2 CP 180 10 1
276 C06 CP2 CP 180 10 1
277 C06 CP2 CP 180 10 0
278 C06 CP2 CP 180 10 0
279 C06 CP2 CP 180 10 0
280 C06 CP2 CP 180 10 0
281 C06 CP2 CP 180 10 0
282 C06 CP2 CP 180...
2002 Apr 02
3
getaddrinfo() problem with AIX 4.3.3 and rsync 2.5.2?
...s, &res0);
+ error = getaddrinfo(name_buf, NULL, &hints, &res0);
if (error) {
rprintf(FERROR,
RSYNC_NAME ": forward name lookup for %s failed:
%s\n",
--
John L. Allen, Dept 0631, EMS
516-346-8456, MS C06-001
Northrop Grumman Information Technology
Internal Information Services
--
<<JOHN.L.ALLEN.vcf>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JOHN.L.ALLEN.vcf
Type: application/octet-stream
Size: 836 bytes
Desc: not available
U...
2019 Nov 22
0
sendmail on Centos 7.7
See below:
getent hosts smtp-relay.gmail.com
2607:f8b0:4002:c06::1c smtp-relay.gmail.com
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry tu...
2010 Apr 23
2
Deferred Default Marker
I've finally narrowed down a puzzling problem: here is the short test
case.
tmt34% R --vanilla
R version 2.10.0 (2009-10-26)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
> temp <- matrix(runif(50), ncol=2)
> t(temp) %*% temp
[,1] [,2]
[1,] 7.916016 6.049698
[2,] 6.049698 7.650694
> library(kinship)
Loading required package:
2019 Nov 22
7
sendmail on Centos 7.7
Hi All,
I am 'trying' to set SMART_HOST in sendmail to point to smtp-relay.gmail.com
but when looking at the /var/log/maillog its going to mx203.inbound-mx.net.
[192.110.255.243],
why???
my line from sendmail.mc
define(`SMART_HOST', `smtp-relay.gmail.com')
I did make in /etc/mail and service sendmail restart
This is the only SMART_HOST in the config file. I started with the
2002 Feb 12
0
[RHSA-2001:163-20] Updated ucd-snmp packages available
....3-1.6.x.3.sparc.rpm
adb73a49a76814e0a0062d54164e8864 6.2/en/os/sparc/ucd-snmp-utils-4.2.3-1.6.x.3.sparc.rpm
cc8f148b8089dfe0371a4b4312b10356 7.0/en/os/SRPMS/ucd-snmp-4.2.3-1.7.0.3.src.rpm
b5dcd37ae2c618c0805c945ef48c8a2a 7.0/en/os/alpha/ucd-snmp-4.2.3-1.7.0.3.alpha.rpm
b8ac7c6a82b0700c8beacc0cfd966c06 7.0/en/os/alpha/ucd-snmp-devel-4.2.3-1.7.0.3.alpha.rpm
333c14a24bb2fb993bdc46948012c3fe 7.0/en/os/alpha/ucd-snmp-utils-4.2.3-1.7.0.3.alpha.rpm
71bf5b3269947b022f2a3b9563abe138 7.0/en/os/i386/ucd-snmp-4.2.3-1.7.0.3.i386.rpm
291e97cc40fa8de21abb9a4802bd13a4 7.0/en/os/i386/ucd-snmp-devel-4.2.3-1.7.0.3...
2000 Jun 28
2
Colour depth reduced to 12 by bitmap devices
...45 Lum=120
"#639b72", # Col.101: Hue=091 Sat=053 Lum=120
"#5da170", # Col.102: Hue=091 Sat=064 Lum=120
"#57a76d", # Col.103: Hue=091 Sat=076 Lum=120
"#4faf69", # Col.104: Hue=091 Sat=090 Lum=120
"#47b766", # Col.105: Hue=091 Sat=106 Lum=120
"#3ec062", # Col.106: Hue=091 Sat=123 Lum=120
"#33cb5d", # Col.107: Hue=091 Sat=143 Lum=120
"#28d658", # Col.108: Hue=091 Sat=164 Lum=120
"#1be352", # Col.109: Hue=091 Sat=188 Lum=120
"#0ef04c", # Col.110: Hue=091 Sat=213 Lum=120
"#00ff46", # Col.111:...