Thank you very much for all your help.
Following your advice, I solved my problem by using the following:
##
lines<- readLines("myFile.txt")
myline <- lines[myrow]
L <- nchar(myline)
substr(myline, Col.Ini, Col.Fin) <- NewValue
lines[myrow]
On Fri, Dec 17, 2010 at 01:49:23AM -0800, T.V. Nguyen wrote:
> On 17 Dec 2010, at 01:13, Mauricio Zambrano wrote:
[...]
> > but some text, and I now exactly the row that has to be modified and
> > the columns within that row that have to be changed with a new
> > numerical value.
[...]
> You can ei
On 12/17/2010 08:13 PM, Mauricio Zambrano wrote:
Dear list,
I need to change a value within a particular line of a plain text file
with characters and numbers, and I haven't found any way of doing this
by using R.
What I have a is a file that doesn't have tabular data (so, I think
that 'read.ta
Mauricio Zambrano wrote:
Dear list,
I need to change a value within a particular line of a plain text file
with characters and numbers, and I haven't found any way of doing this
by using R.
What I have a is a file that doesn't have tabular data (so, I think
that 'read.table' or 'read.delim' are
On 17 Dec 2010, at 01:13, Mauricio Zambrano wrote:
> Dear list,
>
> I need to change a value within a particular line of a plain text file
> with characters and numbers, and I haven't found any way of doing this
> by using R.
>
> What I have a is a file that doesn't have tabular data (so, I thin
Dear list,
I need to change a value within a particular line of a plain text file
with characters and numbers, and I haven't found any way of doing this
by using R.
What I have a is a file that doesn't have tabular data (so, I think
that 'read.table' or 'read.delim' are not the right tools for th
6 matches
Mail list logo