Displaying 3 results from an estimated 3 matches for "softwood".
2008 Aug 08
2
Tick marks that correspond with bars on barplot
Hello all,
I have created a barplot that shows change in hardwood/softwood density from 1965 to 2005 in 5 year periods (1965,1970, etc). I would like to have an X-axis where the labels for the years line up after every two bars in the plot (there is one bar for hardwood, and another for softwood). Below is my script:
density<-read.table("F:\\Megan\\Vtest.csv"...
2010 Sep 17
2
grouping dataframe entries using a categorical variable
...explain, so here is an example:
My dataframe:
ESS DHP
1 EPB 22
2 SAB 10
3 SAB 20
4 BOJ 14
5 ERS 28
11 SAB 10
12 SAB 22
13 BOJ 26
20 SAB 10
21 SAB 22
22 BOJ 32
29 SAB 14
30 SAB 22
38 SAB 14
47 SAB 18
I'm trying to filter it by selecting a subgroup of ESS, for example:
softwood<- c("EPB","SAB")
So I can obtain:
NEW dataframe:
ESS DHP
1 EPB 22
2 SAB 10
3 SAB 20
11 SAB 10
12 SAB 22
20 SAB 10
21 SAB 22
29 SAB 14
30 SAB 22
38 SAB 14
47 SAB 18
(my real groups are actually bigger and so are my dataframe but you get the idea).
I have lo...
2008 Jul 28
4
RODBC to query an Oracle table
...pyear=1995 AND plotnum=1 AND sptype='S' OR sptype='H')
I get this error: unexpected symbol in "sqlQuery(channel...)"
I would like R to return a count of how many records satisfy the condition of being sampled in 1995 and in plot number 1, where the species type is either softwood or hardwood (S or H). Any help with this would be great.
Thanks in advance,
Megan