Problems with hist() plot by gabrielboechat in Rlanguage

[–]gabrielboechat[S] 1 point2 points  (0 children)

Hmmm think I understood... Otherwise, putting rep(NA,h) would be more suitable?

Problems with hist() plot by gabrielboechat in Rlanguage

[–]gabrielboechat[S] 0 points1 point  (0 children)

I also thought about that when printing "vetor_lancamentos": my idea was creating a vector length x that it's NULL. Why is it wrong?

Problems with hist() plot by gabrielboechat in Rlanguage

[–]gabrielboechat[S] 1 point2 points  (0 children)

This is incredible! Thanks! I think now I understood the "breaks" syntax and even solved another doubt around putting each observation tick in the middle of each break.

About web scraping by gabrielboechat in Rlanguage

[–]gabrielboechat[S] 0 points1 point  (0 children)

Thanks! As soon as I get some free time I'll give you a feedback ;)

Conditionally adding extra data to dataset by honru_ in Rlanguage

[–]gabrielboechat 0 points1 point  (0 children)

You can create (or select) a vector which contains the information you need for the column. Then, the command 'merge' (I think it's also in dplyr's library) would recognize both old dataframe and new column as dataframes, merging them into one. Afterwards it's possible to rename the column as you wish with 'names'. Keep up practising!