kenhanscombe / ukbtools

An R package to manipulate and explore UK Biobank data
https://kenhanscombe.github.io/ukbtools/
96 stars 26 forks source link

error with R commands #46

Closed jameskozubek closed 9 months ago

jameskozubek commented 9 months ago

I have a big file with lots of fields. awk -F$'\t' '{if (NR < 2) print NF}' ukb677133.tab 8473

I try to create a key file... library(ukbtools) my_ukb_data <- ukb_df("ukb677133") my_ukb_key <- ukb_df_field(my_ukb_data) write.table(my_ukb_key, file = "./xukb677133_key.txt", sep = "\t")

But I get this error in R... Error in lapply(value, as.character) : R character strings are limited to 2^31-1 bytes Calls: ukb_df_field -> -> regmatches<- -> lapply Execution halted

jameskozubek commented 9 months ago

ukb_df_field(fileset, path = ".", data.pos = 2, as.lookup = FALSE)

probably there is a way to use these parameters to solve the problem.