Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mapdims - grave accents appearing for rowwise and not colwise #13

Open
robertschnitman opened this issue Feb 23, 2019 · 0 comments
Open
Assignees
Labels
mapdims.r weird Valid & correct results, but aberrant properties (e.g. inconsistently named elements)

Comments

@robertschnitman
Copy link
Owner

ISSUE: The output in mapdims() produces grave accents (`) for the name of the row results; however, it was not the case for the column-wise list element. Why the inconsistency?

Attempts to remove the grave accents were not successful at this point: initial methods employed to overwrite the names were the assignment operator, make.names(), and gsub().

Example

> mapdims(median, mtcars)
$`rowwise`
          Mazda RX4       Mazda RX4 Wag          Datsun 710      Hornet 4 Drive 
           29.90727            29.98136            23.59818            38.73955 
  Hornet Sportabout             Valiant          Duster 360           Merc 240D 
           53.66455            35.04909            59.72000            24.63455 
           Merc 230            Merc 280           Merc 280C          Merc 450SE 
           27.23364            31.86000            31.78727            46.43091 
         Merc 450SL         Merc 450SLC  Cadillac Fleetwood Lincoln Continental 
           46.50000            46.35000            66.23273            66.05855 
  Chrysler Imperial            Fiat 128         Honda Civic      Toyota Corolla 
           65.97227            19.44091            17.74227            18.81409 
      Toyota Corona    Dodge Challenger         AMC Javelin          Camaro Z28 
           24.88864            47.24091            46.00773            58.75273 
   Pontiac Firebird           Fiat X1-9       Porsche 914-2        Lotus Europa 
           57.37955            18.92864            24.77909            24.88027 
     Ford Pantera L        Ferrari Dino       Maserati Bora          Volvo 142E 
           60.97182            34.50818            63.15545            26.26273 

$colwise
       mpg        cyl       disp         hp       drat         wt       qsec 
 20.090625   6.187500 230.721875 146.687500   3.596563   3.217250  17.848750 
        vs         am       gear       carb 
  0.437500   0.406250   3.687500   2.812500 
@robertschnitman robertschnitman added mapdims.r weird Valid & correct results, but aberrant properties (e.g. inconsistently named elements) labels Feb 23, 2019
@robertschnitman robertschnitman self-assigned this Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mapdims.r weird Valid & correct results, but aberrant properties (e.g. inconsistently named elements)
Projects
None yet
Development

No branches or pull requests

1 participant