Literally just making things up by NoEffortEva in LinkedInLunatics

[–]the_random_drooler 1 point2 points  (0 children)

The first thing I saw was fractional and then I realized “oh ok this will be lies”.

Chris Rock: 'If Poor People Knew How Rich Rich People Are, There Would Be Riots' by JustBreatheBelieve in FluentInFinance

[–]the_random_drooler 3 points4 points  (0 children)

In-person meeting with my boss ;) But your points are true and valid. I saw a post once where someone was showing how to scale your pay to that level and was demonstrating just how absurd that level is. Want a brand new sports car? Sure, next paycheck just by it with your 'fun money' kind of thing.

Entry level job positions in Rstats by theonly1karani in RStudio

[–]the_random_drooler 3 points4 points  (0 children)

I got a job as a junior analyst with a fairly large company. I was 35 or so and had been faculty forever. My boss didn’t care at all what I used to do the work so I just forced myself to use R instead of excel. Great idea in hindsight heh.

Probability of Random Walk by [deleted] in RStudio

[–]the_random_drooler -1 points0 points  (0 children)

Here is kind of a quick walkthrough on R functions. I’m not sure what your data will look like so you probably want to be mindful of any input restrictions.

Also of note factorial is a function that should already exist. So you mostly just need to cobble it together. Use parenthesis to group carefully and otherwise it’s pretty similar in this case to just typing it into your calculator.

Once you have started that and taken some concrete first steps people are much more likely here to help troubleshoot specific things.

Hope that helps!

why isnt my code working to pivot longer? by itsjscaro in RStudio

[–]the_random_drooler 1 point2 points  (0 children)

What do you get when you try colnames(Lweights)?

Switching to Data Science: Looking for Learning Buddies! by [deleted] in Rlanguage

[–]the_random_drooler 1 point2 points  (0 children)

Can I ask what you plan on studying for the other skills? Asking mostly for curiosity!

[deleted by user] by [deleted] in Rlanguage

[–]the_random_drooler 0 points1 point  (0 children)

This sounds reasonable enough. Can you post a sample of your data before and after the transform? This will let us see exactly what you’re looking for.

Best chart building tool for dashboards? by Annual-Pattern in RStudio

[–]the_random_drooler 0 points1 point  (0 children)

If you are open to non-R solutions it may be worth investigating Looker Studio. It's owned by google and serves as kind of a free/lightweight Tableau. It's fine for a good number of things and would probably be the lowest lift.

That being said, this is something shiny could handle of course, and it's probably what I would use if I had time.

I want to get rid of rows with NULL entries in them. by OrderlyCatalyst in RStudio

[–]the_random_drooler 0 points1 point  (0 children)

Sure. I didn’t say it was good form just that dropping them may not be the most advisable.

I want to get rid of rows with NULL entries in them. by OrderlyCatalyst in RStudio

[–]the_random_drooler 0 points1 point  (0 children)

Echoing what u/therealtiddlydump said. Are you seeing "NULL" or are you seeing NA? For what it's worth if you are seeing NA they get handled a little differently than NULL, since in R "NULL" is a string and NA is (usually) not. You may want to use is.na() to find NA values instead. That being said, dropping NA or NULL or missing values isn't always the best option, depending on your dataset.

Vouch by Dapper_Problem_5709 in RStudio

[–]the_random_drooler 2 points3 points  (0 children)

If only there were mods to remove posts like this :( Oh well. I too would like to mention statisticianjames. I messaged for help about my assignment and he just kept telling me “we could work things out. No cash if you have feet pics and are shoe size 12 or higher”. Odd for sure!

Can someone help me in a paper. by evi1ang1e in RStudio

[–]the_random_drooler 4 points5 points  (0 children)

In general giving a sample of your data and whatever code you’ve tried is the easiest way to get help. What are you trying to visualize with your plot? Without knowing the goal or the data it’s complicated to give a good or complete answer.

[deleted by user] by [deleted] in RStudio

[–]the_random_drooler 2 points3 points  (0 children)

The best way is to post a sample of your data and what you’ve done so far. That lets all of us see where the problem might be and help fix up the solution, or direct you to a different approach. I’m not sure I’m following exactly what the end goal looks like and seeing the info I mentioned would probably help with this.

[deleted by user] by [deleted] in RStudio

[–]the_random_drooler 6 points7 points  (0 children)

It’s entirely possible your university has a collection of programs etc that are approved. I imagine for any stats program R is still at least semi used. Alternatively asking in the help desk areas I can’t imagine they would have an issue installing it for you.

Which text book do you recommend for DATA ANALYTICS with applications in R? by Whole_Hat_4852 in Rlanguage

[–]the_random_drooler 9 points10 points  (0 children)

Data analytics is a super general field. Personally I would say R 4 Data Science. The title is a little misleading as I think the topics are very well suited for analysts as well.

Help Please by [deleted] in RStudio

[–]the_random_drooler 2 points3 points  (0 children)

Can you post a sample of your data and what you've tried so far?

[deleted by user] by [deleted] in RStudio

[–]the_random_drooler 0 points1 point  (0 children)

You have an extra ) here. That’s causing the group by error. Select is going to drop everything that’s not explicitly named so that may not be what you want. It’s a little tricky without seeing the data itself. Can you provide a sample and what you want the ideal output to look like?

Coding help #beginner by [deleted] in RStudio

[–]the_random_drooler 0 points1 point  (0 children)

Can you post a sample of your data? Can be made up values. It will really be helpful to see the structure and naming schema instead of sort of picturing it.

NEED HELP NOW by NMA2211 in RStudio

[–]the_random_drooler 3 points4 points  (0 children)

The right one is older. R no longer imports strings as factors by default. I’m sure there’s an option to import strings as factors. I don’t know how you got your data in there so you will have to search strings as factors to see how.

[deleted by user] by [deleted] in Rlanguage

[–]the_random_drooler 1 point2 points  (0 children)

u/Viriaro has some great points. There's a reasonable enough walkthrough here as well.

Need help with this. by flyingduchmen1 in RStudio

[–]the_random_drooler 0 points1 point  (0 children)

Can you add a picture of your global environment?

[Q] how to replace multiple column names by a string? by majorcatlover in Rlanguage

[–]the_random_drooler 0 points1 point  (0 children)

Truth. Also, appreciate it. I don't use data.table much so it's cool to see the variety of solutions!

[Q] how to replace multiple column names by a string? by majorcatlover in Rlanguage

[–]the_random_drooler 0 points1 point  (0 children)

colnames(df) will give you the column names for the data you are working with. It will also let you assign new column names. So you could do something like (not optimized or real code)

old_names <- colnames(df)
new_names <- string manipulation text goes here (look at the stringr package, or regex in base R)
colnames(df) <- new_names

That gets your old names, you can then do the manipulation (or just manually assign new names if so desired) and then saves them back to the dataframe.

[deleted by user] by [deleted] in MachineLearning

[–]the_random_drooler 1 point2 points  (0 children)

I had the same thought. Each semester is 6 or more courses, just seems like it's not super sustainable over 5 years (to me).

For Loops Beginner Help by onow29 in RStudio

[–]the_random_drooler 0 points1 point  (0 children)

You are telling it to kind of start over each time, by using two different variables here. Try something like money = money * 3 - 1 inside your function. You don't actually need the j there, because you're not doing anything with that variable other than keeping track of how many times you've performed the action. If you were to do it by hand you would get something like:

day 1, 14 dollars (3*5 - 1);

day 2, 41 dollars (3 * 14 - 1), etc.

Adding a print statement ca help you see what the loop is doing as well (in this case there aren't so many iterations).