I have a data frame of 9 columns and I want to delete a specific number from all numbers in column 6 but I don't want to ruin the structure of data frame. I want to deduct 383 from the column 6. How to do it?
my.data.frame11<-read.table("dir1/Water_Level/V3015010.txt",skip=4,header=T,sep=";")
head(my.data.frame11)
  X920 X1 V3015010 X19691027 X10.37 X480.000 X9 X2  X
1  920  1 V3015010  19691027  16:06      490  9  2 NA
2  920  1 V3015010  19691101  00:50      490  9  2 NA
3  920  1 V3015010  19691103  08:09      480  9  2 NA
4  920  1 V3015010  19691103  10:59      480  9  2 NA
5  920  1 V3015010  19691105  12:18      480  9  2 NA
6  920  1 V3015010  19691105  13:37      490  9  2 NA
If I use the following code
my.data.frame11[, 6] <- my.data.frame11[, 6] - 383
I got error:
Error in my.data.frame11[, 6] : incorrect number of dimensions
After I changed the header into false by the following command:
my.data.frame11[, 6] <- my.data.frame11[, 6] - 383
gave me the desired results. Thank you all for the help and having patience with me.
 
    