search for: subids

Displaying 20 results from an estimated 40 matches for "subids".

Did you mean: subid
2012 Apr 23
2
plot function creating bars instead of lines
Hello, I am having a problem where code that plots lines using a different data frame plots bars with the current data frame (I am intended to plot lines). The code specifies lines (see below), so I can't figure out why the results are bars. I suspect that it may have something to do with the fact that in the data frame where the code worked as intended, the both variables specifying
2002 Oct 08
2
data.frame merge matching several columns
Greetings, Is it possible to match several columns in a merge statement? Here is my problem: data1 looks like this... SUBID TARGID ITEM RATING 1 1 1 4 1 1 2 5 1 1 3 3 1 1 4 2 1 1 5 5 ...... SUBID is the ID for the raters, TARGID is the ID for the targets being rated, ITEM ranges from 1 to 64 crossed
2012 Mar 19
2
by output into data frame
I could do this in various hacky ways, but what's the right way? I have a nice application of the by function, which does what I want. The output looks like this: > auc_stress lab.samples.stress$subid: 2 cortisol amylase 1 919.05 6834.8 ---------------------------------------------------------------------------------------------------------------------------
2013 Nov 05
0
Sampling question
Hi, You may try: dat1 <- structure(list(SubID = 1:8, CSE1 = c(6L, 6L, 5L, 5L, 5L, 5L, 3L, 3L), CSE2 = c(5L, 4L, 5L, 4L, 6L, 4L, 6L, 6L), CSE3 = c(6L, 7L, 5L, 3L, 7L, 3L, 6L, 6L), CSE4 = c(2L, 2L, 5L, 4L, 5L, 6L, 3L, 3L), WSE1 = c(6L, 6L, 5L, 4L, 6L, 4L, 6L, 6L), WSE2 = c(2L, 6L, 5L, 4L, 4L, 3L, 5L, 5L), WSE3 = c(2L, 2L, 4L, 5L, 4L, 7L, 2L, 4L), WSE4 = c(4L, 3L, 5L, 2L, 1L, 3L, 1L, 7L)),
2010 Nov 18
3
New Sampling question
I have another question about drawing samples from a data frame. This might sound really tricky. Let me use a data frame I have posted earlier as an example: SubID CSE1 CSE2 CSE3 CSE4 WSE1 WSE2 WSE3 WSE4 1 6 5 6 2 6 2 2 4 2 6 4 7 2 6 6 2 3 3 5 5 5 5
2011 Jan 18
3
error message
I was running a sampling syntax based on a data frame (ago) of 160 rows and 25 columns. Below are the column names: > names(ago) [1] "SubID" "AGR1" "AGR2" "AGR3" "AGR4" "AGR5" "AGR6" "AGR7" "AGR8" [10] "AGR9" "AGR10" "WAGR1" "WAGR2"
2013 Apr 30
2
R Function to extract columnNames
Hi, May be this helps: funcName<- function(df1, x){ ?whatCol=df1[[x]] ?print("Got it") ?print(whatCol) ?} ? funcName(df,"ColA") #[1] "Got it" #[1] 1 2 3 4 5 ? funcName(df,"ColB") #[1] "Got it" #[1] A B C D E #Levels: A B C D E A.K. >I am trying to extract the 2nd column from a dataframe using a function called funcName. Note this is an
2010 Apr 30
2
deriving mean from specific cases
Hi all, I have a large dataset that has >10k entries. The dataset is stored in a dataframe with the headers: SubID Condition1 Condition2 Result1 Result2 There are multiple entries for a given SubID(Subject ID). Condition 1 has 3 levels and condition2 has 2 levels (therefore there are 6 possible combinations all together e.g. Cond1 Level1 x Cond2 Level 1 etc.) and i need to compute for 1. The
2007 Aug 01
1
Problem to remove loops in a routine
Dear R-users, I have written the following code to generate some trellis plots. It works perfectly fine except that it is quite slow when it is apply to my typical datasets (over several thousands of lines). I believe the problem comes from the loops I am using to subset my data.frame. I read in the archives that the tapply function is often more efficient than a loop in R. Unfortunately ,
2008 Oct 02
1
Shadowed Plot
Hello R-users     Kindly assist me with the following plot problem in R- My data looks like this (shortened because I have about 5000 observations).   dat <- read.table(textConnection("Id  Time Y      1 0   194 1 5.22 179 1 5.97 190 2 1.61 265 2 2.1  234 2 16.4 300 2 29.5 345 3 0    212 3 0.36 213 4 0    199 4 1.23  203 5  0   212 5  13.5 216 6  0    222 6  1.6 234" ), header =
2011 Jan 11
1
how to sort new data frame based on the original data frame
...w w w w w w w each random sample satisfies the following rules: ###the top two rows have to be filled with 2 random rows of the 8 rows of G numbers. the rest should be filled with 6 random rows of the 8 rows of W numbers. At the same time, the SubIDs of all eight rows should be different among each other. here below is the syntax I've used: > fff<-function(dat,g=2,w=6){ + sel1<-sample(1:8,g) + sel2<-sample((1:8)[-sel1],w) + M=dat[sel1,2:5] + N=dat[sel2,6:9] + colnames(N)<-colnames(M) + rbind(M,N) +} > result<-vector(...
2010 Nov 15
5
Sampling problem
Hey, I am hoping someone can help me with a sampling question. I have a data frame of 8 variables (the first column is the subjects' id): SubID CSE1 CSE2 CSE3 CSE4 WSE1 WSE2 WSE3 WSE4 1 6 5 6 2 6 2 2 4 2 6 4 7 2 6 6 2 3 3 5 5 5 5 5 5
2012 Aug 30
0
[PATCH 05/11] vmci_event.patch: VMCI kernel events handling.
Signed-off-by: George Zhang <georgezhang at vmware.com> --- drivers/misc/vmw_vmci/vmci_event.c | 448 ++++++++++++++++++++++++++++++++++++ drivers/misc/vmw_vmci/vmci_event.h | 25 ++ 2 files changed, 473 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_event.c create mode 100644 drivers/misc/vmw_vmci/vmci_event.h diff --git
2012 Aug 30
0
[PATCH 05/11] vmci_event.patch: VMCI kernel events handling.
Signed-off-by: George Zhang <georgezhang at vmware.com> --- drivers/misc/vmw_vmci/vmci_event.c | 448 ++++++++++++++++++++++++++++++++++++ drivers/misc/vmw_vmci/vmci_event.h | 25 ++ 2 files changed, 473 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_event.c create mode 100644 drivers/misc/vmw_vmci/vmci_event.h diff --git
2008 Jun 12
10
Ajax.Updater not working in IE, tried everything
hi, i am basically using a button, Prototype/AJAX, and PHP to update a user''s location. something simple as typing ''Chicago, IL''. After the script, it rewrites the result in a div tag. here is the form i''m using: <div id="hometown_result">Aurora, IL</div> <form action="" method="post"
2010 May 24
5
Means do not tally
Hi all, here is my situation In my experiment, I expose 10 subjects to 24 different conditions of stimuli. Each condition is exposed to the same subject 3x. This would make each subject have 24x3=72 data points. All the subjects combined would have 72x10=720 data points with each condition having 30 datapoints. To find the grand average of each condition, I find the average of all the
2006 Apr 25
6
Searching over multiple MySQL tables
I am racking my brain over this, probably because I only know very simple mysql functions. Basically I''ve got a few tables, ex: Albums (id,name,band_id); Bands (id,name,label_id), and Label (id,name) I want to search through both album.name, band.name, and label.name throwing all results into a variable, with no redundant info. I think what I need to be doing is setting up some
2013 Jan 24
0
Again ACL Postgres dict trouble, no update and raw backtrace
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have ACL-dict-postgres trouble again. Eventually a session does not update the ACL dictionary no longer. I execute (for testing) this script: for a in $(seq 1 ${1-4}); do echo 3-$a deleteAcl Junk dvtest1 sleep 30 echo 3-$a SetAcl Junk dvtest1 kxilrsc sleep 30
2010 Nov 16
2
Computing Rolling Average
Hi, Can anyone suggest a clever way to compute a rolling weekly average of the columns in a matrix? The column bit is straightforward – use apply given a function which does what you want on a column. With regard to a particular column, the obvious way is to run a for loop indexing the last 7 days and computing the average . I simply would like to know if there is a better / quicker way.
2015 Apr 24
0
Férias/Maio/Junho
Apartamentos Lamy Algarve Arma??o de P?ra www.apartamentoslamy.com - Telefone 282 315 601 Aproveite as nossas promo??es. Fa?a uma pausa, viaje at? ao Algarve e desfrute de umas f?rias no conforto da Primavera. T1, s/Ac e pouca vista de mar, at? 30 de Maio de 2015. Special price until the 30th May 2015. One bedroom apartment without air conditioning and little sea view. 2 pax = 175? (7