[R] Correlation between package output

2016-04-11 Thread Fabio Monteiro
Hello

I'm currently using the dbFD function of the FD package and i'm having some
things that I can't do.

Is there any way to check the relations between dbFD indexes?

Function cor for example? I can't manage to put the informations correctly

dbFD function gives a lot of output (indexes - nbsp, sing.sp, FRic, FEve,
FDiv, FDis and RaoQ). I want to see the relationships between the dbFD
output (nbsp, sing.sp, FRic, FEve, FDiv, FDis and RaoQ)

How should I type it?

Thank you

Fábio

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] package FD

2016-03-24 Thread Fabio Monteiro
Hi again

Is there any way to check the relations between dbFD indexes?

Function cor for example? I can't manage to put the informations correctly

I want to see the relationships between the dbFD output (nbsp, sing.sp,
FRic, FEve, FDiv, FDis and RaoQ)

How should I type it?

Thank you

Fábio

2016-03-06 21:48 GMT+00:00 Jim Lemon :

> The values in a$x do look numeric. What do you get from:
>
> class(a$x)
>
> If the result is "factor", as it was for your ft$trait3 variable (and
> I hope that a$x is the same variable with a different name), then at
> least one of those values must have been read in as non-numeric. The
> possible reasons for this are many as Jeff noted and may be a
> non-printing character that has crept into your original data file. If
> your data set is as small as your example, I would start by loading
> the original data file into a hex editor and looking for a character
> that shouldn't be there. I once had to write a program in C that
> scanned very large files of customer data to find just such
> troublemakers and tell me where they were.
>
> Jim
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] package FD

2016-03-06 Thread Fabio Monteiro
Hey Jim

they are all numeric as you can see

as.numeric(as.character(a$x))
 [1]  20.0  50.0   7.9  25.0  20.0  20.0  15.0  30.0  48.0  75.0  75.0
 25.0 300.0
[14] 103.0  20.0  45.0  15.0  20.0  50.0   6.0  18.0  59.0  70.0  80.0
100.0  40.0
[27]  15.0  30.0  40.0  60.0   9.0  11.0  27.5  75.0  60.0  70.0  70.0
 60.0  20.0
[40]  21.0  50.0  35.0  46.0

Fábio

2016-03-05 9:38 GMT+00:00 Jim Lemon :

> Hi Fabio,
> What has probably happened is that ft$trait3 looks like numbers but
> when it was read in at least one value could not be read as a number.
> The default behavior in R is to transform the variable into a factor:
>
> testcase<-read.table(text="1 2 3 4
>  1 2 3 4
>  1 2 B 4")
> > testcase
>  V1 V2 V3 V4
> 1  1  2  3  4
> 2  1  2  3  4
> 3  1  2  B  4
> > sapply(testcase,class)
>   V1V2V3V4
> "integer" "integer"  "factor" "integer"
>
> So testcase$V3 was read in as a factor. There are a couple of things
> you can do. First, try to convert the factor to numeric and live with
> the NA values that will be generated:
>
> as.numeric(as.character(testcase$V3))
> [1]  3  3 NA
> Warning message:
> NAs introduced by coercion
>
> If the number of non0numeric values in the original data is small and
> you can find them:
>
> testcase$V3[3]<-3
> as.numeric(as.character(testcase$V3))
> [1] 3 3 3
>
> correct the original data and read it in again. I don't really know
> enough to answer your second question.
>
> JIm
>
>
> On Sat, Mar 5, 2016 at 2:58 AM, Fabio Monteiro
>  wrote:
> > I still have another question. apart from that one
> >
> > in the dbFD function in FD package there is one option which is if FRic
> > should be standardized or not. What does that mean? Why should our
> shouldn't
> > I have the FRic Standardized?
> >
> > Thank you Jim
> >
> > 2016-03-04 14:52 GMT+00:00 Fabio Monteiro  >:
> >>
> >> class(ft$trait3)
> >> [1] "factor
> >>
> >>
> >> Yes is a factor. And now?
> >>
> >> Thank you
> >>
> >> Kind Regards
> >> Fábio
> >>
> >> 2016-03-04 7:15 GMT+00:00 Jim Lemon :
> >>>
> >>> Hi Fabio,
> >>> You should write:
> >>>
> >>> class(...)
> >>>
> >>> where ... is the same as what you would type to have the variable
> >>> displayed on the console. Looking at your earlier message, it might
> >>> be:
> >>>
> >>> x$trait3
> >>>
> >>> so try:
> >>>
> >>> class(x$trait3)
> >>>
> >>> Jim
> >>>
> >>>
> >>> On Fri, Mar 4, 2016 at 11:30 AM, Fabio Monteiro
> >>>  wrote:
> >>> > i just called trait3 to my variable.
> >>> >
> >>> > Is this what i'm suppose to wright? class(trait3), or class
> >>> > (my_trait3_variable?
> >>> >
> >>> > both give error
> >>> >
> >>> > 2016-03-03 23:42 GMT+00:00 Jim Lemon :
> >>> >>
> >>> >> Hi Fabio,
> >>> >> It is possible that your remaining "numeric" variable is a factor.
> >>> >> What
> >>> >> does:
> >>> >>
> >>> >> class(my_numeric_variable)
> >>> >>
> >>> >> say? (where you substitute the name of your "numeric" variable)
> >>> >>
> >>> >> Jim
> >>> >>
> >>> >>
> >>> >> On Fri, Mar 4, 2016 at 2:25 AM, Fabio Monteiro
> >>> >>  wrote:
> >>> >> > Hello, my name is Fábio and I'm a Marine Ecology student in
> >>> >> > Portugal.
> >>> >> >
> >>> >> > I'm currently using the FD package for my work and yesterday one
> >>> >> > message
> >>> >> > appeared that I wasn't expecting and I really need your help to
> try
> >>> >> > to
> >>> >> > figure out what's happening.
> >>> >> > I'm using the dbFD function and the following message appeared:
> >>> >> >
> >>> >> > FRic: Only categorical and/or ordinal trait(s) present in 'x'.
> FRic
> >>> >> > was
> >>> >> >  measured as the number of unique trait combinations, NOT as the
> &g

Re: [R] package FD

2016-03-03 Thread Fabio Monteiro
i just called trait3 to my variable.

Is this what i'm suppose to wright? class(trait3), or class
(my_trait3_variable?

both give error

2016-03-03 23:42 GMT+00:00 Jim Lemon :

> Hi Fabio,
> It is possible that your remaining "numeric" variable is a factor. What
> does:
>
> class(my_numeric_variable)
>
> say? (where you substitute the name of your "numeric" variable)
>
> Jim
>
>
> On Fri, Mar 4, 2016 at 2:25 AM, Fabio Monteiro
>  wrote:
> > Hello, my name is Fábio and I'm a Marine Ecology student in Portugal.
> >
> > I'm currently using the FD package for my work and yesterday one message
> > appeared that I wasn't expecting and I really need your help to try to
> > figure out what's happening.
> > I'm using the dbFD function and the following message appeared:
> >
> > FRic: Only categorical and/or ordinal trait(s) present in 'x'. FRic was
> >  measured as the number of unique trait combinations, NOT as the convex
> > hull volume.
> > FDiv: Cannot be computed when only categorical and/or ordinal trait(s)
> > present in 'x'.
> >
> > My data:
> > x is a matrix with species vs functional traits
> > a is a matrix with species vs sampling (in abundances)
> >
> > Previously I used the dbFD function and was working just fine. Yesterday
> I
> > removed 2 traits and this message appeared.
> >
> > My traits now are 3 categorical traits and 1 numeric. The 2 trais that I
> > removed were numeric traits as well. I really need to remove those trait,
> > but I still need the FDiv to be calculated. Can you explain to me why is
> > this error occurring? I need to know how the dbFD is measuring the
> indexes
> > so I can understanding the error and if I can or can't continue to use
> this
> > package (if it applies or not to my goals)
> >
> > Kind regards
> >
> > Fábio Monteiro
> >
> > [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] package FD

2016-03-03 Thread Fabio Monteiro
Hello, my name is Fábio and I'm a Marine Ecology student in Portugal.

I'm currently using the FD package for my work and yesterday one message
appeared that I wasn't expecting and I really need your help to try to
figure out what's happening.
I'm using the dbFD function and the following message appeared:

FRic: Only categorical and/or ordinal trait(s) present in 'x'. FRic was
 measured as the number of unique trait combinations, NOT as the convex
hull volume.
FDiv: Cannot be computed when only categorical and/or ordinal trait(s)
present in 'x'.

My data:
x is a matrix with species vs functional traits
a is a matrix with species vs sampling (in abundances)

Previously I used the dbFD function and was working just fine. Yesterday I
removed 2 traits and this message appeared.

My traits now are 3 categorical traits and 1 numeric. The 2 trais that I
removed were numeric traits as well. I really need to remove those trait,
but I still need the FDiv to be calculated. Can you explain to me why is
this error occurring? I need to know how the dbFD is measuring the indexes
so I can understanding the error and if I can or can't continue to use this
package (if it applies or not to my goals)

Kind regards

Fábio Monteiro

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] Scaling x axis

2016-02-25 Thread Fabio Monteiro
Hi

i'm trying to plot my data in R and i can't manage to scale the x axis.

My x axis are dates, months and years, and when I plot I only have the x
axis like this (2002, 2004, 2006, 2008, 2010).

I whant every date in the axis not only those years, i want to see every
point with the respectively date in the axis.

How can I do that?

Kind regards

Fábio monteiro

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] FD package

2016-02-22 Thread Fabio Monteiro
Im sorry for everything.

I didnt mean to make you loose your time, its just im really new at r and
i'm still trying to understand some things. plus my english is not great :/

I'm really sorry.

My problem is solved, thank you for your help.

Kind regards

Fábio Monteiro

2016-02-22 19:54 GMT+00:00 Jeff Newmiller :

> "data" is the name of a function in base R. It is not a good idea to use
> that as the name of an actual data object (to which the "$" operator is
> being applied here). It is not clear from what you have provided what
> variable names you are working with... you are not communicating yet using
> reproducible examples, so you are depending on our psychic powers to fill
> in the gaps, which is not likely to work reliably. I suspect that Stephen
> used the generic term "data" since he did not know what variable name you
> were actually using.
>
>
> http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
>
>
> On Mon, 22 Feb 2016, Fabio Monteiro wrote:
>
> hist(data$FRic)
>>>
>> Error in data$FRic : object of type 'closure' is not subsettable
>>
>> 2016-02-22 14:10 GMT+00:00 stephen sefick :
>>
>> Please see ?dput. What you provided is not a minimal, reproducible example
>>> (i.e., there is no R code).
>>>
>>> What kind of plot are you trying to plot? hist(data$FRic) will plot your
>>> data. I guess we need more information to be helpful.
>>>
>>>
>>> On Mon, Feb 22, 2016 at 8:03 AM, Fabio Monteiro <
>>> fabio.monteiro1...@gmail.com> wrote:
>>>
>>> This is the output.
>>>>
>>>> I want to plot, for example FRic
>>>>
>>>> $nbsp
>>>>  com1  com2  com3  com4  com5  com6  com7  com8  com9 com10 com11 com12
>>>> com13 com14 com15 com16
>>>>172118121520161218151816
>>>>  10111720
>>>> com17 com18 com19 com20 com21 com22 com23 com24 com25 com26 com27 com28
>>>> com29 com30 com31 com32
>>>> 91311101115121618181119
>>>>  12131312
>>>> com33 com34 com35 com36 com37 com38 com39 com40 com41 com42 com43 com44
>>>> com45 com46 com47 com48
>>>>151115 8 71210 912151313
>>>>  15131016
>>>> com49 com50 com51 com52 com53 com54 com55 com56 com57 com58 com59 com60
>>>> com61 com62 com63 com64
>>>>141214131413151311121613
>>>>   9 81115
>>>> com65 com66 com67 com68 com69 com70 com71 com72 com73 com74 com75 com76
>>>> com77 com78 com79 com80
>>>>131813151011121114 81012
>>>>  11121413
>>>> com81 com82
>>>> 912
>>>>
>>>> $sing.sp
>>>>  com1  com2  com3  com4  com5  com6  com7  com8  com9 com10 com11 com12
>>>> com13 com14 com15 com16
>>>>172118121520161218151816
>>>>  10111720
>>>> com17 com18 com19 com20 com21 com22 com23 com24 com25 com26 com27 com28
>>>> com29 com30 com31 com32
>>>> 91311101115121618181119
>>>>  12131312
>>>> com33 com34 com35 com36 com37 com38 com39 com40 com41 com42 com43 com44
>>>> com45 com46 com47 com48
>>>>141115 8 71210 912151313
>>>>  15131016
>>>> com49 com50 com51 com52 com53 com54 com55 com56 com57 com58 com59 com60
>>>> com61 com62 com63 com64
>>>>141213131413151311121613
>>>>   9 81115
>>>> com65 com66 com67 com68 com69 com70 com71 com72 com73 com74 com75 com76
>>>> com77 com78 com79 com80
>>>>131713151011121114 81012
>>>>  11121413
>>>> com81 com82
>>>> 912
>>>>
>>>> $FRic
>>>> com1 com2 com3 com4 com5
>>>> com6 com7
>>>> 3.669752e-04 6.898164e-04 6.893918e-04 3.935451e-05 1.436140e-04
>>>> 1.012949e-03 2.934536e-04
>>>> com8 com9com10com11com12
>>&g

Re: [R] FD package

2016-02-22 Thread Fabio Monteiro
> hist(data$FRic)
Error in data$FRic : object of type 'closure' is not subsettable

2016-02-22 14:10 GMT+00:00 stephen sefick :

> Please see ?dput. What you provided is not a minimal, reproducible example
> (i.e., there is no R code).
>
> What kind of plot are you trying to plot? hist(data$FRic) will plot your
> data. I guess we need more information to be helpful.
>
>
> On Mon, Feb 22, 2016 at 8:03 AM, Fabio Monteiro <
> fabio.monteiro1...@gmail.com> wrote:
>
>> This is the output.
>>
>> I want to plot, for example FRic
>>
>> $nbsp
>>  com1  com2  com3  com4  com5  com6  com7  com8  com9 com10 com11 com12
>> com13 com14 com15 com16
>>172118121520161218151816
>>  10111720
>> com17 com18 com19 com20 com21 com22 com23 com24 com25 com26 com27 com28
>> com29 com30 com31 com32
>> 91311101115121618181119
>>  12131312
>> com33 com34 com35 com36 com37 com38 com39 com40 com41 com42 com43 com44
>> com45 com46 com47 com48
>>151115 8 71210 912151313
>>  15131016
>> com49 com50 com51 com52 com53 com54 com55 com56 com57 com58 com59 com60
>> com61 com62 com63 com64
>>141214131413151311121613
>>   9 81115
>> com65 com66 com67 com68 com69 com70 com71 com72 com73 com74 com75 com76
>> com77 com78 com79 com80
>>131813151011121114 81012
>>  11121413
>> com81 com82
>> 912
>>
>> $sing.sp
>>  com1  com2  com3  com4  com5  com6  com7  com8  com9 com10 com11 com12
>> com13 com14 com15 com16
>>172118121520161218151816
>>  10111720
>> com17 com18 com19 com20 com21 com22 com23 com24 com25 com26 com27 com28
>> com29 com30 com31 com32
>> 91311101115121618181119
>>  12131312
>> com33 com34 com35 com36 com37 com38 com39 com40 com41 com42 com43 com44
>> com45 com46 com47 com48
>>141115 8 71210 912151313
>>  15131016
>> com49 com50 com51 com52 com53 com54 com55 com56 com57 com58 com59 com60
>> com61 com62 com63 com64
>>141213131413151311121613
>>   9 81115
>> com65 com66 com67 com68 com69 com70 com71 com72 com73 com74 com75 com76
>> com77 com78 com79 com80
>>131713151011121114 81012
>>  11121413
>> com81 com82
>> 912
>>
>> $FRic
>> com1 com2 com3 com4 com5
>> com6 com7
>> 3.669752e-04 6.898164e-04 6.893918e-04 3.935451e-05 1.436140e-04
>> 1.012949e-03 2.934536e-04
>> com8 com9com10com11com12
>>  com13com14
>> 1.001556e-04 6.425547e-04 1.740235e-04 5.561802e-04 2.964362e-04
>> 1.480860e-05 1.060512e-04
>>com15com16com17com18com19
>>  com20com21
>> 4.121157e-04 5.346433e-04 1.108007e-06 5.726895e-05 8.593435e-06
>> 1.452446e-05 1.855957e-05
>>com22com23com24com25com26
>>  com27com28
>> 2.128971e-04 8.438329e-05 3.216279e-04 2.529525e-04 4.980317e-04
>> 3.111325e-05 6.290088e-04
>>com29com30com31com32com33
>>  com34com35
>> 3.559802e-05 5.907167e-05 8.906878e-05 2.510168e-05 1.929088e-04
>> 1.234508e-04 2.784301e-04
>>com36com37com38com39com40
>>  com41com42
>> 1.480560e-08 1.411752e-06 5.576549e-05 2.445569e-05 6.167242e-06
>> 1.210002e-04 1.666034e-04
>>com43com44com45com46com47
>>  com48com49
>> 1.203484e-04 7.347513e-05 8.991003e-05 8.691148e-05 6.718789e-05
>> 1.357136e-04 1.821851e-04
>>com50com51com52com53com54
>>  com55com56
>> 4.832203e-05 8.391627e-05 2.173971e-04 1.355160e-04 1.304425e-04
>> 1.787888e-04 1.759204e-05
>>com57com58com59com60com61
>>  com62com63
>> 9.307474e-05 1.185857e-04 2.776166e-04 1.277143e-04 5.905299e-06
>> 9.606009e-08 1.019480e-04
>>com64com65com66com67  

Re: [R] FD package

2016-02-22 Thread Fabio Monteiro
, brackish, freshwater  3.309663 Invertebrate Feeder
 Browser
com48 Demersal Marine, brackish, freshwater  3.372207 Invertebrate Feeder
 Browser
com49  Benthic Marine, brackish, freshwater  3.332736 Invertebrate Feeder
 Browser
com50  Benthic Marine, brackish, freshwater  3.311616 Invertebrate Feeder
 Browser
com51 Demersal Marine, brackish, freshwater  3.319775 Invertebrate Feeder
 Browser
com52 Demersal Marine, brackish, freshwater  3.277058 Invertebrate Feeder
 Browser
com53 Demersal Marine, brackish, freshwater  3.354429 Invertebrate Feeder
 Browser
com54 Demersal Marine, brackish, freshwater  3.339532 Invertebrate Feeder
 Browser
com55 Demersal Marine, brackish, freshwater  3.357153 Invertebrate Feeder
 Browser
com56  Benthic Marine, brackish, freshwater  3.279952 Invertebrate Feeder
 Browser
com57  Benthic  Marine, brackish 3.126602 Invertebrate Feeder
 Browser
com58  Benthic  Marine, brackish 3.217454 Invertebrate Feeder
 Browser
com59 Demersal  Marine, brackish 3.307770 Invertebrate Feeder
 Browser
com60 Demersal  Marine, brackish 3.252970 Invertebrate Feeder
 Browser
com61 Demersal Marine, brackish, freshwater  3.404601 Invertebrate Feeder
 Browser
com62  Pelagic Marine, brackish, freshwater  2.806229 Invertebrate Feeder
 Browser
com63 Demersal Marine, brackish, freshwater  3.287427 Invertebrate Feeder
 Browser
com64 Demersal Marine, brackish, freshwater  3.292238 Invertebrate Feeder
 Browser
com65 Demersal  Marine, brackish 3.265497 Invertebrate Feeder
 Browser
com66 Demersal Marine, brackish, freshwater  3.317879 Invertebrate Feeder
 Browser
com67 Demersal  Marine, brackish 3.258586 Invertebrate Feeder
 Browser
com68 Demersal Marine, brackish, freshwater  3.203772 Invertebrate Feeder
 Browser
com69 Demersal Marine, brackish, freshwater  3.289830 Invertebrate Feeder
 Browser
com70 Demersal  Marine, brackish 3.326195 Invertebrate Feeder
 Browser
com71  Benthic Marine, brackish, freshwater  3.325590 Invertebrate Feeder
 Browser
com72  Benthic Marine, brackish, freshwater  3.297994 Invertebrate Feeder
 Browser
com73 Demersal Marine, brackish, freshwater  3.331968 Invertebrate Feeder
 Browser
com74 Demersal Marine, brackish, freshwater  3.395514 Invertebrate Feeder
 Browser
com75 Demersal Marine, brackish, freshwater  3.323936 Invertebrate Feeder
 Browser
com76 Demersal Marine, brackish, freshwater  3.201015 Invertebrate Feeder
 Browser
com77 Demersal Marine, brackish, freshwater  3.280311 Invertebrate Feeder
 Browser
com78 Demersal Marine, brackish, freshwater  3.318771 Invertebrate Feeder
 Browser
com79 Demersal Marine, brackish, freshwater  3.318253 Invertebrate Feeder
 Browser
com80 Demersal Marine, brackish, freshwater  3.374939 Invertebrate Feeder
 Browser
com81 Demersal Marine, brackish, freshwater  3.440927 Invertebrate Feeder
 Browser
com82 Demersal Marine, brackish, freshwater  3.381153 Invertebrate Feeder
 Browser
 trait6
com1  0.5 - 1.0
com2  1.0 - 2.0
com3  1.0 - 2.0
com4  1.0 - 2.0
com5  1.0 - 2.0
com6  1.0 - 2.0
com7  1.0 - 2.0
com8  1.0 - 2.0
com9  0.5 - 1.0
com10 1.0 - 2.0
com11 1.0 - 2.0
com12 1.0 - 2.0
com13 0.5 - 1.0
com14 0.5 - 1.0
com15 0.5 - 1.0
com16 0.5 - 1.0
com17 1.0 - 2.0
com18 0.5 - 1.0
com19 0.5 - 1.0
com20 0.5 - 1.0
com21 0.5 - 1.0
com22 0.5 - 1.0
com23 1.0 - 2.0
com24 1.0 - 2.0
com25 1.0 - 2.0
com26 1.0 - 2.0
com27 1.0 - 2.0
com28 0.5 - 1.0
com29 0.5 - 1.0
com30 0.5 - 1.0
com31 0.5 - 1.0
com32 0.5 - 1.0
com33 0.5 - 1.0
com34 1.0 - 2.0
com35 0.5 - 1.0
com36 0.5 - 1.0
com37 1.0 - 2.0
com38 0.5 - 1.0
com39 0.5 - 1.0
com40 0.5 - 1.0
com41 0.5 - 1.0
com42 1.0 - 2.0
com43 1.0 - 2.0
com44 1.0 - 2.0
com45 < 0.5
com46 < 0.5
com47 < 0.5
com48 < 0.5
com49 < 0.5
com50 < 0.5
com51 < 0.5
com52 0.5 - 1.0
com53 0.5 - 1.0
com54 < 0.5
com55 < 0.5
com56 < 0.5
com57 < 0.5
com58 < 0.5
com59 0.5 - 1.0
com60 0.5 - 1.0
com61 1.0 - 2.0
com62 1.0 - 2.0
com63 0.5 - 1.0
com64 0.5 - 1.0
com65 0.5 - 1.0
com66 0.5 - 1.0
com67 0.5 - 1.0
com68 0.5 - 1.0
com69 0.5 - 1.0
com70 0.5 - 1.0
com71 < 0.5
com72 < 0.5
com73 < 0.5
com74 1.0 - 2.0
com75 0.5 - 1.0
com76 0.5 - 1.0
com77 1.0 - 2.0
com78 0.5 - 1.0
com79 0.5 - 1.0
com80 1.0 - 2.0
com81 1.0 - 2.0
com82 1.0 - 2.0

2016-02-22 13:58 GMT+00:00 stephen sefick :

> If memory serves me, dbFD returns a lot of output. What do you want to
> plot? Also, please provide reproducible examples, so that we can help you
> solve your R related queries.
> kindest regards,
>
> Stephen
>
> On Mon, Feb 22, 2016 at 7:00 AM, Fabio Monteiro <
> fabio.monteiro1...@gmail.com> wrote:
>
>> Hi
>>
>> thank you for your quick answer
>>
>> I finally managed to insert everything correctl

Re: [R] FD package

2016-02-22 Thread Fabio Monteiro
Hi

thank you for your quick answer

I finally managed to insert everything correctly and dbFD is caltulated.

I'm now trying to plot the results.

My objects are matrices.

x is a functional trait and species matrice. a is the species and samples

Thank you

2016-02-22 12:19 GMT+00:00 PIKAL Petr :

> Hi
>
> comments inline
>
> > -Original Message-
> > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Fabio
> > Monteiro
> > Sent: Monday, February 22, 2016 11:51 AM
> > To: r-help@r-project.org
> > Subject: [R] FD package
> >
> > Hi.
> >
> > First i would like to say that i'm really new in R. I recently started
> > working with R and i'm using the FD package.
> >
> > I'm having some errors that doesn't make any sense.
> >
> > I have 2 matrix, one is the species with functional traits and the
> > second one is the species and abundances.
>
> Your objects are matrices or data frames? From docs dbFD expects various
> inputs byt they have to be properly formatted.
>
> >
> > When I try to run the dbFD to calculate the functional diversity, the
> > error is the number of species is different in x and a.
> >
> > I checked a lot of times and the number of species is the same and
> > there are no mistakes in their names like spaces or caps.
>
> How did you checked?
>
> dim(trait) and  dim(abund)
>
> shall give you the same number of rows in traits as columns in abund.
>
> If trait is vector, you need to use length instead of dim.
>
> >
> > Can you help me?
>
> Without better description of your objects and code you used you hardly
> get any answer. You can start by using examples from help page, which shall
> work and see how your data differ from those examples.
>
> Cheers
> Petr
>
>
> >
> > Fábio Monteiro
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-
> > guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> 
> Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou
> určeny pouze jeho adresátům.
> Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě
> neprodleně jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie
> vymažte ze svého systému.
> Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email
> jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
> Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi
> či zpožděním přenosu e-mailu.
>
> V případě, že je tento e-mail součástí obchodního jednání:
> - vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření
> smlouvy, a to z jakéhokoliv důvodu i bez uvedení důvodu.
> - a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout;
> Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany
> příjemce s dodatkem či odchylkou.
> - trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve
> výslovným dosažením shody na všech jejích náležitostech.
> - odesílatel tohoto emailu informuje, že není oprávněn uzavírat za
> společnost žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn
> nebo písemně pověřen a takové pověření nebo plná moc byly adresátovi tohoto
> emailu případně osobě, kterou adresát zastupuje, předloženy nebo jejich
> existence je adresátovi či osobě jím zastoupené známá.
>
> This e-mail and any documents attached to it may be confidential and are
> intended only for its intended recipients.
> If you received this e-mail by mistake, please immediately inform its
> sender. Delete the contents of this e-mail with all attachments and its
> copies from your system.
> If you are not the intended recipient of this e-mail, you are not
> authorized to use, disseminate, copy or disclose this e-mail in any manner.
> The sender of this e-mail shall not be liable for any possible damage
> caused by modifications of the e-mail or by delay with transfer of the
> email.
>
> In case that this e-mail forms part of business dealings:
> - the sender reserves the right to end negotiations about entering into a
> contract in any time, for any reason, and without stating any reasoning.
> - if the e-mail contains an offer, the recipient is entitled to
> immediately accept such offer; The sender of this e-mail (offer) excludes
> any acceptance of the offer on the part of the recip

[R] FD package

2016-02-22 Thread Fabio Monteiro
Hi.

First i would like to say that i'm really new in R. I recently started
working with R and i'm using the FD package.

I'm having some errors that doesn't make any sense.

I have 2 matrix, one is the species with functional traits and the second
one is the species and abundances.

When I try to run the dbFD to calculate the functional diversity, the error
is the number of species is different in x and a.

I checked a lot of times and the number of species is the same and there
are no mistakes in their names like spaces or caps.

Can you help me?

Fábio Monteiro

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.