Re: [R] Dput Help in R

2015-12-31 Thread David Winsemius
010L, 2010L, > > 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, > > 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, > > 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, > > 2011L)), .Names = c("DOC_TYPE", "DOC_NO",

Re: [R] Dput Help in R

2015-12-31 Thread Mark Sharp
Shivi, It looks like you have copied and pasted with errors. When you use dput() on a dataframe, it will output a list (see example that follows). I think you have cut off the beginning of the output and have manually added the assignment “ab<-“. Also it is clear that the read.csv is interpreti

Re: [R] Dput Help in R

2015-12-31 Thread SHIVI BHATIA
Hi Duncan, Please find the dput from the data. ab<-read.csv("collection_last.csv",header=TRUE) y<-ab[1:10,] ab<- "2,458", "2,461", "2,462", "2,463", "2,464", "2,465", "2,468", "2,469", "2,470", "2,473", "2,474", "2,475", "2,476", "2,477", "2,478", "2,479", "2,480", "2,483", "2,484,267", "2,485",

Re: [R] Dput Help in R

2015-12-30 Thread David Winsemius
> On Dec 30, 2015, at 2:56 AM, SHIVI BHATIA wrote: > > Dear Team, > > > > I am facing an error while performing a manipulation using a dplyr package. > In the code below, I am using mutate to build a new calculated column: > > > > kp<-read.csv("collection_last.csv",header=TRUE) Given the

Re: [R] Dput Help in R

2015-12-30 Thread Duncan Murdoch
On 30/12/2015 5:56 AM, SHIVI BHATIA wrote: Dear Team, I am facing an error while performing a manipulation using a dplyr package. In the code below, I am using mutate to build a new calculated column: kp<-read.csv("collection_last.csv",header=TRUE) mutate(kp,dif=DOC_AMOUNT-RECEIPT_AMT+TDS_

[R] Dput Help in R

2015-12-30 Thread SHIVI BHATIA
Dear Team, I am facing an error while performing a manipulation using a dplyr package. In the code below, I am using mutate to build a new calculated column: kp<-read.csv("collection_last.csv",header=TRUE) mutate(kp,dif=DOC_AMOUNT-RECEIPT_AMT+TDS_AMT+REBATE) However it gives an error: