Displaying 1 result from an estimated 1 matches for "food_list".
Did you mean:
find_list
2007 Feb 09
0
cluster "non-diet", "diet" example.
...tato 1 1 2
chocolate 2 0 2
milk 1 0 0 0
fish 0 1 0 0
vegetable 0 2 0
But, I have problem to reform the original file into that way I want.
Basically, I have only tried:
> org<-read.table("food.csv",col.name=c("name","food_list"), sep="|") #
import file to R
> x<-data.frame(Francis=rep(0,times=5)) # set up the frame of file
> rownames(x)<-org$food_list
here I failed, and don't know how to continue.
Please help me out with the proper R command.
# Step 2: I want to draw 3 overlapped barplo...