s-news
[Top] [All Lists]

Data manipulation

To: s-news@lists.biostat.wustl.edu
Subject: Data manipulation
From: GRAHAM LEASK <grahamleask@btopenworld.com>
Date: Sun, 23 Apr 2006 14:40:48 +0100 (BST)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btopenworld.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bA+dk4ddQvB4xVdWyGiPrr/Zun8f0nFXN6f3ipPeggm5OdayY1zYiQWRg2uu35ZAQKzXqsEtKmE3hNo7+YjYN97/ZpGNgj/TTB5moeWLe/o80ivwgCiiZw9dcw7flXSz/4oX/j2FdLxx4BTH5d5PyNFsWTsw9xCQ6K1Sv5uVSYI= ;
I have a file with several thousand rows consisting of 7 columns.
 
Some of the data in Col6 are characters, the rest are numeric or NA's. I wish to replace the data in Col6 which are characters (not NAs) with the data in the adjacent cell of Col7. How do I do this simply in S plus?
 
Any help greatly appreciated
 
Best wishes
 
 
Graham


Kind regards


Dr Graham Leask
Economics and Strategy Group
Aston Business School
Aston University
Aston Triangle
Birmingham
B4 7ET

Tel: Direct line 0121 204 3150
email g.leask@aston.ac.uk
<Prev in Thread] Current Thread [Next in Thread>