And depending on your further intentions with data, functions ave or aggregate could also be worth to check.
Cheers Petr > > Hi Rachel. > > You already have got several suggestions, but results depend on structure of > your data. The best way from your side would be just copy a part of your data > directly to email and preferable way is to use "dput". > > Assuming your data already transfered to R are called "mydata". > > You can just copy otput of > > dput(mydata[1:30,]) > > to your next mail. > > Cheers > Petr > > > > -----Original Message----- > > From: R-help <r-help-boun...@r-project.org> On Behalf Of Rachel > > Thompson > > Sent: Sunday, January 6, 2019 7:49 PM > > To: Rich Shepard <rshep...@appl-ecosys.com> > > Cc: r-help mailing list <r-help@r-project.org> > > Subject: Re: [R] Mailinglist > > > > Hi Rich, > > > > I really feel lost at this point. > > I need a code that helps me count the phone activity > > level(high/low/none), the screen activity (on/off) and the amount calls and > SMS of each subject. > > > > 1. I want to have a summary of how many times a specific subject got > > called > > (CallLogProbe) > > 2. I want to have a summary of how many times a specific subject got a > > text message (SMS probe) 3. I want to have a summary of how many times > > a specific subject > > - Turned their screen on - True (ScreenProbe) > > - Or did not turn their screen on - False (ScreenProbe) 4. I want to > > have a summary of the activity level of a specific subject > > - Activity level - none (ActivityProbe) > > - Activity level- low (ActivityProbe) > > - Activity level - High (ActivityProbe) > > > > I want to do this for all the 36 subjects(Participants). > > In the end, I have to define the percentages and cutoff points of what > > is considered low-medium-high, based on what the results of all the > > subjects are. So I am able to see if a specific subject has low social > > interaction etc. > > > > I have tried a lot, with the help of youtube etc. But I feel as if I > > am trying a lot of things but without clearly knowing if it is the right > > step. > > I have a csv file, but I need to look into what Jeff said about the guides. > > So I am able to share it. > > > > Best. > > > > > > On Sun, Jan 6, 2019 at 11:51 AM Rich Shepard > > <rshep...@appl-ecosys.com> > > wrote: > > > > > On Sun, 6 Jan 2019, Rachel Thompson wrote: > > > > > > > I am an intern from Amsterdam and I have to do an analysis in R. I > > > > spoke to my professor in Amsterdam and my supervisor's here in > > > > Boston. But they are to busy to help. I informed them from the > > > > start that I am not > > > familiar > > > > with R(Rstudio) and they told me that I would receive guidance. So > > > > since they can not help me, I decided to share my problem online. > > > > (It is a CVS file imported into R) > > > > > > Rachel, > > > > > > I find it interesting that you're put in such a difficult > > > position. I've not followed this thread from the start so my > > > comments might be redundant or inappropriate. > > > > > > If you can, describe the problem. That is, what are you being > > > asked to find and what are the available data? This information > > > helps us to guide you to learning the mechanics for accomplishing > > > your task with R. > > > > > > Regards, > > > > > > Rich > > > > > > ______________________________________________ > > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > > https://stat.ethz.ch/mailman/listinfo/r-help > > > PLEASE do read the posting guide > > > http://www.R-project.org/posting-guide.html > > > and provide commented, minimal, self-contained, reproducible code. > > > > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > Osobní údaje: Informace o zpracování a ochraně osobních údajů obchodních > partnerů PRECHEZA a.s. jsou zveřejněny na: https://www.precheza.cz/zasady- > ochrany-osobnich-udaju/ | Information about processing and protection of > business partner’s personal data are available on website: > https://www.precheza.cz/en/personal-data-protection-principles/ > Důvěrnost: Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné > a podléhají tomuto právně závaznému prohláąení o vyloučení odpovědnosti: > https://www.precheza.cz/01-dovetek/ | This email and any documents > attached to it may be confidential and are subject to the legally binding > disclaimer: https://www.precheza.cz/en/01-disclaimer/ > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Osobní údaje: Informace o zpracování a ochraně osobních údajů obchodních partnerů PRECHEZA a.s. jsou zveřejněny na: https://www.precheza.cz/zasady-ochrany-osobnich-udaju/ | Information about processing and protection of business partner’s personal data are available on website: https://www.precheza.cz/en/personal-data-protection-principles/ Důvěrnost: Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a podléhají tomuto právně závaznému prohláąení o vyloučení odpovědnosti: https://www.precheza.cz/01-dovetek/ | This email and any documents attached to it may be confidential and are subject to the legally binding disclaimer: https://www.precheza.cz/en/01-disclaimer/ ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.