
Here is my problem
 
a <- data$name[1]  
b <- data$name[2]
c <- data$name[3]
 
a
"apple"
b
"pear"
c
"banana"
 
result  <- c( a = 2 , b=3, c=5)
 
output:
a  b c
2  3 5
 
But I want my output 
apple  pear  banana
2         3         5


      
	[[alternative HTML version deleted]]

