search for: chr

Displaying 20 results from an estimated 1533 matches for "chr".

Did you mean: char
2013 Jan 02
2
Read many cvs files
...e=";")) global2001 <- datos[,-19:-53] global2001[1,"CODPA"] <- 1 global2001$CODPA <- y2 global2001$CODPA <- unlist(global2001$CODPA) Example of a file: > str(datos) 'data.frame': 112598 obs. of 53 variables: $ Identificación.do.Paciente : chr "34" "41" "42" "46" ... $ Número.de.Historia : int 3024659 3028931 3030905 3033514 3037754 3039062 3039851 3048020 3049659 3049659 ... $ TSI : chr "580208NCEE0010" "770802ROOR0019" "7107...
2011 Apr 19
1
How to Extract Information from SIMEX Output
...... Can someone suggest how to go about doing this? I can extract the upper level results like fit.simex$coefficients but I have had no success getting at the lower levels. Tom > str(fit.simex) List of 24 $ coefficients : Named num [1:2] -17.1 3 ..- attr(*, "names")= chr [1:2] "(Intercept)" "x" $ SIMEX.estimates : num [1:6, 1:3] -1 0 0.5 1 1.5 ... ..- attr(*, "dimnames")=List of 2 .. ..$ : NULL .. ..$ : chr [1:3] "lambda" "(Intercept)" "x" $ lambda : num [1:5] 0 0.5 1 1.5...
2012 Oct 02
1
ffsave problems
Dear R friends. After having some troubles learning how to create a ffdf object, now I find myself having problems saving it. this is the data i´d like to save: str(DATA) List of 3 $ virtual: 'data.frame': 6 obs. of 7 variables: .. $ VirtualVmode : chr "double" "short" "integer" "integer" ... .. $ AsIs : logi FALSE FALSE FALSE FALSE FALSE FALSE .. $ VirtualIsMatrix : logi FALSE FALSE FALSE FALSE FALSE FALSE .. $ PhysicalIsMatrix : logi FALSE FALSE FALSE FALSE FALSE FALSE .. $ PhysicalEl...
2010 Aug 23
3
extracting p-values from Anova objects (from the car library)
Dear all, is there anyone who can help me extracting p-values from an Anova object from the car library? I can't seem to locate the p-values using str(result) or str(summary(result)) in the example below > A <- factor( rep(1:2,each=3) ) > B <- factor( rep(1:3,times=2) ) > idata <- data.frame(A,B) > fit <- lm( cbind(a1_b1,a1_b2,a1_b3,a2_b1,a2_b2,a2_b3) ? sex,
2003 Sep 03
1
Last line in .Rprofile must have newline (PR#4056)
...39;b' too. FYI: I browsed through ?.Rprofile and R-intro.html to see if it was document, but it does not seem so. I also checked with the behavior of source() too, but there a newline is not required. Best wishes Henrik Bengtsson Lund University > str(R.Version()) List of 11 $ platform: chr "sparc-sun-solaris2.9" $ arch : chr "sparc" $ os : chr "solaris2.9" $ system : chr "sparc, solaris2.9" $ status : chr "" $ major : chr "1" $ minor : chr "7.1" $ year : chr "2003" $ month : chr...
2010 Sep 16
2
problem reading Matlab file into R
...and I have no access to or any experience with Matlab, so changing the mat file or saving it in a different format is not an option for me. Kind regards, Claude > foo <- readMat("riversurveyor.mat", verbose=TRUE) Trying to read MAT v5 file stream... List of 7 $ type : chr "miMATRIX" $ signed : logi NA $ sizeOf : int 0 $ what : num 0 $ nbrOfBytes: int 2848 $ padding : num 0 $ compressed: logi FALSE List of 7 $ type : chr "miMATRIX" $ signed : logi NA $ sizeOf : int 0...
2004 Jan 01
0
Segmentation fault with data.frame
...on fault occurs. I suppose that I could send individuals the data if that would help. Thanks, Sean -- Sean Davis, M.D., Ph.D. Clinical Fellow Combined Pediatric Hematology/Oncology Fellowship Johns Hopkins/National Institutes of Health NHGRI/NCI -- > str(b[1:20]) List of 20 $ cHsKG501A10: chr "2" $ cHsKG501A11: NULL $ cHsKG501A12: chr "2" $ cHsKG501A2 : chr "16" $ cHsKG501A3 : chr "1" $ cHsKG501A4 : chr "19" $ cHsKG501A5 : chr "3" $ cHsKG501A6 : chr "2" $ cHsKG501A7 : chr "8" $ cHsKG501A8 : chr &quo...
2010 Nov 02
2
count different words in a field
Hi all, I started to ask this in the other post, but it is off topis...so here it is again. I have a data.frame (created with the helpof this mail list) that looks like this : 'data.frame': 22801 obs. of 15 variables: $ V1 : chr "HUMUS" "SLABO" "MALO" "SLABO" ... $ V2 : chr "IN" "GRANULIRAN" "PREPEREL" "VEZAN" ... $ V3 : chr "HUMUSNA" "PE©ÈEN" "MELJAST" ",KONGLOMERAT," ... $ V4 : chr "GLINA&qu...
2010 Sep 06
2
dataframe row names from list
Hi, I have a list which looks like this... > str(y) List of 10 $ : chr [1:4] "ABCD" "5" "0" "1" $ : chr [1:4] "DEF" "15" "1" "16" $ : chr [1:4] "AAA" "2" "17" "8" $ : chr [1:4] "SSS" "15" "25" "1" $ : chr [...
2018 May 23
2
Pasar palabras de una lista a una variable del dataframe
...>> val_tmp <- rand_names(1000, nationality = 'ES', gender = 'female') >> head(val_tmp) > # A tibble: 6 x 25 > gender email dob registered phone cell nat name.title > name.first name.last location.street location.city location.state > <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> > <chr> <chr> <chr> <chr> <chr> > 1 female angeles.? 1958-0? 2004-05-06 ? 932-2? 683-? ES ms > angeles vega 3550 call...
1999 Feb 22
1
Size of objects in the workspace
Is there an easy way (or any way) to determine the size of all the objects in an R workspace. I know that "dim" will work on matrices, "length" will work on lists, but what gives the size of a function? After I have worked for a few days I often get confused about what is what in the workspace, so I'm looking for something like "ls -l", to point me toward
2013 Jan 31
2
rbind Missing Something: Need New Eyes
I don't see what's missing in my statements to add rows to a data frame and someone else will probably see what needs to be added to the statements. The data frame has this structure (without any data): $ PHYLUM : chr $ SUBPHYLUM : chr $ SUPERCLASS : chr $ CLASS : chr $ SUBCLASS : chr $ INFRACLASS : chr $ SUPERORDER : chr $ ORDER : chr $ SUBORDER : chr $ INFRAORDER : chr $ SUPERFAMILY: chr $ FAMILY : chr $ SUBFAMILY : chr $ TRIBE : chr $ SUBTRIBE : chr $ G...
2012 Aug 05
2
setMethod sometimes fails to set package slot when signature has trailing 'ANY'
...information > str(getMethod(bar, c("A", "A"))) Formal class 'MethodDefinition' [package "methods"] with 4 slots ..@ .Data :function (x, y) ..@ target :Formal class 'signature' [package "methods"] with 3 slots .. .. ..@ .Data : chr [1:2] "A" "A" .. .. ..@ names : chr [1:2] "x" "y" .. .. ..@ package: chr [1:2] ".GlobalEnv" ".GlobalEnv" ..@ defined:Formal class 'signature' [package "methods"] with 3 slots .. .. ..@ .Data : chr [1:2] &quo...
2018 May 22
4
Pasar palabras de una lista a una variable del dataframe
Buenas tardes, Tengo una lista de 600 palabras. Quiero saber cuántas de esas palabras aparecen en cada observación de mi variable "texto". La variable "texto" es de tipo caracter. ¿Cómo lo haríais? Muchas gracias.
2012 Dec 04
3
do.call
...ge the values of more than 30 columns, but not in all of the rows exist values, so with this commando i get a lot of ";" or NA. How get i only the merge of cells with a number? datos$NEW <- do.call(paste, c(datos[,19:53], sep = ";")) $ NEW : chr "218.0;;;;;;;;;;;;;;;;;;;;;;;;NA;;;NA;;;NA;NA;NA;NA;NA I hope you can help me. Thanks! Best regards, Dominic
2017 Dec 26
1
identifying convergence or non-convergence of mixed-effects regression model in lme4 from model output
...f datapoints ? mod.data.ef$N = as.numeric(summary(incr.best.m)$devcomp$dims[1]) ? #add model name ? mod.data.ef$model = name ? return(mod.data.ef) } I'm also including the structure of an example model that did converge (but I can I tell from the output?). List of 18 ?$ methTitle?? : chr "Linear mixed model fit by maximum likelihood? \nt-tests use? Satterthwaite approximations to degrees of freedom" ?$ objClass??? : atomic [1:1] lmerMod ? ..- attr(*, "package")= chr "lme4" ?$ devcomp???? :List of 2 ? ..$ cmp : Named num [1:10] 176.85 59.09 95.43 3...
2007 Jan 26
2
Why do return or visible don´t return my objekt?
Dear RRRRRrrrrrrrrlist! I?ve got two lists which contain sets of DNA-sequences. They look something like this: List of 33 $ Cunonia_atrorubens : chr [1:247] "t" "t" "n" "t" ... $ Cunonia_balansae : chr [1:254] "t" "c" "c" "c" ... $ Cunonia_capensis : chr [1:236] "v" "t" "c" "c" ... $ Cuno...
2012 Jul 20
1
conditional subset and reorder dataframe rows
Hi List I have a dataframe (~1,200,000 rows deep) and I'd like to conditionally reorder groups of rows in this dataframe. I would like to reorder any rows where the Chr.Strand column contains a '-' but reorder within subsets delineated by the Probe.Set.Name column. # toy example #### library(plyr) negStrandGene <- data.frame(Probe.Set.Name = rep('ENSMUSG00000022174_at', 6), Chr = rep(14,6), Chr.Strand = rep('-', 6), Chr.From = c(54873...
2010 Aug 25
1
accessing the attr(*,label.table) after importing from spss
...1 1 1 1 1 1 1 1 1 1 ... $ Ethan : int 2 2 2 2 2 2 2 2 2 2 ... $ Pro : num NA NA NA NA NA NA NA NA NA NA ... $ Ye : int 1 1 1 3 3 3 1 1 1 3 ... $ Ageg : int 1 1 1 1 1 1 1 1 1 1 ... $ BAC : int 0 0 0 0 0 0 0 0 0 0 ... - attr(*, "val.labels")= chr "" "VL_Gender" "" "VL_Amnesia" ... - attr(*, "var.labels")= chr "Age (years)" "Gender" "GCQSSA" "Amnesty" ... - attr(*, "label.table")=List of 19 ..$ : NULL ..$ : Named num 1 2 .. ..- attr...
2017 Mar 16
4
Support for user defined unary functions
R has long supported user defined binary (infix) functions, defined with `%fun%`. A one line change [1] to R's grammar allows users to define unary (prefix) functions in the same manner. `%chr%` <- function(x) as.character(x) `%identical%` <- function(x, y) identical(x, y) %chr% 100 #> [1] "100" %chr% 100 %identical% "100" #> [1] TRUE This seems a natural extension of the existing functionality and requires only a minor change to the...