search for: tord

Displaying 20 results from an estimated 54 matches for "tord".

Did you mean: told
2003 May 22
7
extract half a matrix
...g problem among earlier help mails or in An introd to R, I guess because the question is really basic. I want to extract all above the diagonal, i.e. from 1 2 3 4 1 0 26 49 49 2 26 0 44 40 3 49 44 0 21 4 49 40 21 0 I want 26 49 44 49 40 21 Thanks in advance! Sincerely, Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 18...
2007 Mar 19
5
order of values in vector
...ut success. Here is an example of a try x= c(20,30,50,40,60,10) cbind(sort.list(x),x) x [1,] 6 20 [2,] 1 30 [3,] 2 50 [4,] 4 40 [5,] 3 60 [6,] 5 10 but I was hoping to get this: x [1,] 2 20 [2,] 3 30 [3,] 5 50 [4,] 4 40 [5,] 6 60 [6,] 1 10 I'm most grateful for a tip! cheers, Tord -- Tord Sn?ll Department of Ecology Swedish University of Agricultural Sciences (SLU) P.O. 7002, SE-750 07 Uppsala, Sweden Office/Mobile/Fax +46-18-672612/+46-730-891356/+46-18-673537 E-mail: tord.snall at nvb.slu.se www.nvb.slu.se/staff_tordsnall
2003 Dec 07
2
par(las = 1) not possible in polymap(), library(splancs)?
...nicer: Does polymap in the splancs library not allow horizontal plotting of y-labels? I have tried polymap(studyarea, xlab = "x (m)", ylab = "y (m)", las = 1) but it doesn't change the labels? Mayby some function in library(spatstat) support las? Thanks! Sincerely, Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 1...
2003 Jan 22
3
Error when using polr() in MASS
...her approach. And I also have a similar data set where only the skugg classes 2 and 3 are observed. Would you recommend glm, family= binomial for that analysis? I use R 1.6.2, MASS 7.0-10, Win 2000. Thanks in advance! Please reply also to me because I'm on the once a day-list Sincerely, Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 18...
2003 Feb 05
1
simplify a data frame
...1 S.13 S.13.2 S.13.2.2 S.13 S.13.2 S.13.2.3 S.13 S.13.3 S.13.3.6 S.13 S.13.3 S.13.3.7 S.13 S.13.3 S.13.3.8 S.13 S.13.3 S.13.3.9 so that the results look likte this: ObjektID BalteNummer S.13 S.13.1 S.13 S.13.2 S.13 S.13.3 There are in fact many ObjektID. Thanks in advance! Sincerely Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 18...
2003 Nov 23
4
remove 0 rows from a data frame
...2<- temp > temp2 occ x y dbh age 801 0 2977.196 3090.225 6 36.0 802 0 2951.892 3083.769 8 40.6 803 0 2919.111 3075.557 8 40.6 804 0 2914.123 3072.700 9 42.9 805 0 2925.353 3074.675 8 40.6 Could someone help whith that? Thanks in advance! Sincerely, Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46...
2003 Jul 21
2
bold AND italic as font in text()
Dear all, Is it possible to somshow plot text as italic AND bold. I tried font=c(2,3) in text(), but it doesn't work. It seems like the latter value is used. Thanks in advance! Sincerely, Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46...
2002 Jan 04
4
line up a matrix
...h I would like to look like this: t(c("a", "b", "c", "d","e", "f", "g", "h","i", "j", "k", "l")) Is there any R function for available for that? Thanks in advance! Sincerely, Tord Sn?ll ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (in...
2006 Dec 27
3
counties in different colours using map()
...an R. Wilks, "Maps in S", AT&T Bell Laboratories Statistics Research Report [93.2], 1993. http://public.research.att.com/areas/stat/doc/93.2.ps I also wonder whether the county names are available in the database used by map(), and, if yes, how to extract or utilize them. Thanks! Tord -- Tord Sn?ll Department of Conservation Biology Swedish University of Agricultural Sciences (SLU) P.O. 7002, SE-750 07 Uppsala, Sweden Office/Mobile/Fax +46-18-672612/+46-730-891356/+46-18-673537 E-mail: tord.snall at nvb.slu.se www.nvb.slu.se/staff_tordsnall
2003 Oct 08
2
binomial glm warnings revisited
...nfint() also 'reliable'? It gives the same warning. Waiting for profiling to be done... 2.5 % 97.5 % (Intercept) -6.503472 -0.77470556 abund -1.962549 -0.07496205 There were 20 warnings (use warnings() to see them) Thanks in advance for your reply. Sincerely, Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46...
2003 Oct 20
4
warning from return() in 1.8 but not in 1.7.0 (PR#4687)
...atus major 1 minor 7.0 year 2003 month 04 day 16 language R Win XP I have read CHANGES and can't find changes about return(). Thanks for letting me know what can be wrong. Sincerely, Tord ----------------------------------------------------------------------- Tord Snäll Avd. f växtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villavägen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 18...
2003 Jul 31
2
how as.numeric() !-> factor
...Np.occup97.98 1 erken97 0.34 2 erken98 0.33 3 rormyran 0.48 4 valkror 0.29 However, I would like to do this rounding later. Could someone give a tip. I think that I would have been helped by a sentence in help(as.numeric). Thanks in advance. Sincerely, Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46...
2003 Jan 10
0
Thanks: Re: count levels per factor level
Dear Lockwood, As you can see, I'm a beginner... But thank you very much! Sincerely, Tord Quoting "J.R. Lockwood" <lockwood at rand.org>: > how about > > buskartant$buskartant <- sapply( group.list, function(x) > sum(!is.na(unique(x))) ) > > OR > > buskartant$buskartant <- sapply( group.list, function(x) > length(unique(x[!is.na(x)])...
2005 Sep 19
4
factor as seq() in for loop
...nned to transform cols using as.integer(cols). However, this transformation gives a vector corresponding to seq(from=1,to=length(cols)). Could someone please give advice on how to make use of a factor as the seq in a for loop (which is strictly not allowed' according to ?Control). Thanks! Tord
2003 Jan 02
1
replace NA with factor class
...but I want to set them to be spruce. For some reason the tree species names on the remaining (non-NA) rows are changed into numbers (that I do not recognise). I guess that ifelse is not the correct function to use, but I have not found any better one in my searches. Thanks in advance! Sincerely, Tord > test ObjektID tree.sp Diameter 2030 S.2001.S5 <NA> 2 2034 S.2001.S5 <NA> 2 1 S.1 spruce 2 2 S.1 birch 12 3 S.1 spruce 7 4 S.1 spruce 5 5 S.1 birch 8 > test$tree.sp6...
2003 Jan 02
1
aggregate: "sum" not meaningful for factors
Dear all, I try to summarise my data per category using aggregate, but for some reason I get the error message "sum" not meaningful for factors even though my vector is numeric. The data set is shown below. Could someone please give a hint. Thanks in advance! Sincerely, Tord > names(test) [1] "ObjektID" "tallstubbyta" > is.factor(test$ObjektID); is.factor(test$tallstubbyta) [1] TRUE [1] FALSE > is.numeric(test$ObjektID); is.numeric(test$tallstubbyta) [1] FALSE [1] TRUE > mean(test$tallstubbyta) [1] 0.01142584 > aggregate(test...
2001 May 27
2
library for mixed GLM?
...as I understand it, one cannot choose between different links and distributions in the functions provided there. I have so far managed very well with R (and of course given him my R code ;-) ) but now I am stuck. Could someone please point me at a suitable library. Thanks in advance! Sincerely, Tord Sn?ll ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int...
2009 Oct 23
3
opposite estimates from zeroinfl() and hurdle()
...1.7510 7.6525 -2.842 0.00448 ** diam 1.1437 0.3941 2.902 0.00371 ** --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 Number of iterations in BFGS optimization: 8 Log-likelihood: -582.8 on 3 Df Why is this so? thanks, Tord Windows NT, R 2.8.1, pcsl 1.03
2000 Jun 22
1
NAs introduced when changing data type
Hi all, I am trying to change data type in the Data Editor but when I do, all numbers in the column changes to NA and back in the Console I get the warning message "NAs introduced by coercion". What's wrong? The table consists of 95 columns and 470 rows. Tord ----------------------------------------------------------------------- ******New e-mail address: Tord.Snall at ebc.uu.se******* Tord Sn?ll, PhD student Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Vi...
2000 Dec 10
1
basic plot() question
...lot.formula(np.bark$fitted.values~ Valkror$bark) The above looks nice but I want to connect the points with a line so I try: plot.formula(np.bark$fitted.values~ Valkror$bark, type="b") but it gives a somewhat! unexpected figure. :( Could someone please give a clue.... Sincerely, Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 18...