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:
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 <-
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
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
4 matches
Mail list logo