Luis Ridao Cruz wrote:
> R-help,
>
> I have a data frame with one column containing roman numbers
> The data are not sorted as : III III IV VVI VII VIII IX
> XXI XII XIII XIV XV
>
> Using data[order(data$Roman),] does not do the job.
>
> How can this be done?
>
>
Someo
Luis Ridao Cruz wrote:
> R-help,
>
> I have a data frame with one column containing roman numbers
> The data are not sorted as : III III IV VVI VII VIII IX
> XXI XII XIII XIV XV
>
> Using data[order(data$Roman),] does not do the job.
>
> How can this be done?
>
order(a
I assume that data$Roman is character.
data[order(as.numeric(as.roman(data$Roman))),] should do it. Maybe
data[order(as.roman(data$Roman)), ] is enough too.
Gabor
On Tue, Feb 12, 2008 at 10:36:50AM +, Luis Ridao Cruz wrote:
> R-help,
>
> I have a data frame with one column containing roman
R-help,
I have a data frame with one column containing roman numbers
The data are not sorted as : III III IV VVI VII VIII IX
XXI XII XIII XIV XV
Using data[order(data$Roman),] does not do the job.
How can this be done?
Thanks in advance.
__
4 matches
Mail list logo