I am trying to create an empty data frame in R using the following code:
data <- data.frame(ticks = numeric(0), identity = numeric(0), p-h = numeric(0), p-y = numeric(0), v-x = numeric(0), v-y = numeric(0), size = numeric(0), homo = numeric(0))
ANSWER TO ABOVE: change - to _ simply.
THOUGH I GET THE FOLLOWING ERROR WHEN ADDING DATA:
Error in value[[jvseq[[jjj]]]] : subscript out of bounds
In addition: Warning message:
In matrix(value, n, p) : data length exceeds size of matrix
Please Help. Thanks in advance.