[R] Problem with data conversion

2003-12-14 Thread arinbasu
Hi All: I came across the following problem while working with a dataset, and wondered if there could be a solution I sought here. My dataset consists of information on 402 individuals with the followng five variables (age,sex, status = a binary variable with levels case or control, mma,

Re: [R] Problem with data conversion

2003-12-14 Thread Christian Schulz
The variables mma, and dma are actually numerical variables but in the dataframe, they are represented as characters. I tried to change the type of the variables (from character to numeric) using the edit function (and bringing up the data grid where then I made changes), but the changes were

Re: [R] Problem with data conversion

2003-12-14 Thread Prof Brian Ripley
The message probably means that the variable is a character variable and not numerical (as you intended) nor factor. Although you said there was a trip to epiinfo, you never said where the data came from. Try dumping out the data, editing the file, and reading it with read.table. There are

Re: [R] Problem with data conversion

2003-12-14 Thread Paul E. Johnson
I sympathize with your trouble bringing in data, but you need to catch your breath and figure out what you really have. I think when you get a bit more R practice, you will be able to manage what you bring in without going back to that editor so much. I feel certain your data is not what you