-
Notifications
You must be signed in to change notification settings - Fork 8
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
gtreg 0.4.0 tbl_ae
object 'n' not found error
#217
Comments
Hmmm i just ran on my machine without an error 🤔 packageVersion("cards")
#> [1] '0.2.0'
packageVersion("gtsummary")
#> [1] '2.0.0'
packageVersion("gtreg")
#> [1] '0.4.0'
df1 <-
tibble::tribble(
~id_subj, ~soc, ~pt,
1, "Investigations", "Blood alkaline phosphatase increased",
1, "Investigations", "Aspartate aminotransferase increased",
1, "Investigations", "Blood bilirubin increased",
1, "Cardiac disorders", "Angina pectoris",
1, "Gastrointestinal disorders", "Constipation",
1, "General disorders and administration site conditions", "Fatigue",
1, "Nervous system disorders", "Headache",
1, "Metabolism and nutrition disorders", "Hyperglycaemia",
1, "Metabolism and nutrition disorders", "Hyperglycaemia",
1, "Metabolism and nutrition disorders", "Hyperkalaemia",
1, "Metabolism and nutrition disorders", "Hypoglycaemia",
1, "Investigations", "Lymphocyte count decreased",
1, "Investigations", "Lymphocyte count decreased",
1, "Skin and subcutaneous tissue disorders", "Dermatitis acneiform",
1, "Gastrointestinal disorders", "Rectal haemorrhage",
1, "Infections and infestations", "Upper respiratory tract infection",
1, "Investigations", "White blood cell count decreased",
2, "Gastrointestinal disorders", "Abdominal pain",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Metabolism and nutrition disorders", "Decreased appetite",
2, "Musculoskeletal and connective tissue disorders", "Back pain",
2, "Investigations", "Blood cholesterol increased",
2, "Gastrointestinal disorders", "Constipation",
2, "Investigations", "Prothrombin time prolonged",
2, "Renal and urinary disorders", "Haematuria",
2, "Vascular disorders", "Hot flush",
2, "Metabolism and nutrition disorders", "Hypercalcaemia",
2, "Metabolism and nutrition disorders", "Hyperglycaemia",
2, "Metabolism and nutrition disorders", "Hyperkalaemia",
2, "Metabolism and nutrition disorders", "Hyponatraemia",
2, "Investigations", "International normalised ratio increased",
2, "Psychiatric disorders", "Insomnia",
2, "Investigations", "Lymphocyte count decreased",
2, "Musculoskeletal and connective tissue disorders", "Myalgia",
2, "Gastrointestinal disorders", "Nausea",
2, "Renal and urinary disorders", "Proteinuria",
2, "Cardiac disorders", "Sinus tachycardia",
2, "Ear and labyrinth disorders", "Tinnitus",
2, "Renal and urinary disorders", "Micturition urgency",
2, "Eye disorders", "Lacrimation increased",
3, "Investigations", "Blood cholesterol increased",
3, "General disorders and administration site conditions", "Oedema peripheral",
3, "Respiratory, thoracic and mediastinal disorders", "Epistaxis",
3, "Metabolism and nutrition disorders", "Hyperkalaemia",
3, "Metabolism and nutrition disorders", "Hyperkalaemia",
3, "Metabolism and nutrition disorders", "Hyperkalaemia",
3, "Metabolism and nutrition disorders", "Hypertriglyceridaemia",
3, "Investigations", "Neutrophil count decreased",
3, "Investigations", "White blood cell count decreased",
3, "Investigations", "White blood cell count decreased",
3, "Investigations", "White blood cell count decreased",
3, "Investigations", "White blood cell count decreased",
3, "Investigations", "White blood cell count decreased",
4, "Gastrointestinal disorders", "Abdominal pain",
4, "Metabolism and nutrition disorders", "Decreased appetite",
4, "Renal and urinary disorders", "Chronic kidney disease",
4, "Gastrointestinal disorders", "Diarrhoea",
4, "General disorders and administration site conditions", "Oedema peripheral",
4, "General disorders and administration site conditions", "Fatigue",
4, "General disorders and administration site conditions", "Fatigue",
4, "Gastrointestinal disorders", "Flatulence",
4, "Metabolism and nutrition disorders", "Hyperglycaemia",
4, "Metabolism and nutrition disorders", "Hyperglycaemia",
4, "Metabolism and nutrition disorders", "Hyperkalaemia",
4, "Metabolism and nutrition disorders", "Hyperkalaemia",
4, "Vascular disorders", "Hypertension",
4, "Vascular disorders", "Hypertension",
4, "Vascular disorders", "Hypertension",
4, "Investigations", "Lymphocyte count decreased",
4, "Investigations", "Lymphocyte count decreased",
4, "Investigations", "Lymphocyte count decreased",
4, "Investigations", "Lymphocyte count decreased",
4, "Respiratory, thoracic and mediastinal disorders", "Nasal congestion",
4, "Gastrointestinal disorders", "Nausea",
4, "Gastrointestinal disorders", "Nausea",
4, "Investigations", "Neutrophil count decreased",
4, "Investigations", "Neutrophil count decreased",
4, "Investigations", "Neutrophil count decreased",
4, "Investigations", "Neutrophil count decreased",
4, "Investigations", "Platelet count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
5, "Investigations", "Blood alkaline phosphatase increased",
5, "Blood and lymphatic system disorders", "Anaemia",
5, "Blood and lymphatic system disorders", "Anaemia",
5, "Musculoskeletal and connective tissue disorders", "Back pain",
5, "Investigations", "Blood creatinine increased",
5, "General disorders and administration site conditions", "Oedema peripheral",
5, "Metabolism and nutrition disorders", "Hyperkalaemia",
5, "Metabolism and nutrition disorders", "Hyperkalaemia",
5, "Metabolism and nutrition disorders", "Hyperkalaemia",
5, "Vascular disorders", "Hypertension",
5, "Metabolism and nutrition disorders", "Hypocalcaemia",
5, "Investigations", "Lymphocyte count decreased",
5, "Investigations", "Neutrophil count decreased",
5, "Investigations", "Neutrophil count decreased",
5, "Nervous system disorders", "Paraesthesia",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
6, "Respiratory, thoracic and mediastinal disorders", "Rhinitis allergic",
6, "Gastrointestinal disorders", "Constipation",
6, "Gastrointestinal disorders", "Diarrhoea",
6, "Gastrointestinal disorders", "Diarrhoea",
6, "General disorders and administration site conditions", "Fatigue",
6, "Metabolism and nutrition disorders", "Hyperglycaemia",
6, "Metabolism and nutrition disorders", "Hyperglycaemia",
6, "Metabolism and nutrition disorders", "Hyperkalaemia",
6, "Metabolism and nutrition disorders", "Hyperkalaemia",
6, "Vascular disorders", "Hypertension",
6, "Vascular disorders", "Hypertension",
6, "Vascular disorders", "Hypertension",
6, "Vascular disorders", "Hypertension",
6, "Gastrointestinal disorders", "Nausea",
6, "Investigations", "Neutrophil count decreased",
6, "Investigations", "Neutrophil count decreased",
6, "Investigations", "Neutrophil count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
7, "Psychiatric disorders", "Confusional state",
7, "Nervous system disorders", "Dysgeusia",
7, "General disorders and administration site conditions", "Fatigue",
7, "Gastrointestinal disorders", "Gingival pain",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Nervous system disorders", "Memory impairment",
7, "Musculoskeletal and connective tissue disorders", "Arthralgia",
7, "Nervous system disorders", "Balance disorder",
7, "Musculoskeletal and connective tissue disorders", "Musculoskeletal pain",
7, "Musculoskeletal and connective tissue disorders", "Arthralgia",
7, "Musculoskeletal and connective tissue disorders", "Musculoskeletal pain",
8, "Investigations", "Alanine aminotransferase increased",
8, "Investigations", "Alanine aminotransferase increased",
8, "Investigations", "Aspartate aminotransferase increased",
8, "Investigations", "Aspartate aminotransferase increased",
8, "Gastrointestinal disorders", "Constipation",
8, "Vascular disorders", "Hypertension",
8, "Vascular disorders", "Hypertension",
8, "Vascular disorders", "Hypertension",
9, "General disorders and administration site conditions", "Oedema peripheral",
9, "General disorders and administration site conditions", "Fatigue",
9, "General disorders and administration site conditions", "Influenza like illness",
9, "Psychiatric disorders", "Insomnia",
10, "Respiratory, thoracic and mediastinal disorders", "Cough",
10, "Respiratory, thoracic and mediastinal disorders", "Dyspnoea",
10, "General disorders and administration site conditions", "Oedema peripheral",
10, "General disorders and administration site conditions", "Fatigue",
10, "Investigations", "Neutrophil count decreased",
10, "Nervous system disorders", "Paraesthesia",
11, "General disorders and administration site conditions", "Chills",
11, "Psychiatric disorders", "Confusional state",
11, "Gastrointestinal disorders", "Constipation",
11, "Psychiatric disorders", "Depression",
11, "Gastrointestinal disorders", "Diarrhoea",
11, "Gastrointestinal disorders", "Diarrhoea",
11, "Gastrointestinal disorders", "Diarrhoea",
11, "Gastrointestinal disorders", "Diarrhoea",
11, "Respiratory, thoracic and mediastinal disorders", "Dyspnoea",
11, "General disorders and administration site conditions", "Fatigue",
11, "Metabolism and nutrition disorders", "Hyperglycaemia",
11, "Vascular disorders", "Hypertension",
11, "Cardiac disorders", "Palpitations",
11, "Cardiac disorders", "Palpitations",
11, "Cardiac disorders", "Ventricular tachycardia",
11, "Ear and labyrinth disorders", "Vertigo",
11, "Ear and labyrinth disorders", "Vertigo",
11, "Ear and labyrinth disorders", "Vertigo",
12, "Metabolism and nutrition disorders", "Decreased appetite",
12, "Musculoskeletal and connective tissue disorders", "Arthritis",
12, "Gastrointestinal disorders", "Diarrhoea",
12, "Gastrointestinal disorders", "Diarrhoea",
12, "Gastrointestinal disorders", "Diarrhoea",
12, "Gastrointestinal disorders", "Diarrhoea",
12, "Nervous system disorders", "Dizziness",
12, "Nervous system disorders", "Dizziness",
12, "General disorders and administration site conditions", "Fatigue",
12, "Metabolism and nutrition disorders", "Hyperkalaemia",
12, "Metabolism and nutrition disorders", "Hyperkalaemia",
12, "Vascular disorders", "Hypertension",
12, "Vascular disorders", "Hypertension",
12, "Infections and infestations", "Onychomycosis",
12, "Musculoskeletal and connective tissue disorders", "Pain in extremity",
12, "Renal and urinary disorders", "Pollakiuria",
12, "Renal and urinary disorders", "Pollakiuria",
13, "General disorders and administration site conditions", "Fatigue",
13, "Vascular disorders", "Hot flush",
13, "Musculoskeletal and connective tissue disorders", "Pain in extremity",
14, "Skin and subcutaneous tissue disorders", "Alopecia",
14, "Musculoskeletal and connective tissue disorders", "Bone pain",
14, "Gastrointestinal disorders", "Constipation",
14, "Gastrointestinal disorders", "Constipation",
14, "Surgical and medical procedures", "Dental implantation",
14, "Gastrointestinal disorders", "Diarrhoea",
14, "Gastrointestinal disorders", "Diarrhoea",
14, "Gastrointestinal disorders", "Diarrhoea",
14, "Nervous system disorders", "Dizziness",
14, "General disorders and administration site conditions", "Oedema peripheral",
14, "General disorders and administration site conditions", "Fatigue",
14, "Renal and urinary disorders", "Haematuria",
14, "Vascular disorders", "Hypertension",
14, "Vascular disorders", "Hypertension",
14, "Vascular disorders", "Hypertension",
14, "Vascular disorders", "Hypertension",
14, "Vascular disorders", "Hypertension",
14, "Gastrointestinal disorders", "Nausea",
14, "Gastrointestinal disorders", "Nausea",
14, "Musculoskeletal and connective tissue disorders", "Pain in extremity",
15, "Gastrointestinal disorders", "Abdominal pain",
15, "Skin and subcutaneous tissue disorders", "Alopecia",
15, "Musculoskeletal and connective tissue disorders", "Arthritis",
15, "Musculoskeletal and connective tissue disorders", "Bone pain",
15, "Infections and infestations", "Coronavirus infection",
15, "Infections and infestations", "Nasopharyngitis",
15, "Gastrointestinal disorders", "Diarrhoea",
15, "Respiratory, thoracic and mediastinal disorders", "Dyspnoea",
15, "General disorders and administration site conditions", "Fatigue",
15, "Skin and subcutaneous tissue disorders", "Hair colour changes",
15, "Psychiatric disorders", "Hallucination",
15, "Vascular disorders", "Hypertension",
15, "Vascular disorders", "Hypertension",
15, "Vascular disorders", "Hypertension",
15, "Vascular disorders", "Hypertension",
15, "Gastrointestinal disorders", "Stomatitis",
15, "Gastrointestinal disorders", "Stomatitis",
15, "Musculoskeletal and connective tissue disorders", "Myalgia",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Nervous system disorders", "Migraine with aura",
15, "Respiratory, thoracic and mediastinal disorders", "Upper-airway cough syndrome",
15, "Respiratory, thoracic and mediastinal disorders", "Productive cough",
15, "Skin and subcutaneous tissue disorders", "Pruritus",
15, "Respiratory, thoracic and mediastinal disorders", "Sinus pain",
15, "Infections and infestations", "Sinusitis",
15, "Respiratory, thoracic and mediastinal disorders", "Oropharyngeal pain",
15, "Infections and infestations", "Pharyngitis streptococcal",
15, "Injury, poisoning and procedural complications", "Arthropod bite",
15, "Skin and subcutaneous tissue disorders", "Rash",
16, "Eye disorders", "Cataract",
16, "General disorders and administration site conditions", "Fatigue",
16, "Vascular disorders", "Hot flush",
16, "Vascular disorders", "Hypertension",
16, "Gastrointestinal disorders", "Nausea"
)
gtreg::tbl_ae(
data = df1,
id = id_subj,
ae = pt,
soc = soc
) |>
gtreg::bold_labels() |>
gtsummary::as_kable()
Created on 2024-08-08 with reprex v2.1.0 |
so weird! same one with sessioninfo, sorry should have included that. library(gtsummary)
library(gtreg)
packageVersion("gtsummary")
#> [1] '2.0.0'
packageVersion("gtreg")
#> [1] '0.4.0'
packageVersion("cards")
#> [1] '0.2.0'
df1 <-
tibble::tribble(
~id_subj, ~soc, ~pt,
1, "Investigations", "Blood alkaline phosphatase increased",
1, "Investigations", "Aspartate aminotransferase increased",
1, "Investigations", "Blood bilirubin increased",
1, "Cardiac disorders", "Angina pectoris",
1, "Gastrointestinal disorders", "Constipation",
1, "General disorders and administration site conditions", "Fatigue",
1, "Nervous system disorders", "Headache",
1, "Metabolism and nutrition disorders", "Hyperglycaemia",
1, "Metabolism and nutrition disorders", "Hyperglycaemia",
1, "Metabolism and nutrition disorders", "Hyperkalaemia",
1, "Metabolism and nutrition disorders", "Hypoglycaemia",
1, "Investigations", "Lymphocyte count decreased",
1, "Investigations", "Lymphocyte count decreased",
1, "Skin and subcutaneous tissue disorders", "Dermatitis acneiform",
1, "Gastrointestinal disorders", "Rectal haemorrhage",
1, "Infections and infestations", "Upper respiratory tract infection",
1, "Investigations", "White blood cell count decreased",
2, "Gastrointestinal disorders", "Abdominal pain",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Investigations", "Blood alkaline phosphatase increased",
2, "Metabolism and nutrition disorders", "Decreased appetite",
2, "Musculoskeletal and connective tissue disorders", "Back pain",
2, "Investigations", "Blood cholesterol increased",
2, "Gastrointestinal disorders", "Constipation",
2, "Investigations", "Prothrombin time prolonged",
2, "Renal and urinary disorders", "Haematuria",
2, "Vascular disorders", "Hot flush",
2, "Metabolism and nutrition disorders", "Hypercalcaemia",
2, "Metabolism and nutrition disorders", "Hyperglycaemia",
2, "Metabolism and nutrition disorders", "Hyperkalaemia",
2, "Metabolism and nutrition disorders", "Hyponatraemia",
2, "Investigations", "International normalised ratio increased",
2, "Psychiatric disorders", "Insomnia",
2, "Investigations", "Lymphocyte count decreased",
2, "Musculoskeletal and connective tissue disorders", "Myalgia",
2, "Gastrointestinal disorders", "Nausea",
2, "Renal and urinary disorders", "Proteinuria",
2, "Cardiac disorders", "Sinus tachycardia",
2, "Ear and labyrinth disorders", "Tinnitus",
2, "Renal and urinary disorders", "Micturition urgency",
2, "Eye disorders", "Lacrimation increased",
3, "Investigations", "Blood cholesterol increased",
3, "General disorders and administration site conditions", "Oedema peripheral",
3, "Respiratory, thoracic and mediastinal disorders", "Epistaxis",
3, "Metabolism and nutrition disorders", "Hyperkalaemia",
3, "Metabolism and nutrition disorders", "Hyperkalaemia",
3, "Metabolism and nutrition disorders", "Hyperkalaemia",
3, "Metabolism and nutrition disorders", "Hypertriglyceridaemia",
3, "Investigations", "Neutrophil count decreased",
3, "Investigations", "White blood cell count decreased",
3, "Investigations", "White blood cell count decreased",
3, "Investigations", "White blood cell count decreased",
3, "Investigations", "White blood cell count decreased",
3, "Investigations", "White blood cell count decreased",
4, "Gastrointestinal disorders", "Abdominal pain",
4, "Metabolism and nutrition disorders", "Decreased appetite",
4, "Renal and urinary disorders", "Chronic kidney disease",
4, "Gastrointestinal disorders", "Diarrhoea",
4, "General disorders and administration site conditions", "Oedema peripheral",
4, "General disorders and administration site conditions", "Fatigue",
4, "General disorders and administration site conditions", "Fatigue",
4, "Gastrointestinal disorders", "Flatulence",
4, "Metabolism and nutrition disorders", "Hyperglycaemia",
4, "Metabolism and nutrition disorders", "Hyperglycaemia",
4, "Metabolism and nutrition disorders", "Hyperkalaemia",
4, "Metabolism and nutrition disorders", "Hyperkalaemia",
4, "Vascular disorders", "Hypertension",
4, "Vascular disorders", "Hypertension",
4, "Vascular disorders", "Hypertension",
4, "Investigations", "Lymphocyte count decreased",
4, "Investigations", "Lymphocyte count decreased",
4, "Investigations", "Lymphocyte count decreased",
4, "Investigations", "Lymphocyte count decreased",
4, "Respiratory, thoracic and mediastinal disorders", "Nasal congestion",
4, "Gastrointestinal disorders", "Nausea",
4, "Gastrointestinal disorders", "Nausea",
4, "Investigations", "Neutrophil count decreased",
4, "Investigations", "Neutrophil count decreased",
4, "Investigations", "Neutrophil count decreased",
4, "Investigations", "Neutrophil count decreased",
4, "Investigations", "Platelet count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
4, "Investigations", "White blood cell count decreased",
5, "Investigations", "Blood alkaline phosphatase increased",
5, "Blood and lymphatic system disorders", "Anaemia",
5, "Blood and lymphatic system disorders", "Anaemia",
5, "Musculoskeletal and connective tissue disorders", "Back pain",
5, "Investigations", "Blood creatinine increased",
5, "General disorders and administration site conditions", "Oedema peripheral",
5, "Metabolism and nutrition disorders", "Hyperkalaemia",
5, "Metabolism and nutrition disorders", "Hyperkalaemia",
5, "Metabolism and nutrition disorders", "Hyperkalaemia",
5, "Vascular disorders", "Hypertension",
5, "Metabolism and nutrition disorders", "Hypocalcaemia",
5, "Investigations", "Lymphocyte count decreased",
5, "Investigations", "Neutrophil count decreased",
5, "Investigations", "Neutrophil count decreased",
5, "Nervous system disorders", "Paraesthesia",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
5, "Investigations", "White blood cell count decreased",
6, "Respiratory, thoracic and mediastinal disorders", "Rhinitis allergic",
6, "Gastrointestinal disorders", "Constipation",
6, "Gastrointestinal disorders", "Diarrhoea",
6, "Gastrointestinal disorders", "Diarrhoea",
6, "General disorders and administration site conditions", "Fatigue",
6, "Metabolism and nutrition disorders", "Hyperglycaemia",
6, "Metabolism and nutrition disorders", "Hyperglycaemia",
6, "Metabolism and nutrition disorders", "Hyperkalaemia",
6, "Metabolism and nutrition disorders", "Hyperkalaemia",
6, "Vascular disorders", "Hypertension",
6, "Vascular disorders", "Hypertension",
6, "Vascular disorders", "Hypertension",
6, "Vascular disorders", "Hypertension",
6, "Gastrointestinal disorders", "Nausea",
6, "Investigations", "Neutrophil count decreased",
6, "Investigations", "Neutrophil count decreased",
6, "Investigations", "Neutrophil count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
6, "Investigations", "White blood cell count decreased",
7, "Psychiatric disorders", "Confusional state",
7, "Nervous system disorders", "Dysgeusia",
7, "General disorders and administration site conditions", "Fatigue",
7, "Gastrointestinal disorders", "Gingival pain",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Vascular disorders", "Hypertension",
7, "Nervous system disorders", "Memory impairment",
7, "Musculoskeletal and connective tissue disorders", "Arthralgia",
7, "Nervous system disorders", "Balance disorder",
7, "Musculoskeletal and connective tissue disorders", "Musculoskeletal pain",
7, "Musculoskeletal and connective tissue disorders", "Arthralgia",
7, "Musculoskeletal and connective tissue disorders", "Musculoskeletal pain",
8, "Investigations", "Alanine aminotransferase increased",
8, "Investigations", "Alanine aminotransferase increased",
8, "Investigations", "Aspartate aminotransferase increased",
8, "Investigations", "Aspartate aminotransferase increased",
8, "Gastrointestinal disorders", "Constipation",
8, "Vascular disorders", "Hypertension",
8, "Vascular disorders", "Hypertension",
8, "Vascular disorders", "Hypertension",
9, "General disorders and administration site conditions", "Oedema peripheral",
9, "General disorders and administration site conditions", "Fatigue",
9, "General disorders and administration site conditions", "Influenza like illness",
9, "Psychiatric disorders", "Insomnia",
10, "Respiratory, thoracic and mediastinal disorders", "Cough",
10, "Respiratory, thoracic and mediastinal disorders", "Dyspnoea",
10, "General disorders and administration site conditions", "Oedema peripheral",
10, "General disorders and administration site conditions", "Fatigue",
10, "Investigations", "Neutrophil count decreased",
10, "Nervous system disorders", "Paraesthesia",
11, "General disorders and administration site conditions", "Chills",
11, "Psychiatric disorders", "Confusional state",
11, "Gastrointestinal disorders", "Constipation",
11, "Psychiatric disorders", "Depression",
11, "Gastrointestinal disorders", "Diarrhoea",
11, "Gastrointestinal disorders", "Diarrhoea",
11, "Gastrointestinal disorders", "Diarrhoea",
11, "Gastrointestinal disorders", "Diarrhoea",
11, "Respiratory, thoracic and mediastinal disorders", "Dyspnoea",
11, "General disorders and administration site conditions", "Fatigue",
11, "Metabolism and nutrition disorders", "Hyperglycaemia",
11, "Vascular disorders", "Hypertension",
11, "Cardiac disorders", "Palpitations",
11, "Cardiac disorders", "Palpitations",
11, "Cardiac disorders", "Ventricular tachycardia",
11, "Ear and labyrinth disorders", "Vertigo",
11, "Ear and labyrinth disorders", "Vertigo",
11, "Ear and labyrinth disorders", "Vertigo",
12, "Metabolism and nutrition disorders", "Decreased appetite",
12, "Musculoskeletal and connective tissue disorders", "Arthritis",
12, "Gastrointestinal disorders", "Diarrhoea",
12, "Gastrointestinal disorders", "Diarrhoea",
12, "Gastrointestinal disorders", "Diarrhoea",
12, "Gastrointestinal disorders", "Diarrhoea",
12, "Nervous system disorders", "Dizziness",
12, "Nervous system disorders", "Dizziness",
12, "General disorders and administration site conditions", "Fatigue",
12, "Metabolism and nutrition disorders", "Hyperkalaemia",
12, "Metabolism and nutrition disorders", "Hyperkalaemia",
12, "Vascular disorders", "Hypertension",
12, "Vascular disorders", "Hypertension",
12, "Infections and infestations", "Onychomycosis",
12, "Musculoskeletal and connective tissue disorders", "Pain in extremity",
12, "Renal and urinary disorders", "Pollakiuria",
12, "Renal and urinary disorders", "Pollakiuria",
13, "General disorders and administration site conditions", "Fatigue",
13, "Vascular disorders", "Hot flush",
13, "Musculoskeletal and connective tissue disorders", "Pain in extremity",
14, "Skin and subcutaneous tissue disorders", "Alopecia",
14, "Musculoskeletal and connective tissue disorders", "Bone pain",
14, "Gastrointestinal disorders", "Constipation",
14, "Gastrointestinal disorders", "Constipation",
14, "Surgical and medical procedures", "Dental implantation",
14, "Gastrointestinal disorders", "Diarrhoea",
14, "Gastrointestinal disorders", "Diarrhoea",
14, "Gastrointestinal disorders", "Diarrhoea",
14, "Nervous system disorders", "Dizziness",
14, "General disorders and administration site conditions", "Oedema peripheral",
14, "General disorders and administration site conditions", "Fatigue",
14, "Renal and urinary disorders", "Haematuria",
14, "Vascular disorders", "Hypertension",
14, "Vascular disorders", "Hypertension",
14, "Vascular disorders", "Hypertension",
14, "Vascular disorders", "Hypertension",
14, "Vascular disorders", "Hypertension",
14, "Gastrointestinal disorders", "Nausea",
14, "Gastrointestinal disorders", "Nausea",
14, "Musculoskeletal and connective tissue disorders", "Pain in extremity",
15, "Gastrointestinal disorders", "Abdominal pain",
15, "Skin and subcutaneous tissue disorders", "Alopecia",
15, "Musculoskeletal and connective tissue disorders", "Arthritis",
15, "Musculoskeletal and connective tissue disorders", "Bone pain",
15, "Infections and infestations", "Coronavirus infection",
15, "Infections and infestations", "Nasopharyngitis",
15, "Gastrointestinal disorders", "Diarrhoea",
15, "Respiratory, thoracic and mediastinal disorders", "Dyspnoea",
15, "General disorders and administration site conditions", "Fatigue",
15, "Skin and subcutaneous tissue disorders", "Hair colour changes",
15, "Psychiatric disorders", "Hallucination",
15, "Vascular disorders", "Hypertension",
15, "Vascular disorders", "Hypertension",
15, "Vascular disorders", "Hypertension",
15, "Vascular disorders", "Hypertension",
15, "Gastrointestinal disorders", "Stomatitis",
15, "Gastrointestinal disorders", "Stomatitis",
15, "Musculoskeletal and connective tissue disorders", "Myalgia",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Investigations", "Neutrophil count decreased",
15, "Nervous system disorders", "Migraine with aura",
15, "Respiratory, thoracic and mediastinal disorders", "Upper-airway cough syndrome",
15, "Respiratory, thoracic and mediastinal disorders", "Productive cough",
15, "Skin and subcutaneous tissue disorders", "Pruritus",
15, "Respiratory, thoracic and mediastinal disorders", "Sinus pain",
15, "Infections and infestations", "Sinusitis",
15, "Respiratory, thoracic and mediastinal disorders", "Oropharyngeal pain",
15, "Infections and infestations", "Pharyngitis streptococcal",
15, "Injury, poisoning and procedural complications", "Arthropod bite",
15, "Skin and subcutaneous tissue disorders", "Rash",
16, "Eye disorders", "Cataract",
16, "General disorders and administration site conditions", "Fatigue",
16, "Vascular disorders", "Hot flush",
16, "Vascular disorders", "Hypertension",
16, "Gastrointestinal disorders", "Nausea"
)
tbl_ae(
data = df1,
id = id_subj,
ae = pt,
soc = soc
)
#> Error in `dplyr::mutate()`:
#> ℹ In argument: `df_stats = list(...)`.
#> Caused by error in `dplyr::mutate()`:
#> ℹ In argument: `stat = map(...)`.
#> Caused by error:
#> ! Failed to evaluate glue component {n}
#> Caused by error:
#> ! object 'n' not found
sessionInfo()
#> R version 4.4.1 (2024-06-14 ucrt)
#> Platform: x86_64-w64-mingw32/x64
#> Running under: Windows 11 x64 (build 22631)
#>
#> Matrix products: default
#>
#>
#> locale:
#> [1] LC_COLLATE=English_United States.utf8
#> [2] LC_CTYPE=English_United States.utf8
#> [3] LC_MONETARY=English_United States.utf8
#> [4] LC_NUMERIC=C
#> [5] LC_TIME=English_United States.utf8
#>
#> time zone: America/New_York
#> tzcode source: internal
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] gtreg_0.4.0 gtsummary_2.0.0
#>
#> loaded via a namespace (and not attached):
#> [1] vctrs_0.6.5 cli_3.6.3 knitr_1.48
#> [4] rlang_1.1.4 xfun_0.46 forcats_1.0.0
#> [7] purrr_1.0.2 generics_0.1.3 glue_1.7.0
#> [10] broom.helpers_1.15.0 htmltools_0.5.8.1 fansi_1.0.6
#> [13] rmarkdown_2.27 evaluate_0.24.0 tibble_3.2.1
#> [16] fastmap_1.2.0 yaml_2.3.10 lifecycle_1.0.4
#> [19] compiler_4.4.1 cards_0.2.0 dplyr_1.1.4
#> [22] fs_1.6.4 pkgconfig_2.0.3 tidyr_1.3.1
#> [25] rstudioapi_0.16.0 digest_0.6.36 R6_2.5.1
#> [28] reprex_2.1.1 tidyselect_1.2.1 utf8_1.2.4
#> [31] pillar_1.9.0 magrittr_2.0.3 tools_4.4.1
#> [34] withr_3.0.1 Created on 2024-08-08 with reprex v2.1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please forgive the long-ish data frame required for this reprex, I haven't yet figured out what aspect of this data triggers the error.
Created on 2024-08-08 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: