Re: [R] importing multiple file form folder

2012-06-10 Thread mpavlic
Thanks for reply Rui, this is not exactly what i need. The way you proposed i get the data structured like this : Length, TempAtLocation1, TempAtLocation2TempAtLocationN What i'd like is to actuall get the data from each file in Columns, but they should be binded in rows in one

Re: [R] importing multiple file form folder

2012-06-10 Thread mpavlic
Thanks for reply Rui, this is not exactly what i need. The way you proposed i get the data structured like this : Length, TempAtLocation1, TempAtLocation2TempAtLocationN What i'd like is to actuall get the data from each file in Columns, but they should be binded in rows in one

Re: [R] importing multiple file form folder

2012-06-10 Thread mpavlic
Thanks for reply Rui, this is not exactly what i need. The way you proposed i get the data structured like this : Length, TempAtLocation1, TempAtLocation2TempAtLocationN What i'd like is to actuall get the data from each file in Columns, but they should be binded in rows in one

Re: [R] importing multiple file form folder

2012-06-10 Thread mpavlic
I am very sorry, but i dont know how it got posted three times! -- View this message in context: http://r.789695.n4.nabble.com/importing-multiple-file-form-folder-tp4631637p4632931.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] importing multiple file form folder

2012-06-10 Thread mpavlic
Hi again all, @Rui, melt did the trick. Thanks! I managed to make this thing work somehow. ABellow is the script for this : setwd(C:/Users/mpavlic/Desktop/HE Krsko/HEK/FOC/Data/Jun/DDF) library(reshape2) library(sqldf

Re: [R] importing multiple file form folder

2012-06-10 Thread mpavlic
Thank Rui, as always your posts did the trick. Thanks, m -- View this message in context: http://r.789695.n4.nabble.com/importing-multiple-file-form-folder-tp4631637p4632948.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] importing multiple file form folder

2012-06-09 Thread mpavlic
Hi all, i managed to (with the help of most posts here) using bellow code : setwd(C:/Users/mpavlic/Desktop/test) txt_files = list.files(pattern = '*.ddf'); flist-txt_files flistNew - sub(^channel 1 ([0-9 ]+).*, \\1, flist) coordinate-read.csv

Re: [R] importing multiple file form folder

2012-05-30 Thread mpavlic
Hi Jim, thanks for that, works perfectly. m -- View this message in context: http://r.789695.n4.nabble.com/importing-multiple-file-form-folder-tp4631637p4631798.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] importing multiple file form folder

2012-05-29 Thread mpavlic
Hi Sarah, I can not for the life of me understand what was wrong with my post?!? Can you please explain, so that i will not make the same mistake again? Regards, m -- View this message in context: http://r.789695.n4.nabble.com/importing-multiple-file-form-folder-tp4631637p4631734.html Sent

Re: [R] importing multiple file form folder

2012-05-29 Thread mpavlic
Hi Rui, Thanks a lot, it works like I wanted. I am sorry about my late response though... Is it possible to get the name of the file (Channe 1. ) as a name of the column in the resulting table (dataframe)? Many thanks, m -- View this message in context:

Re: [R] importing multiple file form folder

2012-05-29 Thread mpavlic
Hi again Rui, i got the column names settled like this : colnames(Temp) - paste(flist, seq_len(ncol(Temp)), sep=.) Thanks again, m -- View this message in context: http://r.789695.n4.nabble.com/importing-multiple-file-form-folder-tp4631637p4631737.html Sent from the R help mailing list

Re: [R] importing multiple file form folder

2012-05-29 Thread mpavlic
Just one more thing ... my colnames are as follows : c(channel 1 20120509 153744 1.ddf, channel 1 20120509 154744 1.ddf, channel 1 20120509 155744 1.ddf, channel 1 20120509 160744 1.ddf, channel 1 20120509 161744 1.ddf, channel 1 20120509 162744 1.ddf,...) How would i

[R] importing multiple file form folder

2012-05-28 Thread mpavlic
Hi all, I have a set of files (which is growing) in a folder. The files are text files... The form of files is such : ...with numbers for Length (m) going up to 2000 ... Anyway...i just need the data from first two columns (length (m) and Temperature (C)), and no data before that... This

Re: [R] importing multiple file form folder

2012-05-28 Thread mpavlic
I managed to sort something out with a for loop, but it's till not working ok... What it does is it loops through all files in the folder, it imports each file from line 763 on. Than it just takes the second column (Temprerature) and binds the columns (cbind). BUT it just binds the values of

[R] date-time series plot

2012-04-02 Thread mpavlic
Hi all, i have a date-time series plot like this : Datum-Ura;padavine;P-kum-15dni;BLPV-1N;T-BLPV-1N;BLPV-4N;T-BLPV-4N;BLPV-5N;T-BLPV-5N;pretok;N-min;N-max 1.1.2011 18:00;0.0;0.0;174.62;14.60;174.56;14.10;174.64;14.20;299.26;174.18;181.78 2.1.2011

[R] Text mining analysis methods

2011-08-28 Thread mpavlic
Hi all, i am trying to do some text mining in R. So far I managed to do some text mining like TermDocumentMatrices and word count and similiar things. What I would like to do is this : I have a soil descriptions from borehole logs that corresponds to soil classes. The problem is that some of

[R] R results explanation

2011-06-07 Thread mpavlic
Hi all, this might be a stupid question, but still. Everytime i find some new function it's prettty easy to understand how to use the syntax and to perform a text. Even the general idea of what the function does is pretty easy to understand, but i can not find an explanation (detailed

Re: [R] tm package

2011-05-29 Thread mpavlic
it should be findFreqTerms instead of findfreqTerms. m -- View this message in context: http://r.789695.n4.nabble.com/tm-package-tp3558064p3558783.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] tm package

2011-05-29 Thread mpavlic
it should be findFreqTerms instead of findfreqterms. m -- View this message in context: http://r.789695.n4.nabble.com/tm-package-tp3558064p3558784.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] Help using tm text mining package - preprocessing

2011-05-21 Thread mpavlic
Hi, ia have similar problem you had.Did you manage to find out what that error meant? thanks, m -- View this message in context: http://r.789695.n4.nabble.com/Help-using-tm-text-mining-package-preprocessing-tp3299399p3540468.html Sent from the R help mailing list archive at Nabble.com.

[R] image2GRID

2009-03-08 Thread mpavlic
Hi all, i have a SpatialPixelsDataFrame object, which is a result of kriging in R. What i would like to do is to convert this object to image (geoTiff) so that i could use it in Gis application. I have tried using this image2Grid function but it doesen't work. Here is the code : im-image(pCir)