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
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 <rshepard at 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 at 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]]
Maybe you could put the CSV in a gist or something? -- H On Sun, 6 Jan 2019 at 10:58, Rachel Thompson <rachel.thompson at student.uva.nl> wrote:> 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 <rshepard at 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 at 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 at 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. >-- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest <http://bit.ly/hd1AppointmentRequest>*. Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest <http://bit.ly/hd1AppointmentRequest>*. <https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1>Sent from my mobile device Envoye de mon portable [[alternative HTML version deleted]]
On Sun, 6 Jan 2019, Rachel Thompson wrote:> 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.Rachel, Those more experienced with R than am I will probably offer their thoughts, too. It looks to me that you want counts of various parameters for each participant, and perhaps groups of participants. When I read this I see SQL SELECT count() statements on database tables, not descriptive or explanatory statistical results. Not knowing your computer's OS or whether there is a relational database magagement system installed I can't offer specific suggestions. A database would provide counts of each *Probe as well as combinations. If you want to go that route contact me off the mail list and I'll suggest mail lists for help if you use Microsoft products as I know only PostgreSQL and SQLite. Regards, Rich
Questions like this 1. I want to have a summary of how many times a specific subject got called (CallLogProbe) suggest that you should look at the table function. See ?table and run the examples. They show how to get one-way frequency tables and two-way contingency tables. If you have followup questions for the list, you can use the examples in ?table as your starting point. That way you don't need to worry about sharing your own data. On Sun, Jan 6, 2019 at 1:59 PM Rachel Thompson < rachel.thompson at student.uva.nl> wrote:> 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 <rshepard at 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 at 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 at 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]]
Hi! Not having a data chunk prevents me from testing abit, but maybe you should take a look on: ?table ?xtabs to start with. But as already suggested by other users, a small data set would be of great help :) HTH, Kimmo su, 2019-01-06 kello 13:49 -0500, Rachel Thompson kirjoitti:> 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 < > rshepard at 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 at 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 at 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.
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-bounces at r-project.org> On Behalf Of Rachel Thompson > Sent: Sunday, January 6, 2019 7:49 PM > To: Rich Shepard <rshepard at appl-ecosys.com> > Cc: r-help mailing list <r-help at 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 <rshepard at 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 at 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 at 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/