Forum: help
Monitor Forum | | RE: soiltexture - transformation [ Reply ] By: Julien Moeys on 2012-07-13 11:48 | [forum:7181] |
| you are welcome :o) | |
| RE: soiltexture - transformation [ Reply ] By: Daniela S on 2012-07-12 16:28 | [forum:7179] |
|
Wow, thanks for this very fast answer und for this package - it is great and it worked. Thanks a lot |
|
| RE: soiltexture - transformation [ Reply ] By: Julien Moeys on 2012-07-12 16:20 | [forum:7131] |
|
Hi Daniela You just forgot 2 commas at the end of the line to separate the arguments in TT.text.transf() here is the correct code (works for me) ### library( "soiltexture" ) USATex <- data.frame( "CLAY" = c(38.77,41.85,39.35,38.95,45.58,44.76), "SILT" = c(3.48,3.4,4.18,5.32,1.89,1.35), "SAND" = c(57.75,54.75,56.46,55.72,52.53,53.89), stringsAsFactors = TRUE) # #Classify according to the USDA classification classif <- TT.points.in.classes( tri.data = USATex, class.sys = "USDA.TT") #transform silt-sand-boundary from 50 mikrom to 63 GerTex <- TT.text.transf( tri.data = USATex, # comma base.css.ps.lim = c(0,2,63,2000), # comma dat.css.ps.lim = c(0,2,50,2000)) ### With bests Julien |
|
| soiltexture - transformation [ Reply ] By: Daniela S on 2012-07-12 15:31 | [forum:7130] |
|
Hi, I am working on my master thesis and have to convert the results from a grain size analysis from the USDA-system to the German-system (DE.BK94.TT). What i did: library( "soiltexture" ) USATex <- data.frame( "CLAY" = c(38.77,41.85,39.35,38.95,45.58,44.76), "SILT" = c(3.48,3.4,4.18,5.32,1.89,1.35), "SAND" = c(57.75,54.75,56.46,55.72,52.53,53.89), stringsAsFactors = TRUE) # #Classify according to the USDA classification classif <- TT.points.in.classes( tri.data = USATex, class.sys = "USDA.TT") #transform silt-sand-boundary from 50 mikrom to 63 GerTex <- TT.text.transf( tri.data = USATex base.css.ps.lim = c(0,2,63,2000) dat.css.ps.lim = c(0,2,50,2000)) Up to the last step everything worked, but now R says: Error: unexpected symbol in: " tri.data = USATex[1:4,] base.css.ps.lim" > dat.css.ps.lim = c(0,2,50,2000)) Error: unexpected ')' in " dat.css.ps.lim = c(0,2,50,2000))" I think it can not find the commands and i don't know why. I had load the packages MASS, sp and soiltexture. What is my mistake. I would be proud of a helpful answer. Thanks |
|

