Displaying 6 results from an estimated 6 matches for "oplt".
Did you mean:
olt
2008 May 06
2
list manipulation
...I get a set of NULL list elements
at the end of each output as demonstrated below. How can I generate this
(and similar) result(s) without all the trailing NULLs?
> lapply(ls(pattern='bn'), function(x) cat(x, dim(get(x)), "\t",
names(get(x)), "\n"))
bn1993 2885 11 oplt rplt rsiz tree bd ht oaz odst raz rdst spr
bn1994 3158 7 oplt tree bd ht spr stat dam
bn1995 734 7 oplt tree bd ht spr stat dam
bn1996 293 7 oplt tree bd ht spr stat dam
bn1997 264 7 oplt tree bd ht spr stat dam
bn1998 768 7 oplt tree bd ht spr stat dam
bn1999 654 7 opl...
2008 Dec 09
2
assign()ing within apply
Hello,
I'm trying to convert a character column in several dataframes to lower
case.
###
#
# Sample data and 'spp' column summaries:
# dput(ban.ovs.1993[sample(row.names(ban.ovs.1993), 20), 1:4])
ban.ovs.93 <- structure(list(oplt = c(43L, 43L, 38L, 26L, 35L, 8L, 39L,
1L,
34L, 50L, 10L, 29L, 31L, 24L, 18L, 12L, 27L, 49L, 28L, 51L),
rplt = c(NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA...
2008 Jun 04
1
ggplot questions
...continuous' (or *_y_* or *_*_discrete) geom the best
way to setup grids (as in visual guide-lines) in polar (or for that
matter, any) coordinate system?
3. Why do these commands appear to generate 3 plot pages each?
4. Perhaps more questions to follow ;-)
### the data
test <- structure(list(oplt = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L
), rplt = 1:10, az = c(57L, 94L, 96L, 152L, 182L, 185L, 227L,
264L, 332L, 354L), dist = c(4.09, 2.8, 7.08, 7.09, 3.28, 7.85,
6.12, 1.97, 7.68, 7.9)), .Names = c("oplt", "rplt", "az", "dist"
), row.names = c(NA, 10L...
2008 Oct 09
1
YALAQ - Yet Another LApply Question
...machine
"Windows" "XP" "build 2600,
Service Pack 2" "x86"
# system info:
###
###
# sample data
# dput(ban.nat.1994[sample(row.names(ban.nat.1994), 20),])
bn94 <- structure(list(oplt = c(18L, 50L, 11L, 16L, 54L, 35L, 45L, 40L,
15L, 50L, 38L, 45L, 53L, 15L, 1L, 54L, 33L, 13L, 30L, 21L), tree =
c(144L,
824L, 47L, 525L, 291L, 702L, 717L, 615L, 821L, 551L, 750L, 639L,
664L, 813L, 31L, 346L, 689L, 59L, 200L, 658L), bd1 = c(NA, NA,
3.6, 3.1, 4.72, 2.03, 2.88, 1.65, 5.39, 3.04, 2....
2008 Feb 08
1
Can I index a dataframe with a reference from/to a second dataframe?
...k this may be an indexing issue. I am trying to compare elements of
two different sized (list) objects (different type objects even?) and
not cycling through Bos$spp to find matches in tree$spp as expected, . .
. , has this an apply solution?
My data frames:
> dput(head(Bos, 30))
structure(list(oplt = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), rplt = c(3,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0), tree = c(32, 101, 102, 103, 104, 105,
106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 11...
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame.
For instance
> ddTable <-
data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry"))
I want a dataset that is
Id Name
1 Paul
2 Bob
> unique(ddTable)
Will give me all 4 rows, and
> unique(ddTable$Id)
Will give me c(1,2), but not accompanied by the name column.