Questions tagged [s-plus]

S-PLUS was a commercial, object-oriented, implementation of the S programming language owned by TIBCO Software Inc.

S-PLUS is now part of TIBCO . is an alternate implementation of .

26 questions
51
votes
4 answers

How to create a list with names but no entries in R/Splus?

I'd like to set up a list with named entries whose values are left uninitialized (I plan to add stuff to them later). How do people generally do this? I've done: mylist.names <- c("a", "b", "c") mylist <- as.list(rep(NA,…
lowndrul
  • 3,715
  • 7
  • 36
  • 54
13
votes
2 answers

iteratively constructed dataframe in R

I'm relatively new to R, and was wondering the most efficient way to iteratively construct a dataframe (one row at a time, the number of iterations "n" and the length of each row "l" are known beforehand). Create empty dataframe, add a row each…
daltonb
  • 635
  • 8
  • 26
6
votes
3 answers

machine learning libraries in s+ (or R)?

have been searching around the internet and stackoverflow, but haven't been able to find any information on libraries for machine learning in s-plus or R. does anyone know of any or could perhaps point me in the right direction? thank you!
danielle
  • 69
  • 1
6
votes
1 answer

Is S-PLUS dead?

I know this is not precisely a programming question, but I don't where else to ask... S-PLUS was aquired by TIBCO some years ago. And it was seemingly included to the Spotfire product. However I installed the demo version of Spotfire and can't find…
Jason V
  • 1,077
  • 7
  • 14
5
votes
1 answer

Read S-Plus Database without S-Plus?

I have an old (~1995) .Data database directory from S-Plus. Is there anyway that I can recover some of the objects contained in it without using S-Plus, maybe with R?
jseabold
  • 7,903
  • 2
  • 39
  • 53
5
votes
0 answers

Reproduce S-plus result in R

I have an old S-plus script, and I would like to reproduce the results in R. The only issue I'm having is the random seed. I know they use different algorithms for the pseudo-random number generation. In the S-plus file the seed was set…
bdeonovic
  • 4,130
  • 7
  • 40
  • 70
4
votes
1 answer

Data frames with variable-length data in R/Splus

The following works fine in R myarray <- as.array(list(c(5,5), 9, c(4,2,2,4,6))) mydf <- as.data.frame(myarray) But in Splus it does not---giving the error message: Problem in data.frameAux.list(x, na.strings = na.st..: arguments imply differing…
lowndrul
  • 3,715
  • 7
  • 36
  • 54
3
votes
0 answers

Large data set contour plot in R/Splus?

I am working with very large data sets named u10 and u10s consisting of 30016950 values. Now what I am trying to do is a contour plot to aid in the comparison of the two (a scatter plot is just too messy). I've looked around and found code such…
2
votes
2 answers

Writing a function for initializing parameters in R/Splus

I'd like to write a function that will create and return a set of parameters to be used in a function mySimulation I've created. Until now, I've basically been doing, e.g., mySimulation(parm1 = 3, parm2 = 4). This is now suboptimal because (1) in…
lowndrul
  • 3,715
  • 7
  • 36
  • 54
2
votes
1 answer

"Leaps" function from Splus to R

I have a code in Splus, but have to convert it into R, which is not a big thing. However I am very new to both softwares. This is the code I am struggling with: a <- leaps(xfit, y, wt = wt, method = "adjr2", keep=keep1, nbest=nbest, names =…
akeenlogician
  • 179
  • 1
  • 8
2
votes
1 answer

Calling R from S-Plus?

Does anyone have any suggestions for a good way to call R from S-Plus? Ideally I would like to just pass code to R and get data back without having to write anything too elaborate to integrate them. I should add that I'm familiar with the RinS…
Shane
  • 98,550
  • 35
  • 224
  • 217
1
vote
5 answers

In R, what is a good way to aggregate String data

In R (or S-PLUS), what is a good way to aggregate String data in a data frame? Consider the following: myList <- as.data.frame(c("Bob", "Mary", "Bob", "Bob", "Joe")) I would like the output to be: [Bob, 3 Mary, 1 Joe, 1] Currently, the only…
Ryan Guest
  • 6,080
  • 2
  • 33
  • 39
1
vote
0 answers

How to fix linear model fitting error in S-plus

I am trying to fit values in my algorithm so that I could predict a next month's number. I am getting a No data for variable errror when clearly I've defined what the objects are that I am putting into the equation. I've tried to place them in…
adura826
  • 103
  • 1
  • 1
  • 10
1
vote
1 answer

`objects()` in R vs. Splus

I would like to write a script main.r that returns the workspace to the state it was in before being run (i.e., at the end of the script, remove all and only the objects that had been added to the workspace). Running the…
lowndrul
  • 3,715
  • 7
  • 36
  • 54
1
vote
1 answer

From timeSpan class of SPLUS to POSIXlt class of R

I am trying to convert SPLUS data with timeSpan class to R data with POSIXlt class. I looked into lubridate package, but could not find a way to do it. R is unable to detect timeSpan class, so it spits error when I tried to create a variable with…
Sathish
  • 12,453
  • 3
  • 41
  • 59
1
2