1
I’m using the following code:
library(data.table)
setwd("/home/andre/monografia/") ; getwd()
obj = read.csv(file = "Grup1C0.csv");
tes = obj[4,4]
View(tes)
The road that is in position [4,4]
of the object obj
is a string 45 characters, but when I check what was the value assigned to the object tes
I have as a result all the entries of column 4 in a single vector.
How do I have only the string of my interest in tes
?
André, try creating a reproducible example, as it is not possible to replicate your example. If
obj
for adata.frame
it will return the value of row 4 column 4. Ifobj
for adata.table
it will return the value "4". In either case the result would be all the values in column 4.– Carlos Cinelli