Displaying 2 results from an estimated 2 matches for "tbl1b".
Did you mean:
tbl1
2018 Feb 05
0
find unique and summerize
...e a csv file and then open it with Excel.
>>
>> tbl2 <- addmargins(tbl1)
>> write.csv(tbl2, "tt1.csv")
>>
>> As for the second question, the following does it.
>>
>> inx <- apply(tbl1, 1, function(x) all(x != 0))
>> tbl1b <- addmargins(tbl1[inx, ])
>> tbl1b
>>
>>
>> Hope this helps,
>>
>> Rui Barradas
>>
>> On 2/3/2018 4:42 PM, Val wrote:
>>
>> Thank you so much Rui.
>>
>> 1. How do I export this table to excel...
2018 Feb 03
2
find unique and summerize
Thank you so much Rui.
1. How do I export this table to excel file?
I used this
tbl1 <- table(Country, IDNum)
tbl2=addmargins(tbl1)
write.xlsx(tbl2,"tt1.xlsx"),sheetName="summary", row.names=FALSE)
The above did not give me that table.
2. I want select those unique Ids that do have records in all countries.
From the above data set, this ID