search for: tt1

Displaying 20 results from an estimated 35 matches for "tt1".

Did you mean: ts1
2017 Sep 25
0
build a SpatialLines object from a list
Hi Ashraf, It is not obvious to me what your structures are but one problem in your function is the assignment tt1 <- SpatialLines(list(tt[[i]])). This will set tt1 to just have one item. Consider the following test.func <- function(x) { tt1 <- list() for ( i in ... ) { ... tt1[[i]] <- SpatialLines(tt[[i]]) } return(tt1) } HTH, Eric On Mon, Sep 25, 2017 at 3:40 P...
2017 Sep 25
2
build a SpatialLines object from a list
...x,y coordinates. I'm using the following code to create the SpatialLines object, but it just retrieves one segment. Any suggestions? test.func = function(x){ ??? for (i in 1:length(x)) {??????? tt[[i]] <- x[i]; tt[[i]]? = Line(tt[[i]]); tt[[i]]? = Lines(list(tt[[i]] ), 'i')??????? tt1 = SpatialLines(list(tt[[i]]))? ? ? ?? ? }????return(tt1)? } Ashraf, [[alternative HTML version deleted]]
2017 Sep 26
2
build a SpatialLines object from a list
...1 matrices.Each matrix represents coordinates of the river lines position. Ashraf, cheers On Monday, 25 September 2017, 16:56, Eric Berger <ericjberger at gmail.com> wrote: Hi Ashraf,It is not obvious to me what your structures are but one problem in your function is the assignment tt1 <- SpatialLines(list(tt[[i]])). This will set tt1 to just have one item. Consider the following test.func <- function(x) {? ? tt1 <- list()? ? for ( i in ... )? {? ? ? ?...? ? ? ?tt1[[i]] <- SpatialLines(tt[[i]])? ? }? ? return(tt1)} HTH,Eric? ?? On Mon, Sep 25, 2017 at 3:40 PM, Ashraf...
2011 Mar 24
2
Problem with pam-auth and winbind
...ocedure. /etc/nsswitch.conf file: passwd: files winbind shadow: files winbind group: files winbind when I try logon from my console to dovecot (pop3 server): # telnet komp14 110 Trying 10.10.10.38... Connected to komp.xxx.xxx (10.10.10.38). Escape character is '^]'. +OK Dovecot ready. user tt1 +OK pass xxxxxxxxx -ERR Authentication failed. quit +OK Logging out Connection closed by foreign host. Of course password is corret becouse #wbinfo -K tt1 Enter tt1's password: plaintext kerberos password authentication for [tt1] succeeded (requesting cctype: FILE) credentials were put in: FIL...
2002 Apr 02
1
cbind.ts bug?
The following creates a time series tt1 whose values rise from 1 to 20 and another time series tt2 each of whose values are 10 larger than the corresponding value in tt1. When we attempt to bind them together as columns, the entry after Dec 1960 is erroneously listed as NA 1960 instead of Jan 1961. If n is changed to either 19 or is...
2012 May 03
6
Cannot read or write to file in Linux Ubuntu
...ing stupid but ... at the moment I cannot seem read or write files in Ubuntu. I am not having any problem saving other documents to the hard drive and R , from my few simple tests, seems to be working okay otherwise. At the moment I am trying : mydata <- read.csv("DATA/media/DATA/rdata/tt1.csv", header = TRUE) or mydata <- read.csv("DATA/rdata/tt1.csv", header = TRUE) where tt1.csv is a text file on what, from my reading of the path listed in gedit is DATA/media/DATA/rdata The csv data is simply: aa, bb 2, 3 4, 5 What happens: ----------------------------...
2017 Sep 26
0
build a SpatialLines object from a list
...of the river lines position. > > Ashraf, cheers > > > On Monday, 25 September 2017, 16:56, Eric Berger <ericjberger at gmail.com> > wrote: > > > Hi Ashraf, > It is not obvious to me what your structures are but one problem in your > function is the assignment tt1 <- SpatialLines(list(tt[[i]])). > > This will set tt1 to just have one item. > > Consider the following > > test.func <- function(x) { > tt1 <- list() > for ( i in ... ) { > ... > tt1[[i]] <- SpatialLines(tt[[i]]) > } >...
2004 Nov 21
3
Help with ooplot(gplots) and error bars
Dear All I am trying to graph a proportion and CI95% by a factor with ooplot (any other better solution ?) It works well until I try to add the confidence interval. this is the error message and and a description of the data: > dat1 PointEst TT1 1 3.6 TT2 2 5.0 TT3 3 5.8 TT4 4 11.5 TT5 5 7.5 TT5 6 8.7 TT7 7 17.4 > dat2 Lower TT1 1 1.0 TT2 2 2.2 TT3 3 2.7 TT4 4 6.7 TT5 5 3.9 TT5 6 4.6 TT7 7 11.5 > dat3 Upper TT1 1 12.3 TT2 2 11.2 TT3 3 1...
2011 Mar 18
1
Problem with pam-auth and winbind
...debug auth sufficient pam_winbind.so #auth sufficient pam_unix.so likeauth nullok use_first_pass auth required pam_deny.so # when I try logon from my console: # telnet komp14 110 Trying 10.10.10.38... Connected to komp.xxx.xxx (10.10.10.38). Escape character is '^]'. +OK Dovecot ready. user tt1 +OK pass xxxxxxxxx -ERR Authentication failed. quit +OK Logging out Connection closed by foreign host. Of course password is corret becouse #wbinfo -K tt1 Enter tt1's password: plaintext kerberos password authentication for [tt1] succeeded (requesting cctype: FILE) credentials were put in: FIL...
2004 Nov 24
1
reshaping of data for barplot2
...) s <- sum(norm, na.rm=T) binconf(s, n) }, type='matrix') ) ie gtt fdiab norm.norm norm.norm2 norm.norm3 18 PL No 3.70370370 0.18997516 18.28346593 19 PL Yes 3.57142857 0.18319034 17.71219774 13 TT1 No 9.09090909 3.59221932 21.15923917 14 TT1 Yes 1.81818182 0.09326054 9.60577606 ... 10 HIGH No 26.53061224 16.21128213 40.26228897 11 HIGH Yes 10.00000000 4.66428345 20.14946472 I would like to reshape the data so that I can barplot2 treatments (gtt) with 2 beside bars for fdia...
2004 Dec 09
2
"sequence of factor settings"?
Hi, exist in any package a function which "work with sequences". Easy example 10 factors with 2 levels, are if i'm correct theoretical 2^10 "sequences" possible. But i have more than 2 levels and perhaps more than 10 factors and interested for the top10 "sequence's" with higehest freqs and wish to know which type of sequence it is. Many thanks for a
2008 Dec 05
2
xtable html links
...{ strr <- paste('<a href="', mat[i,5],'">', mat[i,4], '</a>', sep='') mat[i,4] <- strr } mat2 <- mat[,1:4] caption = 'test' mx <- xtable(mat2,caption=caption) tt = print(mx, type="html",include.rownames=F) tt1 <- gsub('lt /a','lt/a',tt,fixed=T) tt2 <- gsub('lt a','lta',tt1,fixed=T) write.table(tt2,'test.html',quote=F) However, if I open 'test.html' in IE, the hyperlinks don't seem to work. What am I doing wrong? thanks. [[alternative...
2011 Jan 30
4
Extract time only from POSIXlt object
How can I extract only the time component from an POSIXlt object? For example if I try the following it still returns both the date and time... >as.POSIXlt(tr.date[1]) [1] "2010-10-18 21:46:53" >as.POSIXlt(tr.date[1],"%H:%M:%S") [1] "2010-10-18 21:46:53" round and trunc don't help... is there an "as.Time" equivalent to as.Date ? Thanks,
2012 Jun 08
3
Resolution issue with exporting plots from R and write tables in Latex code for producing pdf document
...uot;){ Start= chron(StartDate,StartTime , format=c(dates="d/m/y", times="h:m:s")) End= chron(EndDate,EndTime , format=c(dates="d/m/y", times="h:m:s")) deltat <- times("00:10:00") TT <- seq(Start,End, by = times("00:10:00")) TT1 = substr(TT, 2, 18) Data1=Data for (i in 1:length(Data1)){ SumTab1[[i]]= matrix(NA, nrow=5, ncol=ncol(SortedDataInList[[i]])-4) SortedDataInList1[[i]]= matrix(NA, nrow=length(TT1), ncol=ncol(Data1[[i]])) SortedDataInList1[[i]]=Data1[[i]][match(as.character(TT1),as.character(Data1[[i]...
2017 Aug 19
2
bootstrap subject resampling: resampled subject codes surface as list/vector indices
...of a vector), what actually gets added to `sample.subjects` seems to be the index of that subject in `count.lookup`! When I select the first subject code and create a list consisting of just that subject code as the only element, everything is fine. > sample.subjects[1] = sample(unique(tt1$subj), 1, replace=TRUE, prob=NULL) > sample.subjects [[1]] [1] 5 I know this is the actual subject number because when I check the number of data points that this subject contributes in `count.lookup`, it is the number that corresponds to subject 5. > sample.size = as...
2016 Jul 04
2
cat() in proc.time?
...wch/r-source/blob/e5b21d0397c607883ff25cca379687b86933d730/src/library/base/R/time.R#L31 on.exit(cat("Timing stopped at:", ppt(proc.time() - time), "\n")) This means that as far as I can tell the general way to make sure there is no output from a timed statement is ... tt1 <- capture.output(tt0 <- suppressMessages(suppressWarnings( try(<stuff to try>, silent=TRUE)))) (I know I could/should be using tryCatch() instead of try(), but I don't think it really matters here ... ?) What would people think of a request t...
2002 Mar 19
0
RODC-Connection to more than one file
...ea name: ALLG ># DatBev.XLS -> area name: BEV ># Sheets: DatAllg.XLS -> ALLG ># DatBev.XLS -> BEV >channel <- odbcConnect("DatAllg") >tt1 <- sqlQuery(channel, "select b.REGCODE, a.NAME, b.JAHR, b.BEV_G from ALLG as a, `C:/Arbeit/Database/Daten.DatBev`.BEV as b where ((a.REGCODE = b.REGCODE) and (b.REGCODE>=5500000 and b.REGCODE<5700000)) order by b.REGCODE, b.JAHR") >odbcClose(channel) >print(tt1) If my co...
2018 Feb 03
2
find unique and summerize
Thank you so much Rui. 1. How do I export this table to excel file? I used this tbl1 <- table(Country, IDNum) tbl2=addmargins(tbl1) write.xlsx(tbl2,"tt1.xlsx"),sheetName="summary", row.names=FALSE) The above did not give me that table. 2. I want select those unique Ids that do have records in all countries. From the above data set, this ID "FIN1540166" should be excluded from the summary table and the table looks like...
2006 Feb 09
1
List Conversion
Hello, I have a list (mode and class are list) in R that is many elements long and of the form: >length(list) [1] 5778 >list[1:4] $ID1 [1] "num1" $ID2 [1] "num2" "num3" $ID3 [1] "num4" $ID4 [1] NA I'd like to convert the $ID2 value to be in one element rather than in two.?? It shows up as c(\"num2\", \"num3\") if I try to use
2017 Aug 19
0
bootstrap subject resampling: resampled subject codes surface as list/vector indices
...actually gets added to `sample.subjects` seems to be the index of that > subject in `count.lookup`! When I select the first subject code and create a > list consisting of just that subject code as the only element, everything is > fine. > > > sample.subjects[1] = sample(unique(tt1$subj), 1, replace=TRUE, > prob=NULL) > > sample.subjects > [[1]] > [1] 5 > > I know this is the actual subject number because when I check the number of > data points that this subject contributes in `count.lookup`, it is the > number that corresponds to subje...