similar to: (no subject)

Displaying 20 results from an estimated 3000 matches similar to: "(no subject)"

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))
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,
2017 Dec 14
0
match and new columns
Use the stringsAsFactors=FALSE argument to read.table when making your data.frame - factors are getting in your way 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
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
2017 Dec 13
0
match and new columns
Hello, Here is one way. 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) 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
2009 Jul 10
3
strange strsplit gsub problem 0 is this a bug or a string length limitation?
I was working with the rmetrics portfolioBacktesting function and dug into the code to try to find why my formula with 113 items, i.e. A1 thru A113, was being truncated and I only get 85 items, not 113. Is it due to a string length limitation in R or is it a bug in the strsplit or gsub functions, or in my string? I'd very much appreciate any suggestions ============Input script:
2008 Jan 20
3
Logical test and look up table
Dear R users, I have a data frame with one column (4000 rows) containing name codes (factor with 63 levels). I would like to associate each name with a particular Type (coded as 1,2,3,4,H or H1) in a second column. Is it possible to do a lookup table of associations (i.e. A23 is of type 1, A13 is of type 3 ...) so as to fill up automatically the $Type column. df() $Source $Type A23 A24 A9 A32
2013 Dec 17
1
shorewall add fails with IPSET=
Hi all I have a CentOS6 box with shorewall-4.5.21. If I have IPSET= in shorewall.conf and I issue the command "shorewall add ppp:192.168.33.3 ptp", I get the error: /usr/share/shorewall/lib.cli: line 585: [: too many arguments ERROR: Zone ptp, interface ppp does not have a dynamic host list The error is corrected setting the actual path to ipset in shorewall.conf, or via the patch:
2002 Jul 31
2
Win98 can't login to NT
Hi there, I have finally talked a corporation into allowing me to introduce Unix. I have used samba before, but I now have a problem. Some (and only some) of the windows 98 clients can no longer log into the NT domain controller. They get the same message as if the passwd/username was wrong. Here is a snip from my config file: os level=00 password server=nt_box domain master=no local
2008 Sep 29
3
OT - Avantages of ISDN PtP and PtmP
Hi, Reading http://www.asteriskguru.com/tutorials/bri.html , it seems PtP is the way to connect businesses but if you read http://public.swbell.net/ISDN/connect.html you would think the opposite. Can anyone elaborate a bit PtP or PtmP respective advantages ? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 May 26
2
chan_capi with an AVM C4 connected to 4 BRI-lines in PTP-Mode
Hi! I'm goining to connect an AVM C4 to 4 BRI-lines in PTP-Mode, all BRI-lines will have the same number (1234-XX for example). I don't know if this is possible and I can't test it, because I don't have these lines yet. Is anybody out there, running such a configuration? I'm looking for some example configs. Especially I want to know how it is possible, to let asterisk
2005 Aug 27
1
Asterisk ISDN: Problem Setting CallerID as DID Extension Numbers.
Hello Group, Current Setup: - Eicon Quad BRI ISDN Card. - 4 ISDN BRI (Telco: Telstra) Onramp2 services. - Mode: Point2Point. - 100 Indial Number ranges. Full National Number (9 digit format): BAAAAAAXX where: B (Area code): 2/3/7/8 A (Normal Numbers) X (99 Indial extensions) eg: BAAAAAA00 BAAAAAA20 etc Requirement: - To be able send Indial numbers as Caller ID when dialing out. Configration:
2006 May 15
1
point-to-point ethernet link
I have an embedded linux board (main board), which has multiple Ethernet interfaces, and a daughter card, which has one Ethernet interface. The diagram is shown as following. +---------+ +----------------------------+ | daughter |--------------------| ptp |---------------- | card | Ethernet |
2015 Dec 10
1
USB devices - libgphoto2 - PTP - hplip
On 10/12/15 15:49, Leon Fauster wrote: > Am 10.12.2015 um 11:11 schrieb Michael H <michael at wemoto.com>: >> >> >> On 10/12/15 10:02, Leon Fauster wrote: >>> Am 10.12.2015 um 09:37 schrieb Michael H <michael at wemoto.com>: >>>> >>>> I'm trying to disable USB storage devices in Centos7.1.1503. >>> >>> on EL6
2005 Jul 07
3
What method I should to use for these data?
Dear R user: I am studying the allele data of two populations. the following is the data: a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 pop1 0.0217 0.0000 0.0109 0.0435 0.0435 0.0000 0.0109 0.0543 0.1739 0.0761 0.1413 0.1522 0.1087 0.0870 0.0435 0.0217 0.0109 pop2 0.0213 0.0213 0.0000 0.0000 0.0000 0.0426 0.1702 0.2128 0.1596 0.1809 0.0957 0.0745 0.0106
2010 May 10
4
Port Masquerading
Hi, I am wondering if it is possible to do the following with shorewall. I operate a network with some additional IP''s that are SNAT''d to various server machines on my network. One of my machines is a Terminal server. I need to be able to RDP to various servers for clients, that are IP locked for RDP on my PtP address, not the SNAT address of my Terminal server. Can I
2011 Jul 05
3
[LLVMdev] optimizer returning wrong variable?
I'm having some trouble trying to workout how to form functions from the c interface I thought I had it sorted but I guess I'm missing something or haven't understood the requirements, a case of trial and error and not really having a clue to start with! I've got binary ops, cmps, for loops, while loops working but then it hit the wall with a tail cmp loop. looking at the
2015 Dec 10
5
USB devices - libgphoto2 - PTP - hplip
Hi, Posting this again as it has been drowned. can anybody assist? ------------------------------------------------------------------ Hi All, I'm trying to disable USB storage devices in Centos7.1.1503. I've setup udev rules to block all usb devices and then additional rules to allow specific vendors / products to be used (mainly keyboards and mice). This is all working perfectly.
2013 Jan 23
3
clock sync/drift
Hi, We have a little over 100 servers, almost all running CentOS 5.7. Virtually all are Dell servers, generally a mix of 1950s, R610s, and R410s. We use NTP and/or PTP to sync their clocks. One phenomenon we've noticed is that (1) on reboot, the clocks are all greatly out of sync, and (2) if the PTP or NTP process is stopped, the clocks start drifting very quickly. If it was isolated to
2011 Jul 05
0
[LLVMdev] optimizer returning wrong variable?
Andrew Ferguson wrote: > I'm having some trouble trying to workout how to form functions from > the c interface > I thought I had it sorted but I guess I'm missing something or haven't > understood > the requirements, a case of trial and error and not really having a clue > to start with! > > I've got binary ops, cmps, for loops, while loops working but