Displaying 12 results from an estimated 12 matches for "newbie19_02".
2010 Feb 20
3
Rearranging a data frame for multiple observations
Hi there,
I think I'm struggling with a fairly simple problem but can't seem to solve
it. I have multiple observations for one unique identifier. Ultimately I
want to end up with one line per identifier with multiple observations in
rows. I'm really stuck any help would be really appreciated.
CAO0337134 05/09/95
CAO0337134 27/09/05
CAO0347741 10/10/04
CAO0347741 12/10/04
2010 Mar 12
7
sqldf not joining all the fields
Dear R users,
I have two data frames that were read from text files as follows:
x_data <- read.table("x.txt", header = TRUE, sep = "|", quote = "\"'",
dec = ".",as.is = TRUE,na.strings = "NA",colClasses = NA,
nrows = 3864284,
skip = 0, check.names = TRUE,fill=TRUE,
strip.white = TRUE,
2010 Sep 06
3
Finding the two most recent dates
Dear R help,
I have the following data frame:
structure(list(prochi = c("ind_1", "ind_1", "ind_1",
"ind_1", "ind_1", "ind_1", "ind_1", "ind_1",
"ind_1", "ind_1"), date_1st_event = structure(c(14784,
14784, 14784, 14784, 14784, 14784, 14784, 14784, 14784, 14784
), class = "Date"),
2010 Mar 03
1
Subset using partial values
Hi everyone,
I would like to subset a data.frame using partial values.
For example I have the following data.frame:
PROCHI Main_condition
1234 411
1235 4110
1236 4111
1237 I20
1238 I201
1239 I202
Now let's say that I use the Subset function. Ordinarily I would use it as
follows Subset(x, Main_condition=="411"|Main_condition=="4110" etc to get
2010 Feb 21
1
Comparing two date columns
Hi everyone,
I have another fairly simple question. I want to take the earliest of two
dates from these two date columns. I've tried converting the dates to
numbers and just get a vector full of NA's. I've also tried using the chron
function to compare the two and have been unsuccessful. I then tried to
use:temp.2 <- as.POSIXct(strptime(temp, '%d/%m/%Y')) where temp is
2011 Mar 09
2
Cleaning date columns
Hi Everyone,
I have the following problem:
data <- structure(list(prochi = c("IND1", "IND1", "IND1",
"IND2", "IND2", "IND2", "IND2", "IND3",
"IND4", "IND5"), date_admission = structure(c(6468,
6470, 7063, 9981, 9983, 14186, 14372, 5129, 9767, 11168), class = "Date")),
.Names =
2010 Mar 15
1
inner join sqldf
Hi,
I have two dataframes that have some common columns. I would like to join
them by the common columns prochi and prescribed_date as there are duplicate
prochis but they will be made unique by date. I tried doing an inner join
but that just duplicated the columns whereas I would like the information
from the test_sql_tsf to fill the NAs in the test_sql_psd common columns.
require(sqldf)
2010 Mar 04
1
Date conversion problem
Hi All,
I have a character data.frame that contains character columns and date
columns. I've manage to convert some of my character columns to a date
format using as.Date(x, format="%m/%d/%y").
An example of one of my dates is
PROCHI DtDeath icdcucd date_admission1 date_admission_2
CAO0004563 <NA> <NA> 2005-09-01 <NA>
CAO0073505
2011 Jan 06
0
Rserve: failed to find config file
Dear R users,
I've installed Rserve for R version 2.11.0 on x64 Windows 7. I've added the
Rserve_d and Rserve files to the /bin/ folder where the R.exe is installed
in the program files. I have also created an Rserv.cfg file that contains
the following text:
remote enable
auth disable
plaintext disable
fileio enable
when I run "R CMD Rserve_d" from the dos prompt I
2010 Feb 23
1
Matching Problem
Hi,
I have a problem with function match. I might not be using it properly?
I have two character vectors that contain a unique identifier:
gtype_prochi <- ("CAO1524452" "CAO0966182" "CAO9209719" "CAO4436178"
"CAO3761898"
"CAO3529266" "CAO2427148" "CAO8829776" "CAO2517174" "CAO5371418"
2010 Jul 15
0
impute2mach GenABEL conversion problem
Hi,
I've been trying to use the impute2mach function in the GenABEL library. I
unfortunately cannot make a working example as when I scale down the files I
no longer get an error message.
The error message that I get on the full file is:
Error in checkSlotAssignment(object, name, value) :
assignment of an object of class "NULL" is not valid for slot "data" in an
2010 Mar 10
2
ordering columns in a data frame
Dear R users,
I have the following data frame:
PROCHI date_admission
2 CAO0000713 1999-12-11
4 CAO0000713 1999-10-25
21 CAO0001743 1989-05-04
25 CAO0001743 1996-09-12
26 CAO0001743 1989-05-17
27 CAO0001743 1987-09-17
28 CAO0001743 1987-09-19
29 CAO0001743 1988-01-27
36 CAO0001747 2004-03-21
38 CAO0001747 2004-03-22
39