I need to create a single data set from an excel file that looks likes the following picture 1. When I export the file to mimic it in excel, the format does not work correctly. This is what the file looks like when it is exported as an excel 2. However, when I mimic the exported file with my own data and upload it to r, it doesn't import correct and mirror that of image 1 as it should. This is what it looks like when I mirror the format and import my data and import it to r (it should look like image 1)3.
> puechdesIII
$available
<180 180-250 >250
Calou 103 60 50
Celi 68 23 46
Kinou 114 52 94
Lucette 65 45 269
Schnock 75 35 8
Suzanne 115 76 72
$used
<180 180-250 >250
Calou 40 8 5
Celi 13 2 8
Kinou 21 4 8
Lucette 15 3 33
Schnock 42 5 0
Suzanne 34 12 5
Code used with the given dataset:
puechdesIII
data(puechdesIII)
used <- puechdesIII$used
available <- puechdesIII$available
I'm assuming puechdessIII is a dataframe class object but it doesn't look like it. If it is try this:
next time please provide a usable sample of your data to help us better understand and help.
After your comment, try this: