[R] diff doesnot work

george brida george.brida at gmail.com
Mon Feb 6 23:21:49 CET 2017


Dear R users,

I have a txt file entitled coc composed by one column of numeric values
without header and having 50 rows. This file is under the following path:

C:\\Users\\intel\\Documents\\TR

I have written the following lines:

xcx=read.table("C:\\Users\\intel\\Documents\\TR\\coc.txt",header=F)
xc=log(xcx)

I have obtained the series xc but when I wrote
x=diff(xc)

I obtained the following message:

data frame with 0 columns and 50 rows

I don't know where is the problem. Can you help me please

	[[alternative HTML version deleted]]



More information about the R-help mailing list