#### Repo https://github.com/pzhaonet/steemr 'steemr' is an open source R package for playing with Steem data in R environment. It is used to download, post process, analyze, and visualize Steem data on the basis of the powerful statistic power of R. ### New Features #### What features did I add? - I have submitted steemr to CRAN and now it is [available](https://CRAN.R-project.org/package=steemr). Users can install steemr directly from CRAN: ``` install.packages('steemr) ``` - Users can use `method = 'appbase_api'` to download Steem data from AppBase API: ``` posts <- post_id('dapeng', method = 'appbase_api') ``` - A new powerful function `hourrose()` was added to plot a diagram of an ID's active hours in a day based on the post or comment time. ``` hourrose(my_df = posts, col_time = 'created') ```  This 24-hour clock shows the active hours of an ID. Users can even choose whether to display another parameter, such as vote number on these posts. Here is a screenshot of plotting such a image in RStudio IDE.  More feature of this function can be found in the help documentation: ``` help(hourrose) ``` - Although SteemData is gone, I still added the query method from steemdata.com. I wish SteemData could come back some day. I love it. - The documentation has been improved. - Some minor literal chagnes. #### How did I implement them? I added the AppBase API option to the `id_info()` function and `post_id()` function with the support from ' kharoof/steemR' repo. I added the queries for SteemData with the R mongolite package and added the options that users can choose the server. I added a new function `hourrose()` originated from a windrose plotting method but tailored for Steem data.  All these changes can be found in 'R/steemr.R'. Links to relevant lines in the code on GitHub can be found mainly in my latest commits: - https://github.com/pzhaonet/steemr/commit/8062db25a5b21708d5f1297e639bc19c2ec79b2b - https://github.com/pzhaonet/steemr/commit/6740ddc9024609ee0dbbae7e14fd73b0e18b0402 #### GitHub Account https://github.com/pzhaonet
author | dapeng |
---|---|
permlink | new-features-on-steemr-supports-appbase-api-and-plots-active-hour-diagrams |
category | utopian-io |
json_metadata | {"tags":["utopian-io","development","r","promo-steem","cn-programming"],"image":["https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmRo9HESgtkrSZnvZN9bLq74SXSgT7k7wXuZurqucyFxkv/guess-2-5-hr.png","https://cdn.steemitimages.com/DQmfHm3cpHZuXPGE873Q41C55f8A6yEi711kPXPQcVfwWMv/steemr-hourrose.jpg","https://cdn.steemitimages.com/DQmfMFaoppHg1H1TYBqspTPbabUvwLBoqsVWFaD9K3qh9aC/2018-06-20-004.jpg"],"links":["https://github.com/pzhaonet/steemr","https://CRAN.R-project.org/package=steemr","https://github.com/pzhaonet/steemr/commit/8062db25a5b21708d5f1297e639bc19c2ec79b2b","https://github.com/pzhaonet/steemr/commit/6740ddc9024609ee0dbbae7e14fd73b0e18b0402","https://github.com/pzhaonet"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-06-20 10:44:24 |
last_update | 2018-06-20 11:12:03 |
depth | 0 |
children | 8 |
last_payout | 2018-06-27 10:44:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 55.737 HBD |
curator_payout_value | 16.626 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,502 |
author_reputation | 64,632,001,917,831 |
root_title | "[New Features on steemr] supports AppBase API and plots active hour diagrams!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,475,797 |
net_rshares | 34,864,973,249,941 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
abit | 0 | 317,042,824,071 | 100% | ||
adm | 0 | 7,262,767,409,287 | 40% | ||
deanliu | 0 | 378,251,265,727 | 30% | ||
joythewanderer | 0 | 50,958,802,303 | 18% | ||
jianghao | 0 | 231,676,028 | 10% | ||
luneknight | 0 | 314,692,996 | 100% | ||
dapeng | 0 | 151,143,259,890 | 100% | ||
ackza | 0 | 26,686,947,365 | 10% | ||
tytran | 0 | 9,872,322,070 | 9% | ||
shenchensucc | 0 | 2,273,011,166 | 50% | ||
susanli3769 | 0 | 92,921,448,088 | 100% | ||
sweetieprincess | 0 | 25,039,173,375 | 40% | ||
liangfengyouren | 0 | 1,342,674,396 | 50% | ||
idx | 0 | 19,885,139,884 | 100% | ||
pzhao | 0 | 4,157,658,653 | 100% | ||
jiangchen | 0 | 1,015,986,361 | 10% | ||
mangoanddaddy | 0 | 1,682,239,872 | 80% | ||
davidke20 | 0 | 1,680,510,714 | 10% | ||
rosatravels | 0 | 20,986,328,165 | 10% | ||
winniex | 0 | 49,519,437,808 | 100% | ||
utopian-io | 0 | 25,867,383,910,960 | 16.8% | ||
yuner | 0 | 2,643,296,200 | 100% | ||
windowglass | 0 | 42,135,661,582 | 100% | ||
cnbuddy | 0 | 221,337,333,922 | 29.61% | ||
chann | 0 | 5,186,327,388 | 20% | ||
lebin | 0 | 13,657,670,818 | 11% | ||
coindzs | 0 | 164,017,903 | 100% | ||
lextenebris | 0 | 31,810,923,974 | 100% | ||
amosbastian | 0 | 46,332,809,824 | 100% | ||
r351574nc3 | 0 | 1,078,288,682 | 3% | ||
songtiejun | 0 | 1,234,589,106 | 100% | ||
grzesiekb | 0 | 187,515,498,605 | 100% | ||
kujou | 0 | 2,341,912,158 | 100% | ||
wilhb81 | 0 | 1,505,905,171 | 75% | ||
mycat | 0 | 76,281,061 | 12% | ||
yjcps | 0 | 469,317,009 | 100% | ||
historylover | 0 | 504,067,937 | 100% | ||
midun | 0 | 6,074,590,445 | 100% | ||
polbot | 0 | 224,568,487 | 100% | ||
ethanlee | 0 | 11,746,982,735 | 100% | ||
properfraction | 0 | 578,225,470 | 100% | ||
salty-mcgriddles | 0 | 1,141,136,005 | 2% | ||
abss | 0 | 89,989,068 | 11% | ||
hmayak | 0 | 249,832,983 | 100% | ||
abcallen | 0 | 445,071,466 | 100% | ||
bambugrove | 0 | 149,720,021 | 30% | ||
sunai | 0 | 268,598,338 | 100% | ||
sprite2 | 0 | 256,363,967 | 100% | ||
developspanish | 0 | 597,550,437 | 100% |
Thank you for your contribution. - I will not suggest adding code that use steemdata because it just doesn't work, I don't think dead code should be in the code repro for any reasons. - While you start building the library, I would suggest you should also start adding unit tests, which gives the confidence while you make changes. - the code is not very much commented and I have seen the commented-out code as well. - You shouldn't set default parameters e.g. something like id='dapeng', if the id is not given, you should expect the function to throw exception - the database URI should be defined as a constant but should not appear in your code base more than once. - Your hourrose method, as you said you make some changes from the original copy, it will be better to provide the reference to the original code. And BTW, there are more than 400 lines of code for this function, which is un-maintainable. Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category. To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2333223). ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
author | justyy |
---|---|
permlink | re-dapeng-new-features-on-steemr-supports-appbase-api-and-plots-active-hour-diagrams-20180620t135957681z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2333223","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"} |
created | 2018-06-20 13:59:57 |
last_update | 2018-06-20 20:28:03 |
depth | 1 |
children | 4 |
last_payout | 2018-06-27 13:59:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 2.552 HBD |
curator_payout_value | 0.739 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,401 |
author_reputation | 280,616,224,641,976 |
root_title | "[New Features on steemr] supports AppBase API and plots active hour diagrams!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,497,607 |
net_rshares | 1,594,791,767,311 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dapeng | 0 | 58,777,934,401 | 40% | ||
happyukgo | 0 | 424,299,338 | 20% | ||
superbing | 0 | 2,830,184,667 | 20% | ||
dailyfortune | 0 | 67,769,977 | 20% | ||
dailystats | 0 | 5,025,530,898 | 20% | ||
utopian-io | 0 | 1,521,595,118,316 | 1% | ||
dailychina | 0 | 3,450,460,361 | 20% | ||
turtlegraphics | 0 | 2,010,724,009 | 20% | ||
developspanish | 0 | 609,745,344 | 100% |
These are very useful suggestions for a non-professional programmer like me. Many thanks. Regarding SteemData, I wish it could come back someday, as it is open source and anyone might take it over. I would leave the option there (perhaps commented out) for future use. It is just ten lines.
author | dapeng |
---|---|
permlink | re-justyy-re-dapeng-new-features-on-steemr-supports-appbase-api-and-plots-active-hour-diagrams-20180620t143031082z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-20 14:30:30 |
last_update | 2018-06-20 14:30:30 |
depth | 2 |
children | 2 |
last_payout | 2018-06-27 14:30:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.068 HBD |
curator_payout_value | 0.020 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 291 |
author_reputation | 64,632,001,917,831 |
root_title | "[New Features on steemr] supports AppBase API and plots active hour diagrams!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,501,738 |
net_rshares | 43,491,758,124 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ackza | 0 | 12,317,052,630 | 4% | ||
lextenebris | 0 | 31,174,705,494 | 100% |
Ask @surfyogi if he can bring back a WORKING version of steemdata or something like it. hey nice post! I have to admit I can'[t understand it but when i saw this post in a list of non technical posts on #promo-steem trending i realized i must upvote AND resteem this post to help promotoe technical steem posts. They help stimulate interest in programming which we all need to learn more about, or at least data i mean what is an R environment? What is CRAN? What are those crazy maps u are showing that look like radar? Whats going on ?
author | ackza |
---|---|
permlink | re-dapeng-re-justyy-re-dapeng-new-features-on-steemr-supports-appbase-api-and-plots-active-hour-diagrams-20180624t035223042z |
category | utopian-io |
json_metadata | {"tags":["utopian-io","promo-steem"],"users":["surfyogi"],"app":"steemit/0.1"} |
created | 2018-06-24 03:52:21 |
last_update | 2018-06-24 03:53:03 |
depth | 3 |
children | 1 |
last_payout | 2018-07-01 03:52:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.071 HBD |
curator_payout_value | 0.023 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 541 |
author_reputation | 287,729,820,746,520 |
root_title | "[New Features on steemr] supports AppBase API and plots active hour diagrams!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,993,446 |
net_rshares | 48,283,036,627 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dapeng | 0 | 48,283,036,627 | 30% |
Hey @justyy Here's a tip for your valuable feedback! @Utopian-io loves and incentivises informative comments. **Contributing on Utopian** Learn how to contribute on <a href="https://join.utopian.io">our website</a>. **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for Utopian Witness!</a>
author | utopian-io |
---|---|
permlink | 20180620t153927457z |
category | utopian-io |
json_metadata | {"tags":["utopian.tip"],"app":"utopian-io"} |
created | 2018-06-20 15:39:27 |
last_update | 2018-06-20 15:39:27 |
depth | 2 |
children | 0 |
last_payout | 2018-06-27 15:39:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 406 |
author_reputation | 152,955,367,999,756 |
root_title | "[New Features on steemr] supports AppBase API and plots active hour diagrams!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,510,719 |
net_rshares | 0 |
good information
author | maulidar |
---|---|
permlink | re-dapeng-new-features-on-steemr-supports-appbase-api-and-plots-active-hour-diagrams-20180620t105815399z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-20 10:58:24 |
last_update | 2018-06-20 10:58:24 |
depth | 1 |
children | 1 |
last_payout | 2018-06-27 10:58:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 16 |
author_reputation | 60,597,598,692,226 |
root_title | "[New Features on steemr] supports AppBase API and plots active hour diagrams!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,477,096 |
net_rshares | 128,388,768 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
lec | 0 | 128,388,768 | 1% |
PLEASE try to leave comments that are a little bit longer to simply prove you read the post and to prove that you are not a bot! That way we dont confuse you with the many spam bots that leave short replies, thanks!
author | ackza |
---|---|
permlink | re-maulidar-re-dapeng-new-features-on-steemr-supports-appbase-api-and-plots-active-hour-diagrams-20180624t035359400z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-24 03:53:57 |
last_update | 2018-06-24 03:54:30 |
depth | 2 |
children | 0 |
last_payout | 2018-07-01 03:53:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 215 |
author_reputation | 287,729,820,746,520 |
root_title | "[New Features on steemr] supports AppBase API and plots active hour diagrams!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,993,571 |
net_rshares | 0 |
Hey @dapeng **Thanks for contributing on Utopian**. Weβre already looking forward to your next contribution! **Contributing on Utopian** Learn how to contribute on <a href='https://join.utopian.io'>our website</a> or by watching <a href='https://www.youtube.com/watch?v=8S1AtrzYY1Q'>this tutorial</a> on Youtube. **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
author | utopian-io |
---|---|
permlink | re-new-features-on-steemr-supports-appbase-api-and-plots-active-hour-diagrams-20180621t105508z |
category | utopian-io |
json_metadata | "{"app": "beem/0.19.29"}" |
created | 2018-06-21 10:55:09 |
last_update | 2018-06-21 10:55:09 |
depth | 1 |
children | 0 |
last_payout | 2018-06-28 10:55:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 503 |
author_reputation | 152,955,367,999,756 |
root_title | "[New Features on steemr] supports AppBase API and plots active hour diagrams!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,623,525 |
net_rshares | 0 |