blog_posts_prep's People
Forkers
gustavobruges rupalheri akatie jelenamitrovic mentalflush leedstark kevinbsc felixgrunberger charlie13 konstnor nnsc-data nanaakwasiabayieboateng durhach crispzips nemochina2008 itskarthicklakshmanan jeddobson shan-bu-2017 xulijunji krzyslom jahuertas geographiliac kashenfelter libardo1 datavizi the-r4u forked-oilgains manuelvarzen heck1 oliverpenahabib mahlatsebaholo9 snowdj yipu-z bunmiaj remartinsc simgeandi jadewee ddshep by24005 adhokshaja14 jonkaiser hvukman primus-ai m-jmc ejrionm mackouille24154 zahrafarhadi19 restevesd serwaabaah ankit-da favouroyan luffyluffy fprambs edinkasia dbreathlessblog_posts_prep's Issues
Problems replicating your code
Hi there, first of all thanks for posting this here. - Unfortunately I get an error code after your 8th paragraph. So, running
top_fol <- followers_df %>%
mutate(date = as.Date(created, format = "%Y-%m-%d"),
today = as.Date("2017-06-07", format = "%Y-%m-%d"),
days = as.numeric(today - date),
statusesCount_pDay = statusesCount / days) %>%
select(screenName, followersCount, statusesCount_pDay) %>%
arrange(desc(followersCount)) %>%
.[1:10, ]
it tells me: "Error in select(., screenName, followersCount, statusesCount_pDay) :
unused arguments (screenName, followersCount, statusesCount_pDay)" - Any Idea what might be the issue her?
Thx!
Error when running code on mutate
Firstly - a huge thanks for sharing this code. Really interesting stuff! I was trying to run your example and am getting an error at the following code block:
for (i in 1:length(friends)) {
friends2 <- friends[[i]]$getFriends() # my friends' friends
friends2_df <- twListToDF(friends2) %>%
rownames_to_column() %>%
mutate(friend = as.character(friends[[i]]$id))
if (i == 1) {
friends2_df_final <- friends2_df
} else {
friends2_df_final <- rbind(friends2_df_final, friends2_df)
}
print(i)
}
Error in mutate_impl(.data, dots) :
‘881581014505717760’ is not a valid field or method name for reference class “user”
My current session info is:
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] devtools_1.12.0 httr_1.2.1 tidytext_0.1.3
[4] dplyr_0.5.0 purrr_0.2.2 readr_1.1.0
[7] tidyr_0.6.1 tibble_1.3.0 ggplot2_2.2.1
[10] tidyverse_1.1.1 twitteR_1.1.9
loaded via a namespace (and not attached):
[1] Rcpp_0.12.11 cellranger_1.1.0 compiler_3.4.0
[4] plyr_1.8.4 tokenizers_0.1.4 forcats_0.2.0
[7] tools_3.4.0 digest_0.6.12 bit_1.1-12
[10] memoise_1.1.0 jsonlite_1.5 lubridate_1.6.0
[13] nlme_3.1-131 gtable_0.2.0 lattice_0.20-35
[16] Matrix_1.2-9 psych_1.7.5 DBI_0.7
[19] curl_2.6 parallel_3.4.0 haven_1.0.0
[22] withr_1.0.2 janeaustenr_0.1.5 xml2_1.1.1
[25] stringr_1.2.0 hms_0.3 bit64_0.9-7
[28] grid_3.4.0 R6_2.2.2 readxl_1.0.0
[31] foreign_0.8-67 reshape2_1.4.2 modelr_0.1.0
[34] magrittr_1.5 SnowballC_0.5.1 scales_0.4.1
[37] rvest_0.3.2 assertthat_0.2.0 mnormt_1.5-5
[40] colorspace_1.3-2 stringi_1.1.5 openssl_0.9.6
[43] lazyeval_0.2.0 munsell_0.4.3 broom_0.4.2
[46] rjson_0.2.15
Are you getting the same error when you run this code? Do you have any suggestions why this might not work?
Thanks!
read_html(url) error
Error in open.connection(x, "rb") : HTTP error 404.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.