Re: [R] R basic

2017-11-09 Thread jean-philippe
Hi, Since you didn't provide us any detail of what you tried to do so far, I can point you out to the dplyr library. It will make your life easier while dealing with dataframes (well at least it makes mine easier). Cheers Jean-Philippe On 09/11/2017 16:05, Hye Joon Yoon wrote: Can anyone

Re: [R] R basic

2017-11-09 Thread Boris Steipe
Hi - This list has a "no homework" policy, but we can certainly help once you show what effort you have put into this yourself. Read the posting guide, especially regarding the instructions re. reproducible examples, and follow them exactly. Cheers, B. > On Nov 9, 2017, at 10:05 AM, Hye Joo

[R] R basic

2017-11-09 Thread Hye Joon Yoon
Can anyone help with scripting the commands below? 1. Add/create a new column to df and name it as ShortPause . 2. Convert ShortPause as a factor variable. 3. ShortPause will have two levels (short and long). Assign short if pause is smaller than 0.1, and assign long otherwise. 4. How many ‘syntax