similar to: paste adjacent elements matching string

Displaying 20 results from an estimated 600 matches similar to: "paste adjacent elements matching string"

2009 Aug 12
4
paste first row string onto every string in column
Hi, I am trying to edit a data frame such that the string in the first line is appended onto the beginning of each element in the subsequent rows. The data looks like this: > df V1 V2 V3 V4 1 DPA1* DPA1* DPB1* DPB1* 2 0103 0104 0401 0601 3 0103 0103 0301 0402 . . and what I want is this: >dfnew V1 V2 V3 V4 1 DPA1* DPA1* DPB1* DPB1* 2 DPA1*0103
2009 Oct 05
3
how to have 'match' ignore no-matches
Hi all, I think this is a very basic question, but I'm new to this so please bear with me. I'm using match to translate elements of a data frame using a lookup table. If the content of a particular cell is not found in the lookup table, the function returns NA. I'm wondering how I can just ignore those cells, and return the original contents if no match is found in the lookup table.
2009 Aug 12
0
Re : paste first row string onto every string in column
Try this , save your data in C:/ and write this (data <- read.csv2("c:/jill.csv", sep=",")) (C<-data[1,]) A <- numeric(4) B <- numeric(4) for (i in 1 :4){ A[i] <- paste(data[1,i],data[2,i]) B[i] <- paste(data[1,i],data[3,i]) } A B (data1 <- rbind(as.character(A),as.character(B))) (data2 <- rbind(C,data1)) normaly that gives that > (data <-
2008 Mar 17
4
VNC authentication failures to windows HVM
I''ve set xend service properties as follows: config/vnc-listen astring \''0.0.0.0\'' config/vncpasswd astring \''vnc\'' config/default-nic astring ''nge1'' but I get an authentication error whenever I try to connect to the console with ''vncviewer :0'' - I''m on the xvm host itself. other relevant data: SunOS
2007 Dec 17
16
How to configure default NIC when creating Guest
Hi All, I have a machine with three network cards, and the third card(named e1000g2) is in use now. I want to use e1000g2 as default NIC when I create Guest. How can I change the default NIC? I can override the default value of config/default-nic property of svc:/system/xvm/xend. But xend still use e1000g0 when creating Guest. BTW, I can explicitly set "bridge=e1000g2" when creating
2006 May 03
2
grouped output
hello, Suppose I have a table that looks like this: center name email Health Jon jon@test.com Health Bob bob@test.com Admin Jane jan@test.com Admin Jill jill@test.com I would like the output to look like this: Health Jon jon@test.com Bob bob@test.com Admin Jane jan@test.com Jill jill@test.com when i using cold fusion, this was easy via a tag called cfoutput. when i was using java, this was
2004 Jun 03
2
Force user
Hello list The Samba Howto Collection repeatedly asserts that by setting the sticky bit on directories any files created in those directories will be created with the owner set to that of the directory (for example, see http://samba.mirror.ac.uk/samba/docs/man/howto/AccessControls.html#id2541262). This has never worked for me. Files created inherit the group of the directory, but not the owner.
2007 Nov 19
3
virt-install complains about vnc-password not being set
Hi All, Im getting the following error when I run virt-install: bash-3.2# virt-install -n winxp-01 --hvm -r 384 --vnc -f /etc/opt/vms/winxp-01.img -s 16 -c /etc/opt/images/windowsXP_SP2.iso Starting install... libvir: Xen Daemon error : POST operation failed: (xend.err ''Error creating domain: vncpasswd is not set up in VMconfig and xend-config.'') Traceback (most recent call
2007 Oct 10
3
save lm output into vectors
Hi, May I ask how I can save the coefficients and the p values into a table? thanks. jiong The email message (and any attachments) is for the sole...{{dropped:11}}
2003 Jul 28
5
hi
Guess what I have no clue what i am doing/ meant to do with R. i have just begun statistics for uni and all commands don't seem to work, they say syntax error, we are meant to put a hist.r in but ? please help, step by step, to use this program i would turn it on (it comes up rgui) is this wrong, have i put the wrong bit on it? Please help, I am so glad there is an R help Thankyou jill
2007 May 11
2
Problems with BEFORE searches.
Ok, I am trying to modify some code given to me by the author of the dspam plugin for dovecot (sorry the name eludes me). I am modifying it to handle UNSEEN differently than SEEN. Below is the python code. I am not a python programmer, but I get the basic idea. ok, uids = conn.search(None, 'BEFORE', unreadsentbefore, 'SEEN') "11-May-2007 06:18:29 -0600" is the value
2008 May 16
1
symbolic linking
I have a number directories under /opt on computer jack. I want some (not all) of them to appear in /opt on computer jill. I have the /opt directory on jack mounted on jill under /mnt/jack If I go into the /opt directory on jill and do this: ln -s /mnt/jack/opt/files . I get /opt/files/files on jill. What I want is /opt/files and I can't see what I'm doing wrong. -- MELVILLE
2004 Feb 18
1
Preview Samba-3 by Example book
Hi All, I know there has been a lot of interest in John Terpstra's upcoming book, "Samba-3 by Example: Practical Exercises to Successful Deployment." The book is scheduled to print end of March and can be found at local bookstores by early April. In the meantime, John will be giving a talk at the BYU UNIX User's Group tomorrow, Thursday, February 19th at 8PM, where he will be
2003 Jun 27
2
No dial Tone but its registering from remote site! Anyone with idea?
Hello Everyone - Well, I think I'm getting closer with the asterisk connection. This is my setup and I keep getting this error below in ,my /var/log/asterisk/messages file. I have opened 5060 port on the firewall box. I would this is Warning which I can ignore! But I see the connetcion coming but NO DIAL TONE on mt ata186 box sitting in my 192.168.200.x site! I'm using ATA186(cisco
2003 Nov 16
3
an object of class lm returned by lm?
Can someone tell me what an object of class lm returned by lm means? I assumed it mean the regression model - but I'm not sure how to enter this in. I have tried y~a+b but this is not working. I have also tried saving the regression results and entering these, but again this is incorrect. This language is from the following: lm.LMtests(model, listw, zero.policy=FALSE,
2008 Jun 26
2
Oops: zfs-auto-snapshot with at scheduling
Hi all, I''ll attach a new version zfs-auto-snapshot including some more improvements, and probably some new bugs. Seriously, I have tested it, but certainly not all functionality, so please let me know about any (new) problems you come across. Except from the change log: - Added support to schedule using at(1), see README.zfs-auto-snapshot.txt - take_snapshot will only run if
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi, When an integer argument is passed as value, node_set_value segfaults. Reproducer is at the end of this message The backtrace points at hivex-py.c, function get_value. While obj is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL. Kind regards, Peter https://lekensteyn.nl #!/usr/bin/env python3 import hivex, sys h = hivex.Hivex(sys.argv[1]) print(h) val = {
2011 Apr 03
4
replace last 3 characters of string
Hi, I would like to replace the last tree characters of the values of a certain column in a dataframe. This replacement should only take place if the last three characters correspond to the value "/:/" and they should be replaced with ""(blank) I cannot perform a simple gsub because the characters /:/ might also be present somewhere else in the string values and then they
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi, This patch series is based on a prior patch[1], splitting off changes as requested and incorporating feedback from Richard Jones. It introduces type validation to avoid segmentation faults (instead, it reports an exception) and fixes handling of the bytes type in Python 3. Major changes since that series: - Drop newly introduced support for integer types for DWORD/QWORDS - Reject Unicode
2009 Nov 12
2
package "tm" fails to remove "the" with remove stopwords
I am using code that previously worked to remove stopwords using package "tm". Even manually adding "the" to the list does not work to remove "the". This package has undergone extensive redevelopment with changes to the function syntax, so perhaps I am just missing something. Please see my simple example, output, and sessionInfo() below. Thanks! Mark require(tm)