Displaying 2 results from an estimated 2 matches for "patient_data".
Did you mean:
parent_data
2010 Sep 16
1
Odd graphics output problem
...for inspection, so I set up the following script:
library( lattice )
wd = "~/Documents/PPM/"
ppm = read.table( paste( wd, "ppm_summary.txt", sep = "" ), sep = "\t",
header = TRUE )
ppm$Trial = as.factor( ppm$Trial )
for ( ID in levels( ppm$Patient ) ){
patient_data = ppm[ ppm$Patient == ID, ]
dir.create( paste( wd, ID, sep = "" ) )
for ( trial in ( levels( ppm[ ppm$Patient == ID, ]$Trial ) ) ){
trial_data = patient_data[ patient_data$Trial == trial, ]
trial_str = sprintf( "%03d", as.integer( trial ) )
path =...
2004 Sep 29
0
solution for reading access tables into R
Thanks for the response from Thomas Lumley. There is the way to read
access tables into R, just for someone else who might be interested.
#######################################################
f>or instance, if
>there is a table named patient in the access file named patient_data
>in my C drive.
You need to set up a DSN for the file using the ODBC program in the
Control Panel. This is the name ODBC uses for your database. Suppose you
call it "patientdb"
Now
library(RODBC)
channel <- odbcConnect("patientdb")
to connect to the database
sql...