similar to: Get a subset

Displaying 20 results from an estimated 6000 matches similar to: "Get a subset"

2012 May 02
2
How can a function in R handle different types of input?
Hi, How can a function in R handle different types of input? I have written a function, which should calculate the slope from several 3-time-point measurements by linear regression 4 three-time-point-measurements: x<-cbind(c(1,2,3,4),c(2,3,4,5),c(3,4,5,6)) time points: time<-c(1,3,9) function for calculating the slope by linear regression: fit<-function(xx,t){slope <-
2012 Mar 22
3
How to get the input of a function right?
Hi, I wrote a function with three inputs fun(x,y,z). x is a matrix of three vectors combined with cbind. e.g. x1<-(1,2,3,4) x2<-(2,3,4,5) x3<-(3,4,5,6) x<-cbind(x1,x2,x3) y is a vector e.g y<-c(7,8,9) z is a real number e.g. z<-2.5 If a give the function an input like this, I get 'NA' in return. If I give the function a vector e.g c(1,2,3) instead of 'x'
2000 Feb 03
1
Passwords issues with samba 2.0.6
In my pursuit of integrating samba password authentication with our own stuff, I've been looking at ways on synchronizing the two. And here are the two problems for which I hope to get either solution: a) smbpasswd will not pass down spaces to whatever is called for synchronization. Barely looking at the synchronization routine, it scans as a string, which would skip anything after a space.
2018 Nov 14
2
Building LLVM with VisualStudio 2017
Hey Bjorn, Were you able to figure this out or is it still broken for you? Our scenario is a little bit different, but I have a theory as to what may be going wrong. What linker are you using when you compile your project with clang-cl? I am wondering whether the version of the linker and/or the libraries that you are using is too old in comparison to the one used for the clang compilation.
2008 Dec 01
1
Attempting to get a STELLA model into R
To whomever may be of help, I am a student in a graduate modeling class at the University of North Carolina at Wilmington. I am trying to get a STELLA model converted into R. I am in the process of trying to 're-write' the script into R, but I seem to be missing pieces (i.e. parm values) that are keeping me from being able to replicate this model into R. Does anyone have an idea of a
2010 Jun 01
2
Help on aggregate method
Dear R experts, I would really appreciate if you had an idea on how to use more efficiently the aggregate method: More specifically, I would like to calculate the mean of certain values on a data frame,? grouped by various attributes, and then create a new column in the data frame that will have the corresponding mean for every row. I attach part of my code: matchMean <-
2012 Jan 29
1
A desktop Centos remix
Hello Centos users! I'm doing a Centos 6 desktop oriented remix called Stella. This has been brewing since the summer and it's starting to get ready. :-) I've backported a lot of packages from Fedora and Rpmfusion and I bundle several other repos, too, resulting in a big range of software available, including but not limited to: LibreOffice, VLC, MPlayer, Shutter, Arista, Java,
2005 May 11
1
rank (PR#7850)
Full_Name: Stella David Version: 2.1.0 OS: mingw32 Submission from: (NULL) (137.250.161.136) It seems that rank doesn't work right on vectors containing negative values. If the negative value is the first component or there are only two components, it works, but if the negative value is somewhere in the middle there's a problem. Here are my examples: > # wrong: > x<-
2010 Apr 19
2
Huge data sets and RAM problems
Dear all, This is the first time I am sending mail to the mailing list, so I hope I do not make a mistake... The last months I have been working on my MSc thesis project on performing data mining techniques on user logs of a software-as-a-service application. The main problem I am experiencing is how to process the huge amount of data. More specifically: I am using R 2.10.1 in a laptop with
2010 May 20
1
Question about difftime()
Dear R experts, I have a question about the result of difftime() function: Does it take into account the different number of days in each month. In my example, I have the following: > firstDay [1] "2010-02-20" > lastDay [1] "2010-05-20 16:00:00" > difftime(lastDay,firstDay,units='days') Time difference of 89.625 days > When I count the days I get 88 days
2010 Jan 03
1
Questions regarding sem using hetcor() function from polycor and diagrams
Hello R Users, While I have attempted to dig into the R help files and I have not identified the answer to these questions, I apologize in advance if my questions were answered in the past. I also recognize that one of my questions unfortunately verges on statistical rather than code territory. I have two rather unrelated questions about using the sem and polycor packages for a relatively
2020 Aug 10
1
[nbdkit PATCH v2] server: Permit - in plugin names
Use of - does not need shell quoting, and aids legibility in multi-word plugin or filter names. Permitting both - and _ would be ambiguous (not to mention that things like 'man nbdkit-foo_bar-plugin' would look ugly), so prefer only the character that is easier for human use. Permitting a leading - would be ambiguous with options, but restricting to a letter as the first character would
2003 Sep 15
2
Aliases for Netbios name
Hi ! Is There how I use an alias for a Samba Server ? I tried with dns alias and don't work ! i.e. Name' Samba Server is PARATY, and I'd like that the workstations could communicate with this Samba Server, but using the name SambaPDC. Is it possible ? Thanks, Bruno Stella brunostella@trt15.gov.br Setor de Redes - Secretaria de Informatica Tribunal Regional do
2005 Apr 11
2
Linux Users execute 'login scripts'
Hello ! I have a Samba Server with LDAP(OpenLDAP) authentication and Windows Workstation that login in domain working all right. Now, I need to configure Linux workstations to log in Samba Server Domain. The Linux workstatios users are all in LDAP. How do I configure to execute the 'login script' when a Linux user log in his linux workstation ? Thanks for any help ! Bruno Stella
2011 Feb 09
3
Loop in variable names
Hello! I would like to do some tables for several variables and I would like to write a loop that does the table for each variable. I should also point out that my data set has several missing observations and sometimes the observations that are missing are not the same for all my variables. What I would like to do: table(StoreData$CompanyID, !is.na(StoreData$P2))
2002 Mar 19
1
Solaris 8 error - make: Fatal error: Command failed for target `saveload.o'
After a clean "configure" under Solaris, my R-1.4.1 make is dying with this error & the others below. Does anyone know how to fix this/these problems? Thanks in advance for your assistance - Craig Stewart > make ... gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c random.c -o random.o gcc -I. -I../../src/include
2012 Feb 25
1
RFT: Use Greek semicolons for comdlg32's printer status enumeration?
Request For Translators<g> So what I've gathered from Wikipedia is that the Greek language does not use semicolons as a separator for enumerations: http://en.wikipedia.org/wiki/Semicolon#Greek_and_Church_Slavonic | In Greek and Church Slavonic, a semicolon indicates a question, | similar to a Latin question mark.[2] To indicate a long pause or | separate sections, each with commas
2012 Nov 29
1
Read in alphanumeric column without decimals
All - How can I read in a column of alphanumeric values without including ".0" on the numeric values? Original column: TeamLeaderID 258 342 316 U8 331 279 D1 116 235 296 ... [truncated] leaders = read.xlsx2('FILE', sheetIndex = 1, header = T) Column after it's been read in: leaders$TeamLeaderID 258.0 342.0 316.0 U8 331.0 279.0 D1 116.0 235.0 296.0 ... [truncated] If I
2018 May 10
4
the first name of the first column
Dear all; I need to run heatmap. Because my first column in my data is alphanumeric, I can not run as.matrix(scale(my_data)). So I need to make my data readable as in data(mtcars). In *mtcars *data the first column is alphanumeric and has no name. Thanks, Greg [[alternative HTML version deleted]]
2008 Oct 20
1
Calculate SPE in PLS package
Dear list, I want to calculate SPE (squared prediction error) in x-space, can someone help? Here are my codes: fit.pls<- plsr(Y~X,data=DAT,ncomp=3,scale=T,method='oscorespls',validation="CV",x= T) actual<-fit.pls$model$X pred<-fit.pls$scores %*% t(fit.pls$loadings) SPE.x<-rowSums((actual-pred)^2) Am I missing something here? Thanks in advance. Stella Sim