David,
I actually changed the column type from factor to character, and given
the default as.is value, it now works smoothly.
It is, nonetheless, still strange to my why it suddenly stopped working.
Perhaps there was a version update or something similar.
Thank you David, Jim and Jorge for yo
On Oct 22, 2010, at 8:40 PM, Balpo wrote:
Hello Jim
How can I ensure this reading it from the file?
The thing is, I cannot use the textConnection(), because the real
file has millions of rows.
The advice being offered is not that you use textConnection. That is
just for illustration. You
Hello Jim
How can I ensure this reading it from the file?
The thing is, I cannot use the textConnection(), because the real file
has millions of rows.
Thank you,
Balpo
On 22/10/10 21:34, jim holtman wrote:
You need to make sure that your data is read in a characters and not factors:
x<- r
Thanx Jorge,
while doing it exactly as you say, it does work, but I need to read the
information form a file.
When I read it from the file it still shows 780.
On 22/10/10 21:30, Jorge Ivan Velez wrote:
Hi Balpo,
Try this:
# data
x<- read.table(textConnection("ktot attractors pctstatesinat
You need to make sure that your data is read in a characters and not factors:
> x <- read.table(textConnection("ktot attractors pctstatesinattractors t
> lengths
+ 1.0 2.0 3.8146973E-4 17 c(2,2)
+ 1.0 1.0 5.722046E-4 28 c(2)
+ 1.0 2.0 9.536743E-4 18 c(2,2)
+ 1.0 1.0 0.0010490417 14 c(1)"), as.is
Hi Balpo,
Try this:
# data
x <- read.table(textConnection("ktot attractors pctstatesinattractors t
lengths
1.0 2.0 3.8146973E-4 17 c(2,2)
1.0 1.0 5.722046E-4 28 c(2)
1.0 2.0 9.536743E-4 18 c(2,2)
1.0 1.0 0.0010490417 14 c(1)"), header = TRUE)
closeAllConnections()
# function to do the pa
Hello again Jim (and everyone)
I am having a weird problem here with the same parsing thing.
For example, for the first row I have the following 5 columns.
1.02.03.8146973E-417c(2,2)
I need to convert that c(2,2) into a list and get its mean, in this
particular case mean
Here is a way of creating a separate list of variable length vectors
that you can use in your processing:
> # read into a dataframe
> x <- read.table(textConnection("ABCTLengths
+ 14.00.001525878918c(1,2,3)
+ 14.00.001525878918c(1,2,6,7,8,3)
+ 14
Hello to all!
I am new with R and I need your help.
I'm trying to read a file which contests are similar to this:
ABCTLengths
14.00.001525878918c(1,2,3)
11.00.001716613824c(1,1,4)
So all the columns are numeric values, except Lengths, which is supp
9 matches
Mail list logo