Hi i am trying to remove a variable name and dsiplay just the values alone. when doing so, i am getting a space above the first value.
Even when i tried to save it as a csv, that too had a space in the place of the variable names. How to avoid the space? Can anyone help?
I just wanted to display from the first value without any spaces in the place of the variable names.
Sample code:
unname(data.frame(cars$speed))
write.csv(unname(data.frame(cars$speed)), 'C:/Users/pdrajama/Downloads/Personal/R/cars.csv')
Console output:
unname(data.frame(cars$speed))
1 4
2 4
3 7
4 7
5 8
6 9
7 10
8 10