Displaying 20 results from an estimated 10000 matches similar to: "Repeated values"
2009 Oct 01
2
The problem of readLines
Dear R-users,
I use "readLines" to read data, but when processing the large data set, there are few files which can not be readed in:
48: In readLines(name_c[i]) ... :
incomplete final line found on 'C:/Documents and Settings/lma/My Documents/habitdata/244052900243997/calllog/calllog_log-20050505T121611.txt'
...
Whats the problem about this?
Regards,
Tammy
2009 Mar 12
4
who can give me some hint?
Hi All,
> act_2
Date Dtime Hour Min Second Rep
51 2006-02-22 14:52:18 14 52 18 useractivity_act
52 2006-02-22 14:52:18 14 52 18 4
55 2006-02-22 14:52:49 14 52 49 4
57 2006-02-22 14:52:51 14 52 51 4
58 2006-02-22 14:52:52 14 52 52 3
60 2006-02-22 14:54:42 14 54
2009 Sep 01
3
data frame
HI, R user,
I generate the vectors with the same length. I want to put each vector into each column of data frame. Why it doesnt work`?
rm<-data.frame()
for(a in 1:6){
rm[,a]<-getmeasure(p1,a,speech)
}
thanks a lot
Tammy
_________________________________________________________________
Share your memories online with anyone you want.
2009 Mar 05
2
File checking
Hello,
How can I check if file is empty in R, if it is, then jump out and read next file; if it isn't, then read through?
Thanks a lot for any help.
Tammy
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/
[[alternative HTML version deleted]]
2009 Aug 24
2
Generate random sample interval
Hi, R users,
I have a problem about how to generate random sample interval from a duration.
For example, during a time duration 0-70s, I want to generate a sample which last 10s.
the sample could be 0-10 or 30-40s or 25-35s etc
How could I do it in R`??
Thanks a lot.
Tammy
_________________________________________________________________
Share your memories online with anyone you want.
2009 Sep 22
2
Manipulate directory-help
Dear R-users,
I have a problem:
I have many files in the directory:"C:/Documents and Settings/lma/Desktop/FamilyAEntrepreneurs/Entrepreneurs/Juha"
I want to copy those files into the new directory: "C:/Documents and Settings/lma/My Documents/Juha/book" (<-use "paste"), I first create the directory using dir.create, but it looks doesnt work.
How do I implement
2009 Sep 21
3
Create directory and copy files in R
HI, All R users,
My problem is:
> fn
[1] "C:/Documents and Settings/lma/Desktop/FamilyAEntrepreneurs/Entrepreneurs/Juha/book_log-20041210T095019.txt"
> dpath
[1] "C:/Documents and Settings/lma/My Documents/Juha/book"
I want to make a function "cyfun" to copy all files in "dir" to "deskdir" but I always got the following problem:
Error
2009 Mar 11
1
Date frame
Hi, All,
How to make a data frame, each row of data frame store the different length of vector?
Thanks.
Tammy
_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx
[[alternative HTML version deleted]]
2009 Mar 17
4
Merging
Hi, All.
I have a data frame with the part as :
.....
142 2006-02-22 16:28:18 useractivity_act 8 0
143 2006-02-22 16:28:26 4 2 0
144 2006-02-22 16:28:28 3 3 0
145 2006-02-22 16:28:31 4 4 1
146 2006-02-22 16:28:35 3 159 0
147
2009 Sep 29
1
How to parsing data like this in R
Hi, R-users,
I met a problem:
Items:[Anna 'moi =) akku loppu joskus 4ltä. Kestää kauan nää..'\tAmer, Tuusula (0:20)\t20\t12\t16\t00\t00\t11]/Anne 'Ei jakoa,uus päivä muistio et 4n niin peruin. Hups'\t (0:16)\t0\t12\t18\t00\t00\t11/Elina 'Konsertissa. En tod. vastaa teille'\tEtu-Töölö, Helsinki (2:40)\t24\t12\t18\t00\t00\t11
I want to parsing the above data into the
2009 Oct 02
1
Please Help me!
Hi, R-users,
I have a problem: Because there are few files which can't be readed
into R completely, so on the following subsequence programme, I use
write.table, which creates the "NA" files for those incomplete files
autimatically.
I don't want those NA files.
My programes formats looks like:
name_c<-Sys.glob("C:/Documents and Settings/lma/My
2009 Sep 30
2
Change directory to implement same programes
HI, R-Users,
I have one problem:
I have written the the programs which process all file in one directory: for example:
setwd("C:/Documents and Settings/lma/My Documents/Vappu-saved/Log") as the start.
..........
But I have many folders like "Vappu-saved" and there are a lot of files in each directory. What I want is using the same program what I write for the above
2009 Mar 12
1
debug
Hi, All
I have so many files in my directory. I got the following error. At this time, I couldn't use debug() to check error one by one because so many files getting invloved. How can I get some idea about my error??
.....
Skipping book_log-20060222T143612.txt
Skipping book_log-20060222T162828.txt
Skipping book_log-20060222T162833.txt
Skipping book_log-20060222T183742.txt
Skipping
2009 Mar 31
1
About the proportion of data
Hi, All.
I have scatterplot in 2-D
I'd like to see which proportion of data goes into a range. How shall I figure it out?
Perhaps some accumulative graph or something?
Kind regards,
Tammy
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/windows/windowslive/products/photos.aspx
2009 Apr 28
1
About Matrix
Hi, Dear R users,
I have a question:
I have A matrix which is 11519X14
and B matrix which is 1764X14,
How do I get C matrix which is The remaining matrix after removing B from A?
Thanks a lot.
Kind regards,
Tammy
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/
2009 Nov 09
6
Find the first values in vector
Hi !
I have a vector:
vec= TRUE TRUE TRUE TRUE FALSE FALSE FALSE FALSE TRUE TRUE FALSE
and I'm looking for a method which let me get only the first values equal
TRUE from this vector. It means that I want to get a vector:
vec_out = TRUE TRUE TRUE TRUE
or posictions values = TRUE: vec_out = 1,2,3,4
--
View this message in context:
2013 Jan 22
3
How to align group based on the common values of two columns in r
HI,
I met this problem:
I have the feature data frame:
Feature OS
4 2
4 1
4 3
1 2
4 1
what I want to do is to autimatically create one more column called "group":
Feature OS Group
4 2 1
4 1 2
4 3
2012 Dec 13
3
how to aggregate the dataset
HI,
Sorry for messing up..
I want to transform the following dataset:
product min_price max_price mean_price country price_band
11 34 50 40 VN 0-300
22 10 30 15 VN 0-300
Into:
product VN price_band
11 40 0-300
[34,50]
22 15
2010 Mar 27
4
replace id by running number
Dear all,
I want to replace an (unsorted) id variable in a large dataset by a running
number without changing the order of the cases.
E.g.,
y <- c(4,4,4,2,45,12,12)
should be replaced by something like
x <- c(1,1,1,2,3,4,4)
Sorry for this simple question & thank you very much for your help!
[[alternative HTML version deleted]]
2009 Mar 31
1
summarize logical string
Hello everyone,
I am a newbie, working on a gene clustering problem, and I have problems
in summarizing a logical string into number of repeats of each value. In
other words, how could I obtain from
0 1 1 1 0 0 0 0 1 1 0 1 0 0
this: 1 3 4 2 1 1 2
so a string that gives me the number of repeated values, no matter zeros
or ones.
I've been diving in the manuals and the mailing list but,