similar to: Import in R with White Spaces

Displaying 20 results from an estimated 10000 matches similar to: "Import in R with White Spaces"

2011 Oct 11
1
Mean or mode imputation fro missing values
Dear R experts, I have a large database made up of mixed data types (numeric, character, factor, ordinal factor) with missing values, and I am looking for a package that would help me impute the missing values using ?either the mean if numerical or the mode if character/factor. I maybe could use replace like this: df$var[is.na(df$var)] <- mean(df$var, na.rm = TRUE) And go through all the many
2012 Apr 14
3
Choose between duplicated rows
Dear r experts, Sorry for this basic question, but I can't seem to find a solution? I have this data frame: df <- data.frame(id = c("id1", "id1", "id1", "id2", "id2", "id2"), A = c(11905, 11907, 11907, 11829, 11829, 11829), v1 = c(NA, 3, NA,1,2,NA), v2 = c(NA,2,NA, 2, NA,NA), v3 = c(NA,1,NA,1,NA,NA), v4 = c("N",
2012 Mar 05
1
Order a data frame based on the order of another data frame
Hi, I am trying to match the order of the rownames of a dataframe with the rownames of another dataframe (I can't simply sort both sets because I would have to change the order of many other connected datasets if I did that): Also, the second dataset (snp.matrix$fam) is a snp matrix slot: so for example: data_one: x y
2011 Oct 03
2
Merge two data frames and find common values and non-matching values
Hi, I am trying to find a function to match two data frames of different lengths for one field only. So, for example, df1 is: Name Position location francesca A 75 cristina B 36 And df2 is: location Country 75 UK 56 Austria And I would like to match on "Location" and the output to be something like: Name Position Location Match francesca A 75 1 cristina B 36 0 I have tried with
2011 Oct 24
1
Creating data frame with residuals of a data frame
Dear experts, I am trying to create a data frame from the residuals I get after having applied a linear regression to each column of a data frame, but I don't know how to create this data frame from the resulting list since the list has differing numbers of rows. So for example: age<- c(5,6,10,14,16,NA,18) value1<- c(30,70,40,50,NA,NA,NA) value2<- c(2,4,1,4,4,4,4) df<-
2013 Feb 18
1
ggplot2 and facet_wrap help
Dear R experts, I am trying to arrange multiple plots, creating one graph for each size1 factor variable in my data frame, and each plot has the median price on the y-axis and the size2 on the x-axis grouped by clarity: library(ggplot2) df <- data.frame(price=matrix(sample(1:1000, 100, replace = TRUE), ncol = 1)) df$size1 = 1:nrow(df) df$size1 = cut(df$size1, breaks=11)
2012 Apr 17
1
Problem accessing .Rdata objects in a loop
Hi, I am trying to access many .Rdata objects and do some operations with them using a loop. I can load the files but can't access them. The files' names are stored in a character vector called "names". After loading the objects, I can view each one using ls() and see that two objects are present for each. I am trying to access the one with the name which is the same as the
2011 Oct 08
2
Permutation or Bootstrap to obtain p-value for one sample
Hi, I am having trouble understanding how to approach a simulation: I have a sample of n=250 from a population of N=2,000 individuals, and I would like to use either permutation test or bootstrap to test whether this particular sample is significantly different from the values of any other random samples of the same population. I thought I needed to take random samples (but I am not sure how
2009 Feb 12
3
trunc/floor a number -- strange bahaviour
Hi everybody, given a fresh rgui.exe load on winxp OS, I enter (a minimal exaple) n <- 12.357531 Then the following command: n <- (n - floor(n))*10; n gives the following outputs: [1] 3.57531 [1] 5.7531 [1] 7.531 [1] 5.31 [1] 3.1 [1] 1 === still as expected [1] 10 === not expected, count with me: 1 - floor(1) is zero, times 10 gives 0, not 10!!!! [1] 10 === should
2007 Aug 03
2
partial ChanSpy
Hi is it possible to spy (not record, spy) partially on a channel? for exaple, i'd like to listen only the input or the output voice. is it possible? thanks -- /*************/ nik600 https://sourceforge.net/projects/ccmanager https://sourceforge.net/projects/nikstresser
2011 Sep 19
2
pasting elements of one character vector together
hello, i am familiar with the paste command with which i can paste for exaple: object <- "Hello" paste(object,"World") now i would like to be able to paste all the elements of the same vector together e.g: object <- c("Hello","World") getting as a result also: "Hello World". Does anyone know the solution to this problem? Thank you
2020 Sep 07
2
Metadata in LLVM back-end
Am 31/08/20 um 14:10 schrieb David Greene: > Lorenzo Casalino via llvm-dev <llvm-dev at lists.llvm.org> writes: > >> Furthermore, after register allocation there is a non-negligible effort >> to properly annotate instructions which share the same output register... >> >> Concerning the usage of the live ranges to tie annotated instruction and >> intrinsic,
2020 Nov 04
2
Metadata in LLVM back-end
Le 04/11/20 à 17:40, David Greene a écrit : > Sorry about the late reply. > > Lorenzo Casalino <lorenzo.casalino93 at gmail.com> writes: > >>>>> - Should not impact compile time excessively (what is "excessive?") >>>> Probably, such estimation should be performed on >>> Did something get cut off here? >> Uops. Yep, I removed a
2019 Oct 04
2
[MachineScheduler]: SchedBoundary trivially copiable, but "HazardRec" is raw pointer: a design issue?
Hi to everyone, while working with the machine scheduler for a personal project, I came up with the necessity of inserting a backup boundary in the MachineSchedulerStrategy -- specifically, the PostGenericScheduler -- to hold a copy the scheduler's state, in order to implement a really trivial (and really inefficient) backtracking mechanism. This approach leads to a subtle "segmentation
2005 May 26
4
multiples broadvoice lines
Hello All, I have 4 Broadvoice lines. If I call any of the lines it shows that is coming from the first line. exaple register=XXXXXXXXX1@sip.broadvoice.com:passwd:XXXXXXXXX1@sip.broadvoice.com register=XXXXXXXXX2@sip.broadvoice.com:passwd:XXXXXXXXX2@sip.broadvoice.com register=XXXXXXXXX3@sip.broadvoice.com:passwd:XXXXXXXXX3@sip.broadvoice.com
2019 Sep 18
2
How to debug passes
> opt -load lib­dum­my­pass.so -dum­my­pass hel­lo.ll Looks like you are loading a shared library different from "LLVMHello.so". did you change the name of the compilation unit from "Hello.cpp" into "dummypass.cpp"? (As asked previously by Andrzej) did you register the dummy pass? > RegisterPass<DummyPass> X("dummypass",
2020 Aug 31
2
Metadata in LLVM back-end
Am 19/08/20 um 22:37 schrieb David Greene: > Lorenzo Casalino via llvm-dev <llvm-dev at lists.llvm.org> writes: > >>>> I was imagining a per-instruction data-structure collecting metadata info >>>> related to that specific instruction, instead of having several metadata info >>>> directly embedded in each instruction. >>> Interesting. At
2007 Oct 31
3
How to make "Add permission" for folder in system withntacl support?
Hi! Let's go back to this topic please! I have to replace the Windows NT 4.0 server with Samba but I still don't know how to do this. I need to allow to someone (some user group) the right to add files into the folder. They use this "feature" on current NT server ver often and to this in the following ways: 1. Rightclick on file you want to add, Copy, then go to server, for
2011 Dec 01
3
vector
Hi. Can you please answer to my questions about R ? 1.how can I write command for vector ? for exaple in this sample : I have this : a1 <- c (1:10) now how can I put in the vector ? bye for now, Thanks a lot. Majid. [[alternative HTML version deleted]]
2003 Oct 27
1
Bioassays Yielding concentration-Mortality data
Dear all, I'm trying reproduce an example of bioassays Yielding Concentration-Mortality Data particularly control - adjustment model from book Bioassay of Entomopathogenic Microbes and Nematodes chapter 7 with R. I used glm with family=binomial and link=probit, but I do not know how to implement parameter gamma (control mortality - mortality of the untreated control insect in this exaple)