Questions tagged [hmisc]

Hmisc is an R package of miscellaneous utility functions.

Hmisc is an package of miscellaneous functions by Frank Harrell. It contains many functions useful for , ting, utility operations, functions for computing and power, importing datasets, imputing , advanced table making, , manipulation, conversion of R objects to code, and recoding variables.

Repositories

Other resources

Related tags

216 questions
0
votes
1 answer

How to avoid displaying plot Ecdf Hmisc?

I'm trying to do something very simple: I'm using the library Hmisc in order to use the Ecdf function to get the x and y values that the function returns, but even when I assign it to a variable, the default plot is displayed. library("Hmisc") ecdf1…
User 6683331
  • 692
  • 1
  • 13
  • 31
0
votes
1 answer

Example of aregImpute using group argument

I have a data set that I cannot post for confidentiality reasons. I am attempting to impute missing values using aregImpute in Hmisc. However, I get an error something like this: Error in aregImpute(): a bootstrap resample had too few unique values…
sma
  • 315
  • 3
  • 6
0
votes
2 answers

Group only some columns in LaTeX table using R

I am trying to create a table in RMarkdown that looks similar to the following example: --- title: "Example" output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE) ``` ```{r cars, echo=FALSE, message=FALSE,…
rjss
  • 935
  • 10
  • 23
0
votes
1 answer

Looping cut2 color argument in qplot

First off fair warning that this is relevant to a quiz question from coursera.org practical machine learning. However, my question does not deal with the actual question asked, but is a tangential question about plotting. I have a training set of…
Hunter Clark
  • 181
  • 13
0
votes
0 answers

Change 'N' within summary output

My summarySE output looks like this: summary <- summarySE(df, measurevar = "Cover", groupvars = c("Year","Loc")) Year Loc N Cover sd se ci 1 2010 1 104 0.10560533 0.2163059 0.02121054 0.04206610 2 2010 2 97…
0
votes
2 answers

r units error when using Hmisc and sf packages

I get an error when I try to get the units attribute on a field, after I load the sf package. Below is a reproducible example. library(Hmisc) fail.time <- c(10,20) units(fail.time) <- "Day" library(sf) units(fail.time) <- "Day" Error:…
user3357059
  • 1,122
  • 1
  • 15
  • 30
0
votes
1 answer

BiodiversityR package for R error message for Mac

I am having a series of problems and receiving error messages installing BiodiversityR in a Mac computer I type install.packages("BiodiversityR") install.packages("Rcmdr") install.packages("dismo") install.packages("RcmdrMisc") Although all…
Sandy
  • 1
  • 2
0
votes
0 answers

R:Error while loading Hmisc and psych

I received 2 errors while trying to library Hmisc and psych: 1) Error : .onLoad failed in loadNamespace() for 'grid', details: call: fun(libname, pkgname) error: object 'L_initGrid' not found In addition: There were 13 warnings (use warnings()…
0
votes
2 answers

looping over each column to impute data in R but does not replace imputed data

I am trying to impute the dataframe with Hmisc impute model. I am able to impute the data for one column at a time but fail to loop over columns. Below example - works fine but I would like to make it dynamic using a function: impute_marks$col1 <-…
Murlidhar Fichadia
  • 2,589
  • 6
  • 43
  • 93
0
votes
1 answer

Modify Breaks in cut2 function in Hmisc package

This is a follow-up to this question: Dataframe Aggregation By Group - Separating a Column's Values by Ranges The answer provided uses Hmisc::cut2 which works great! I want to modify the breaks so that instead of breaking by $1 it breaks by $0.50.…
nak5120
  • 4,089
  • 4
  • 35
  • 94
0
votes
1 answer

How do I use Hmisc::latex()

Hmisc::latex() seems to ignore all the arguments I give it, other than object. It's hard to point to a specific question I need answered, other than -- "How can I get Hmisc::latex()" to recognize the arguments its documentation says it should? For…
rcorty
  • 1,140
  • 1
  • 10
  • 28
0
votes
1 answer

preventing inherited variable labels in r

I have a file of 2,000 columns. In order to help keep all these variables defined, I'd like to use labels and work package Hmisc. So far, so good. My problem: I can't stop any derived variable columns from inheriting the labels. I don't want…
pzajonc
  • 23
  • 3
0
votes
1 answer

Suppress Hmisc latex() horizontal lines (\midrule) output in a table

I'm using the Hmisc package in R to generate a reproducible LaTex table and would like to suppress some of the horizontal lines (\midrule) generated by default in the booktabs mode. I've sifted through the Hmisc documentation as well as a number of…
ashaw
  • 198
  • 5
0
votes
1 answer

How do I create a variable with mutate() that has values equal to the label of a given variable?

I am trying to use mutate() on a data.frame that I have used gather() on to create a variable whose values are the label() for the gathered variable. I have searched Google and StackOverflow and have not found a suitable answer. My research led me…
0
votes
1 answer

Can not install Hmisc update 4.0.0

I am having problem to install Hmisc package for R 4.0.0 because of gfortran compilation error gfortran-4.8: warning: couldn’t understand kern.osversion ‘15.6.0 f951: internal compiler error: Illegal instruction: 4 f951: internal compiler error:…