Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 204948

Combining Data Points in R [closed]

$
0
0

To start this off I just want you to know I have no idea anything about coding anything. Somehow this project landed in my lap and I am desperate for help so PLEASE.

I have a data set and I need to combine datapoints... so basically I have a variable labeled "WHY" and the reasons are coded as numbers (I.e. 100, 200, 210, 220, 300, 310 etc). I want to combine reasons that are similar so I want to combine the data points that are all 200's, 210's, 220's into one category and then all the 100's are another category and all the 300's are a third category. This way instead of having 40 different reasons coded I have like 5 different broader categories coded. To clarify, if I had categories for Yorkies, Golden Retrievers, German Shepard but I wanted to combine all of those categories into one and call it "dogs"... also these datapoints are all in the same column.

I have searched many different codes for combining but they all seem to just combine like columns or rows are datapoints that are the same. Since I want to combine data points that are different it is much harder to find.

If anyone has any insight at all I will be eternally grateful. Also if anyone really wants to help me out pm me and maybe we can set something up.

Thanks in advance!


Viewing all articles
Browse latest Browse all 204948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>