.character(yr1bp$TreeTag[1501]))
Since it appears that TreeTag is a factor. This can be verified
with 'str'.
On Fri, Jun 6, 2008 at 11:22 PM, john.polo <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Daniel Folkinshteyn wrote:
urvector)
(it matches a digit, followed by a dot and two digits, followed by
"anything else", and takes out the "dot and two digits" bit in the
replacement, in the whole vector.)
thanks for that suggestion. it could come in handy.
on 06/06/2008 03:25 PM john.polo said the
dear R users,
the data frame (read in from a csv) looks like this:
TreeTag CensusStage DBH
1 CW-W740 2001 juvenile 5.8
2 CW-W739 2001 juvenile 4.3
3 CW-W738 2001 juvenile 4.7
4 CW-W737 2001 juvenile 5.4
5 CW-W736 2001 juvenile 7
Jorge Ivan Velez wrote:
Dear John,
Assuming that your information is in the list x, does
substr(x,1,2)
work for you?
HTH,
Jorge
Jorge,
i tried
split(rtt, substr(rtt,1,3))
and that worked also. (i didn't think to nest it when you first
suggested it.) i just have to clean up the levels th
E-W545" "7E-W535" "7E-W525" "7E-906"
> [31] "7E-850" "7E-840"
>
>> split(cv, substring(cv, 0, 2))
>>
> $`7E`
> [1] "7E-W565" "7E-W555" "7E-W545" "7E-W535" "7
Jorge Ivan Velez wrote:
Dear John,
Assuming that your information is in the list x, does
substr(x,1,2)
work for you?
HTH,
Jorge
thanks for your reply Jorge. i will try substr().
john
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mai
Michael Dewey wrote:
split() where the f variable =
c("1E-*","1W-*","2E-*","2W-*","5E-*","5W-*","7E-*","7W-*","CE-*","CW-*"),
but * doesn't work as a wildcard as i had hoped. can someone tell me
the appropriate wildcard character/symbol to use, please
Did you really use split()?
yes, i did. t
hello all,
i want to split a list into smaller lists. the list looks like this:
CW-W730 CW-W720 CW-W710 CW-W700 CW-W690 CW-W680 CW-W670 CW-W660
CE-W997 CE-W987 CE-W977 CE-W967 CE-W956 CE-W944 CE-W934 CE-W924
7W-W760 7W-W750 7W-967W-941 7W-932 7W-923 7W-914 7W-905
7
8 matches
Mail list logo