search for: trialdata

Displaying 6 results from an estimated 6 matches for "trialdata".

2018 Feb 22
0
alternative for multiple if_else statements
Hi Kevin, I ran the code on the full data set and was able to reproduce the problem that you are facing. My guess is that you have an error in your intuition and/or logic, and that this relates to the use of the subscript [1]. Specifically, on the full dataset, the condition trialData$date[trialData$survey_start == "Y" & trialData$year == 2013 & trialData$site == "site_1"] yields 412 matches, of which there are 9 unique ones, specifically April 2,3,4,5,8,10,11,16,17 In the full data set the first element that appears, i.e. subscript[1], is "20...
2018 Feb 21
7
alternative for multiple if_else statements
...de (from 2007-2016 to 2016-2007) and removed the if_else statement for 2015. Also noticed, that for the second code, which spans the years 2007-2016 (less 2015), if a participants entries start from 2010-2016, the code fails. Kindly assist in figuring this out...or better yet, an alternative. trialData <- structure(list(study = c("site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "si...
2018 Feb 22
0
alternative for multiple if_else statements
I don't fully understand the logic you are trying to implement, but something along the lines of foo <- cut(trialData$date, breaks = as.Date(c("2007-01-01", "2008-05-01", "2009-04-01", "2010-05-01", "2011-05-01",...
2008 Sep 15
1
Help... Organizing multiple spreadsheets data into a huge R data structure!
Hello R users, I am relatively new to the R program, and I hope some of you can offer me some suggestions on how to organize my data in R using some of the more advanced data structuring technique. Here's my scenario: I have date set of 50 participants (each with conditions and demographic data), each participant performed 2x16 trials, for each trial, there was specific information about the
2018 Feb 26
0
alternative for multiple if_else statements
...d removed the if_else > statement for 2015. Also noticed, that for the second code, which spans the > years 2007-2016 (less 2015), if a participants entries start from 2010-2016, the > code fails. > > Kindly assist in figuring this out...or better yet, an alternative. > > trialData <- structure(list(study = c("site_1", "site_1", "site_1", "site_1", > "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", > "site_1"...
2023 Jun 29
2
Plotting factors in graph panel
Okay. Here is a modification that does four single line plots. at_df<-read.table(text= "Income MF MF_None MF_Equity MF_Debt MF_Hybrid Bank_None Bank_Current Bank_Savings Bank_NA $10 1 3.05 29.76 31.18 36.0 46.54 24.75 25.4 3.307 $25 2 2.29 28.79 32.64 36.27 54.01 24.4 18.7 2.891 $40 3 2.24 29.51 34.31 33.94 59.1 25.0 29 13.4 $75 4 1.71 28.90 35.65 33.74 62.17 24.61 11.48 1.746