[R] Error while submission

2015-08-16 Thread Nikita Dinger
I have completed part 2 of the assignment and am getting the desired output. But on submitting the code, it shows as the answer is incorrect along with this message: function (..., list = character(), package = NULL, lib.loc = NULL, verbose = getOption("verbose"), envir = .GlobalEnv) Result:

[R] Error

2015-08-16 Thread Nikita Dinger
Dear Sir, I am getting this error Error in rep(xi, length.out = nvar) : attempt to replicate an object of type 'closure' I have read through the websites but cant really comprehend what this means? Need your help. This is my code complete <- function(directory, idvec = 1:332) { df <-

[R] Error -> cannot open file 'specdata/001.csv': No such file or directory; Windows 8, R Version 3.2.1

2015-08-15 Thread Nikita Dinger
o such as *path <- c(paste("./",directory, "/",formatC(id[i], width=3, flag=0),".csv",sep=""))* However, all the commands show some error. What shall I do? I am using the 3.2.1 version of R on a Windows 8 laptop. Regards, Nikita Dinger [[alter

[R] Error in rep in matrix - Windows 8- R 3.2.1

2015-08-08 Thread Nikita Dinger
y <- matrix(rep(10,4),2,2) > y [,1] [,2] [1,] 10 10 [2,] 10 10 I expected an output of > y [,1] [,2] [1,] 10 4 [2,] 10 4 Thanks and Regards. [[alternative HTML version deleted]] __ R-help@r-project.org mailing li