similar to: selection by two unique variables

Displaying 20 results from an estimated 1000 matches similar to: "selection by two unique variables"

2012 Aug 02
2
Help on merging without a common variable
Dear All, I want to create a dataset for a NONMEM simulation. I have a dataframe with individual PK parameters and want to create a dosing sceinario in a second dataframe. I want to merge them both so that every individiual's PK parameters are combined with the dosing scenario into one. I do not have a common variable to merge and cbind is giving error that lengths are different. I
2012 Jan 11
6
Generating unque patient IDs
Dear group, I am trying to prepare a NONMEM friendly dataset for population PK analysis. My patient IDs are 10 digit long and NONMEM is losing precison and rouding the last couple of digits. I need to generate unique Patient IDs fromt he current 10-digit IDs. Ihave total 250 subjects so I appreciate if anybody can suggest me a way to code this in R. Regards, Ayyappa [[alternative HTML
2012 Aug 03
2
Density plots
Dear group, I need help on two problems: 1. I am trying to plot density plots for each individual in 8 occasions. I can do this by subject wiht the code below: par(mfrow=c(4,2)) plot(density(all8scenarios$SIMCONC[all8scenarios$ID==1&all8scenarios$WSEQ==0])) plot(density(all8scenarios$SIMCONC[all8scenarios$ID==1&all8scenarios$WSEQ==1]))
2011 Aug 29
2
Plot history
Dear R group, I am trying to plot uisng a for loop. Here is the script: for (i in unique(cfn$ID)){ plot(cfn$TIME[cfn$ID==i],cfn$DV[cfn$ID==i],pch=16)} I could access only the last plot of the series and cannot go back to see all the plots. I appreciate your help in resolving this issue and also please suggest how I can export the plots as a pdf or other format files for publication purposes.
2013 Apr 23
1
Time and Date formatting
Dear Group, I have a problem with time date formatting. I have Date and Time in different columns in a .csv file and want to have a column with Date and Time together. I could format the date into the right mode using strptime and as.Date functions. I am not able to do that with TIME column. I appreciate your help in solving this issue. Currently the TIME column is in character mode.
2012 Feb 29
1
Coding help
Dear Group, I have the following dataset: ID REPI DV CONC SS 1 1 156.84 116 0 1 2 146.56 116 0 1 3 115.13 116 0 1 4 207.81 116 0 1 5 129.53 116 0 1 6 151.48 116 0 1 7 158.95 116 0 1 8 192.37 116 0 1 9 32.97 116 0 1 10 151.66 116 0 I want to calculate the percentile of each CONC within ID=i and add as a column
2009 Nov 16
5
Writing a data frame in an excel file
Hello, I am having trouble by using the write.table function to write a data frame of 4 columns and 7530 rows. I don?t know if I should just use a sep="\n" and change the .xls file into a .csv file. Thanks in advance ----- Anna Lippel new in R so be careful I should be asking a loooooooot of questions!:teeth: -- View this message in context:
2007 May 04
1
R question
I had a question about Random Forests. I have a text file with 10 dichotomous variables and a bivariate response vector. I read this file into R as a data frame, and then used the command "randomForest(Response ~., dataset, etc.." where "Response" is the column header of the response variable and "dataset" is the name of the data frame. I get an error that says
2010 Aug 04
1
Carriage return character issue
Hi all, I imported a file (in CSV format) into R for processing, then imported the result into MySQL. However, there are *carriage return* characters (hexadecimal: *0D*) that are appended to the characters in the last field of the table. i.e *\r* appended to the character values (as shown below) Before importing into MySQL: asdf After importing into MySQL: asdf*\r* ** ** Are there any options
2012 Mar 02
1
data frame of strings formatted
Hello, I have another question.... I have a data frame that looks like this: a b 2007-03-31 "20070514" "20070410" 2007-06-30 "20070814" "20070709" 2007-09-30 "20071115" "20071009" 2007-12-31 "20080213" "20080109" 2008-03-31 "20080514" "20080407" 2008-06-30
2006 Jul 29
1
DOE in R
Hi. I'm a student in a graduate program at Simon Fraser University in Canada. I am trying to run a simple screening experiment with some simulated data. I simply want to do an ANOVA of an experiemnt with 5 factors (4 have 2 levels, the last has 3 levels) and 48 runs (ie, full factorial). The thing is that I have multiple observations for each level combination (run). So, 1) How do I do
2010 Apr 27
4
Selecting rows based on contents of string
Hi there, I have a data frame with a column named "Flags", whose contents are strings containing any of the following characters, multiple characters allowed: A,B,C,D,E,F,G. Here is the head: GeocodeID PlaceID CountyCode CBSACode StateProvCode PropertyTypeGroupID Flags 1 0 0 0 0 AK 1 ABC 2
2010 Dec 24
4
Removing rows with earlier dates
Hi all, I'm new to the list but have benfited from it quite extensively. Straight to my rather strange question: I have a data frame that contains mapping rules in this way: ACCOUNT, RULE COLUMNS, Effective Date The dataframe comes from a database that stores all dates. What I would like to do is to create a data frame with only the most recent rule for each account. In traditional
2010 Jan 13
4
a question about deleting rows
I have a file like this: id n1 n2 n3 n4 n5 n6 1 3 4 7 8 10 2 2 4 1 2 4 3 10 3 7 0 0 0 0 8 4 10 1 0 0 2 3 5 11 1 0 0 0 5 what I want to do is: only if n2=0 and n3=0 and n4=0 and n5=0 then delete the row. how can I do that? thank you, karena -- View this message
2008 Aug 24
1
Plotting 3 way Anova
Hi I'd really like to get a bar plot showing the means of my anova data. I have looked everywhere and can only seem to find instructions for 2 way anova's. I basically want to look at the mean condition of my subjects spilt by age, sex and year (as a factor rather than a continuous variable, hence Anova and not Ancova). and want to show it firstly as a bar graph with standard error. I
2003 Dec 11
1
plot of survival probability vs. covariate
Hi everyone, I am fitting a cox proportional hazard model with a continuous variable "x" as the covariate: fit<-coxph(Surv(time, status)~x) Now I wanted to make a plot of survival probability vs. the covariate, and the 95% confidence interval for the survival probability. It's just like a Kaplan-Meier Survival curve, except now the x axis represents the value of covariate, not
2007 Oct 24
3
how to loop over a group of variables?
Hi All, I have a data frame with a group of variables named b1, b2, b3, ..., b18. These variables take the value 1, 2 or NA. For each observation, I want to do some computation by looping over the values for the group of variables: b1 to b18. In STATA I would do: forval i=1/18 { --- use b`i' for computation ---- } How can this be done in R? Deepankar
2012 Feb 13
3
Change dataframe-structure
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120213/d2a5afa6/attachment.pl>
2010 Sep 17
2
grouping dataframe entries using a categorical variable
DearR Users, I have a problem which I think you might be able to help. I have a dataframe which I'm trying to "filter" following different groups I specified. It's a little hard to explain, so here is an example: My dataframe: ESS DHP 1 EPB 22 2 SAB 10 3 SAB 20 4 BOJ 14 5 ERS 28 11 SAB 10 12 SAB 22 13 BOJ 26 20 SAB 10 21 SAB 22 22 BOJ 32 29 SAB 14 30 SAB
2017 Jun 01
0
Data import R: some explanatory variables not showing up correctly in summary
It looks like your printouts are based on the R summary() function? The function lists the number of cases in the 5 largest categories when the variable is coded as a function. Then it indicates how many other categories are present. This is described on the manual page for function summary(). In the first case the duplicates probably represent cases in your source data (a spreadsheet?), where