[R] How to apply a function to every element of a dataframe, when the function uses for each colummn and row different values to calculate with?

2013-08-20 Thread Jacqueline Oehri
Dear R users I have a question concerning applying a function to each element of a dataframe: 1) --> I have a dataframe like this: "d": (columnames: names of Landcovertypes, rownames: coordinates, nr: rowsums, nc:colummnsums) (look at the end of the mail for the structure of d, dput(d) ) here,

Re: [R] Fwd: Questions about working with a dataframe

2013-06-27 Thread Jacqueline Oehri
Dear Mr. Kane Thank you very much for your recommendations!!! And I apologise for all circumstances!! I will do so as you said in the future! Have a nice day, Best wishes Jacqueline   Gesendet: Mittwoch, 26. Juni 2013 um 17:34 Uhr Von: "John Kane" An: "Jacqueline Oehri"

[R] 2nd question about adding an additional variable along certain criteria in a dataframe

2013-06-26 Thread Jacqueline Oehri
Hello everybody, I have a question concerning the work with my dataframe and i hope some of you can help me out: I have A data frame called "WWA" that looks like the "testframe" underneath: Additionally, i have a testvector, containing coordinate IDs: testvector <-c("503146","551154","557154")