[R] Basic data question

Santosh Srinivas santosh.srinivas at gmail.com
Thu Oct 14 05:52:37 CEST 2010


I have  a question about the output given below after running few lines of
code. Surely a 101 query!

MF_Data <- read.csv("MF_Data_F.txt", header = F, sep="|")
temp <- head(MF_Data) #Get the sample Data
temp1 <- subset(temp, select= c(V1,V4,V6)) #where V1, V4, V6 are the col
names .. to Get the relevant data
names(temp1) <- c('Ticker', 'Price','Date') #Adjusted column names

Now as expected, I get:
> temp1
  Ticker   Price        Date
1 106270 10.3287 01-Apr-2008
2 106269 10.3287 01-Apr-2008
3 102767 12.6832 01-Apr-2008
4 102766 10.5396 01-Apr-2008
5 102855  9.7833 01-Apr-2008
6 102856 12.1485 01-Apr-2008

BUT, for the below:
temp1$Price
[1] 10.3287 10.3287 12.6832 10.5396 9.7833  12.1485
439500 Levels: -101.2358 -102.622 -2171.1276 -6796.4926 -969.5193 ...
Repurchase Price

What is this line? "439500 Levels: -101.2358 -102.622 -2171.1276 -6796.4926
-969.5193 ... Repurchase Price"??

Many thanks for the help.

Santosh



More information about the R-help mailing list