Not able to create list
I am getting the following error on running the list command .
myList <- list(captaincy,matrixA,myVector)
Error: object 'matrixA' not found
> names(myList) <- c("dataframe","matrix","vector")
Error in names(myList) <- c("dataframe", "matrix", "vector") :
object 'myList' not found
> print(myList)
Error in print(myList) : object 'myList' not found
R Lists-and-its-Operations 04-05 min 50-60 sec
Answers:
There is no object in your R environment/workspace with the name 'matrixA'. Make sure that you define an R object first before using it. As there is no object with the name 'matrixA', you are also not able to create the object 'myList' as it requires the object 'matrixA'.
still facing following error-
myList <- List(captaincy,matrixA,myVector)
Error in List(captaincy, matrixA, myVector) :
could not find function "List"
> myList <- list(captaincy,matrixA,myVector)
Error: object 'matrixA' not found
> ?list
> mylist <- list(captaincy,matrixA,myVector)
Error: object 'matrixA' not found
> names(mylist) <- c("dataframe","matrix","vector")
Error in names(mylist) <- c("dataframe", "matrix", "vector") :
object 'mylist' not found
> print(mylist)
Error in print(mylist) : object 'mylist' not found
> mylist$dataframe
Error: object 'mylist' not found